rofi
1.7.0
|
#include "widgets/box.h"
#include "theme.h"
#include "widgets/widget-internal.h"
#include "widgets/widget.h"
#include <stdio.h>
Go to the source code of this file.
Data Structures | |
struct | _box |
Macros | |
#define | G_LOG_DOMAIN "Widgets.Box" |
#define | DEFAULT_SPACING 2 |
Functions | |
static void | box_update (widget *wid) |
static int | box_get_desired_width (widget *wid) |
static int | box_get_desired_height (widget *wid) |
static void | vert_calculate_size (box *b) |
static void | hori_calculate_size (box *b) |
static void | box_draw (widget *wid, cairo_t *draw) |
static void | box_free (widget *wid) |
void | box_add (box *box, widget *child, gboolean expand) |
static void | box_resize (widget *widget, short w, short h) |
static widget * | box_find_mouse_target (widget *wid, WidgetType type, gint x, gint y) |
static void | box_set_state (widget *wid, const char *state) |
box * | box_create (widget *parent, const char *name, RofiOrientation type) |
#define G_LOG_DOMAIN "Widgets.Box" |
|
static |
Definition at line 264 of file box.c.
References _box::children, and widget_draw().
Referenced by box_create().
|
static |
Definition at line 316 of file box.c.
References _box::children, _widget::enabled, widget_find_mouse_target(), widget_intersect(), _widget::x, and _widget::y.
Referenced by box_create().
|
static |
Definition at line 273 of file box.c.
References _box::children, and widget_free().
Referenced by box_create().
|
static |
Definition at line 95 of file box.c.
References _box::children, distance_get_pixel(), _widget::enabled, ROFI_ORIENTATION_VERTICAL, _box::spacing, _box::type, widget_get_desired_height(), and widget_padding_get_padding_height().
Referenced by box_create().
|
static |
Definition at line 52 of file box.c.
References _box::children, distance_get_pixel(), _widget::enabled, _widget::expand, ROFI_ORIENTATION_HORIZONTAL, rofi_theme_get_distance(), _box::spacing, _box::type, widget_get_desired_width(), and widget_padding_get_padding_width().
Referenced by box_create().
|
static |
Definition at line 307 of file box.c.
References _widget::h, _widget::w, _box::widget, and widget_update().
Referenced by box_create().
|
static |
Definition at line 337 of file box.c.
References widget_set_state().
Referenced by box_create().
|
static |
Definition at line 365 of file box.c.
References hori_calculate_size(), _widget::parent, ROFI_ORIENTATION_HORIZONTAL, ROFI_ORIENTATION_VERTICAL, _box::type, vert_calculate_size(), and widget_update().
Referenced by box_create().
|
static |
Definition at line 193 of file box.c.
References _box::children, distance_get_pixel(), _widget::enabled, _widget::expand, _widget::h, _box::max_size, ROFI_ORIENTATION_HORIZONTAL, _box::spacing, _widget::w, WIDGET, _box::widget, widget_get_desired_width(), widget_get_width(), widget_move(), widget_padding_get_left(), widget_padding_get_padding_width(), widget_padding_get_remaining_height(), widget_padding_get_remaining_width(), widget_padding_get_top(), and widget_resize().
Referenced by box_update().
|
static |
Definition at line 127 of file box.c.
References _box::children, distance_get_pixel(), _widget::enabled, _widget::expand, _widget::h, _box::max_size, ROFI_ORIENTATION_VERTICAL, _box::spacing, WIDGET, _box::widget, widget_get_desired_height(), widget_get_height(), widget_move(), widget_padding_get_left(), widget_padding_get_padding_height(), widget_padding_get_remaining_height(), widget_padding_get_remaining_width(), widget_padding_get_top(), and widget_resize().
Referenced by box_update().