rofi  1.5.1
widget.h File Reference
#include <glib.h>
#include <cairo.h>
#include <xcb/xcb.h>
#include <xcb/xproto.h>
#include "keyb.h"
Include dependency graph for widget.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define WIDGET(a)   ( (widget *) ( a ) )
 

Typedefs

typedef struct _widget widget
 
typedef widget *(* widget_find_mouse_target_cb) (widget *widget, WidgetType type, gint x, gint y)
 
typedef WidgetTriggerActionResult(* widget_trigger_action_cb) (widget *widget, guint action, gint x, gint y, void *user_data)
 

Enumerations

enum  WidgetType {
  WIDGET_TYPE_UNKNOWN, WIDGET_TYPE_LISTVIEW = SCOPE_MOUSE_LISTVIEW, WIDGET_TYPE_LISTVIEW_ELEMENT = SCOPE_MOUSE_LISTVIEW_ELEMENT, WIDGET_TYPE_EDITBOX = SCOPE_MOUSE_EDITBOX,
  WIDGET_TYPE_SCROLLBAR = SCOPE_MOUSE_SCROLLBAR, WIDGET_TYPE_SIDEBAR_MODI = SCOPE_MOUSE_SIDEBAR_MODI, WIDGET_TYPE_TEXTBOX_TEXT
}
 
enum  WidgetTriggerActionResult { WIDGET_TRIGGER_ACTION_RESULT_IGNORED, WIDGET_TRIGGER_ACTION_RESULT_HANDLED, WIDGET_TRIGGER_ACTION_RESULT_GRAB_MOTION_BEGIN, WIDGET_TRIGGER_ACTION_RESULT_GRAB_MOTION_END }
 

Functions

int widget_intersect (const widget *widget, int x, int y)
 
void widget_move (widget *widget, short x, short y)
 
WidgetType widget_type (widget *widget)
 
gboolean widget_enabled (widget *widget)
 
void widget_disable (widget *widget)
 
void widget_enable (widget *widget)
 
void widget_draw (widget *widget, cairo_t *d)
 
void widget_free (widget *wid)
 
void widget_resize (widget *widget, short w, short h)
 
int widget_get_height (widget *widget)
 
int widget_get_width (widget *widget)
 
int widget_get_y_pos (widget *widget)
 
int widget_get_x_pos (widget *widget)
 
void widget_xy_to_relative (widget *widget, gint *x, gint *y)
 
void widget_update (widget *widget)
 
void widget_queue_redraw (widget *wid)
 
gboolean widget_need_redraw (widget *wid)
 
widgetwidget_find_mouse_target (widget *wid, WidgetType type, gint x, gint y)
 
WidgetTriggerActionResult widget_trigger_action (widget *wid, guint action, gint x, gint y)
 
void widget_set_trigger_action_handler (widget *wid, widget_trigger_action_cb cb, void *cb_data)
 
gboolean widget_motion_notify (widget *wid, gint x, gint y)
 
int widget_get_desired_height (widget *wid)
 
int widget_get_desired_width (widget *wid)
 
int widget_get_absolute_xpos (widget *wid)
 
int widget_get_absolute_ypos (widget *wid)