rofi  1.7.0
_widget Struct Reference

#include <widget-internal.h>

Collaboration diagram for _widget:
Collaboration graph

Data Fields

WidgetType type
 
short x
 
short y
 
short w
 
short h
 
RofiPadding def_margin
 
RofiPadding def_padding
 
RofiPadding def_border
 
RofiPadding def_border_radius
 
RofiPadding margin
 
RofiPadding padding
 
RofiPadding border
 
RofiPadding border_radius
 
RofiCursorType cursor_type
 
gboolean enabled
 
gboolean expand
 
gboolean end
 
struct _widgetparent
 
gboolean need_redraw
 
int(* get_width )(struct _widget *)
 
int(* get_height )(struct _widget *)
 
void(* draw )(struct _widget *widget, cairo_t *draw)
 
void(* resize )(struct _widget *, short, short)
 
void(* update )(struct _widget *)
 
gboolean(* motion_notify )(struct _widget *, gint x, gint y)
 
int(* get_desired_height )(struct _widget *)
 
int(* get_desired_width )(struct _widget *)
 
void(* set_state )(struct _widget *, const char *)
 
widget_find_mouse_target_cb find_mouse_target
 
widget_trigger_action_cb trigger_action
 
void * trigger_action_cb_data
 
void(* free )(struct _widget *widget)
 
char * name
 
const char * state
 

Detailed Description

Data structure holding the internal state of the Widget

Definition at line 35 of file widget-internal.h.

Field Documentation

◆ border

◆ border_radius

RofiPadding _widget::border_radius

Definition at line 54 of file widget-internal.h.

Referenced by widget_draw(), widget_init(), and widget_set_state().

◆ cursor_type

RofiCursorType _widget::cursor_type

Cursor that is set when the widget is hovered

Definition at line 57 of file widget-internal.h.

Referenced by rofi_view_resolve_cursor(), and widget_init().

◆ def_border

RofiPadding _widget::def_border

Definition at line 49 of file widget-internal.h.

Referenced by widget_init(), and widget_set_state().

◆ def_border_radius

RofiPadding _widget::def_border_radius

Definition at line 50 of file widget-internal.h.

Referenced by widget_init(), and widget_set_state().

◆ def_margin

RofiPadding _widget::def_margin

RofiPadding

Definition at line 47 of file widget-internal.h.

Referenced by widget_init().

◆ def_padding

RofiPadding _widget::def_padding

Definition at line 48 of file widget-internal.h.

Referenced by widget_init().

◆ draw

void(* _widget::draw) (struct _widget *widget, cairo_t *draw)

draw widget implementation function

Definition at line 74 of file widget-internal.h.

Referenced by box_create(), container_create(), icon_create(), listview_create(), scrollbar_create(), textbox_create(), and widget_draw().

◆ enabled

◆ end

gboolean _widget::end

Place widget at end of parent

Definition at line 64 of file widget-internal.h.

◆ expand

gboolean _widget::expand

Expand the widget when packed

Definition at line 62 of file widget-internal.h.

Referenced by box_add(), box_get_desired_width(), hori_calculate_size(), textbox_get_desired_width(), and vert_calculate_size().

◆ find_mouse_target

widget_find_mouse_target_cb _widget::find_mouse_target

widget find_mouse_target callback

Definition at line 89 of file widget-internal.h.

Referenced by box_create(), container_create(), listview_create(), and widget_find_mouse_target().

◆ free

void(* _widget::free) (struct _widget *widget)

Free widget callback

Definition at line 96 of file widget-internal.h.

Referenced by box_create(), container_create(), icon_create(), listview_create(), scrollbar_create(), textbox_create(), and widget_free().

◆ get_desired_height

int(* _widget::get_desired_height) (struct _widget *)

◆ get_desired_width

int(* _widget::get_desired_width) (struct _widget *)

◆ get_height

int(* _widget::get_height) (struct _widget *)

get height of widget implementation function

Definition at line 72 of file widget-internal.h.

Referenced by textbox_create(), and widget_get_height().

◆ get_width

int(* _widget::get_width) (struct _widget *)

get width of widget implementation function

Definition at line 70 of file widget-internal.h.

Referenced by textbox_create(), and widget_get_width().

◆ h

◆ margin

◆ motion_notify

gboolean(* _widget::motion_notify) (struct _widget *, gint x, gint y)

Handle mouse motion, used for dragging

Definition at line 81 of file widget-internal.h.

Referenced by listview_recompute_elements(), scrollbar_create(), and widget_motion_notify().

◆ name

◆ need_redraw

gboolean _widget::need_redraw

Internal

Definition at line 68 of file widget-internal.h.

Referenced by widget_draw(), widget_need_redraw(), and widget_queue_redraw().

◆ padding

◆ parent

◆ resize

void(* _widget::resize) (struct _widget *, short, short)

resize widget implementation function

Definition at line 76 of file widget-internal.h.

Referenced by box_create(), container_create(), icon_create(), listview_create(), textbox_create(), and widget_resize().

◆ set_state

void(* _widget::set_state) (struct _widget *, const char *)

Definition at line 86 of file widget-internal.h.

Referenced by box_create(), container_create(), and widget_set_state().

◆ state

◆ trigger_action

widget_trigger_action_cb _widget::trigger_action

widget trigger_action callback

Definition at line 91 of file widget-internal.h.

Referenced by listview_create(), scrollbar_create(), textbox_create(), widget_set_trigger_action_handler(), and widget_trigger_action().

◆ trigger_action_cb_data

void* _widget::trigger_action_cb_data

user data for find_mouse_target and trigger_action callback

Definition at line 93 of file widget-internal.h.

Referenced by widget_set_trigger_action_handler(), and widget_trigger_action().

◆ type

WidgetType _widget::type

◆ update

void(* _widget::update) (struct _widget *)

update widget implementation function

Definition at line 78 of file widget-internal.h.

Referenced by box_create(), container_create(), and widget_update().

◆ w

◆ x

◆ y


The documentation for this struct was generated from the following file: