rofi 1.7.5
|
Typedefs | |
typedef struct _box | box |
Functions | |
box * | box_create (widget *parent, const char *name, RofiOrientation type) |
void | box_add (box *box, widget *child, gboolean expand) |
Widget used to pack multiple widgets either horizontally or vertically. It supports packing widgets horizontally or vertically. Child widgets are always expanded to the maximum size in the opposite direction of the packing direction. e.g. vertically packed widgets use the full box width.
box | Handle to the box widget. |
child | Handle to the child widget to pack. |
expand | If the child widget should expand and use all available space. |
Add a widget to the box.
Definition at line 286 of file box.c.
References _box::children, _widget::expand, _widget::h, _widget::parent, ROFI_ORIENTATION_VERTICAL, rofi_theme_get_boolean(), _box::type, _widget::w, WIDGET, _box::widget, widget_padding_get_padding_height(), widget_padding_get_padding_width(), and widget_update().
Referenced by listview_add_widget(), rofi_view_add_widget(), and rofi_view_error_dialog().
box * box_create | ( | widget * | parent, |
const char * | name, | ||
RofiOrientation | type ) |
parent | The widgets parent. |
name | The name of the widget. |
type | The packing direction of the newly created box. |
Definition at line 346 of file box.c.
References box_draw(), box_find_mouse_target(), box_free(), box_get_desired_height(), box_get_desired_width(), box_resize(), box_set_state(), box_update(), DEFAULT_SPACING, _widget::draw, _widget::find_mouse_target, _widget::free, _widget::get_desired_height, _widget::get_desired_width, _widget::resize, rofi_theme_get_distance(), rofi_theme_get_orientation(), _widget::set_state, _box::spacing, _box::type, _widget::update, WIDGET, _box::widget, widget_init(), and WIDGET_TYPE_UNKNOWN.
Referenced by __create_window(), listview_add_widget(), listview_create_row(), rofi_view_add_widget(), rofi_view_create(), and rofi_view_error_dialog().