void spinbox_set_bounds(struct spinbox * b, si_t x, si_t y, si_t width , si_t height) { widget_set_bounds(WIDGET_POINTER(b), x, y, width, height); text_line_set_bounds(b->text_number, 0, 0, b->area.width-b->area.height, b->area.height); button_set_bounds(b->button_up, b->area.width-b->area.height+1, 0, b->area.height, b->area.height/2); button_set_bounds(b->button_down, b->area.width-b->area.height+1, b->area.height/2+1, b->area.height, b->area.height/2); }
object_t *opengl_widget_create( object_t *parent, bounds_t *bounds, int flags ) { object_t *object; assert_valid_widget( parent, "parent" ); object = object_create_from_class( opengl_widget_type, parent ); widget_set_bounds( object, bounds ); widget_set_flags( object, flags ); object_realize( object ); return object; }
object_t *radiobutton_widget_create( object_t *parent, object_t *group, bounds_t *bounds, const char *label, int flags ) { object_t *object; assert_valid_widget( parent, "parent" ); assert_valid_radiogroup_widget( group, "group" ); object = object_create_from_class( radiobutton_widget_type, parent ); widget_set_bounds( object, bounds ); widget_set_flags( object, flags ); object_realize( object ); radiobutton_set_label( object, label ); radiobutton_set_group( object, group ); return object; }
void tab_set_bounds(struct tab * b, si_t x, si_t y, si_t width , si_t height) { widget_set_bounds(WIDGET_POINTER(b), x, y, width, height); }
void text_line_set_bounds(struct text_line* t, si_t x, si_t y, si_t width , si_t height) { widget_set_bounds(WIDGET_POINTER(t), x, y, width, height); }