rofi  1.5.4
icon
Collaboration diagram for icon:

Typedefs

typedef struct _icon icon
 

Functions

iconicon_create (widget *parent, const char *name)
 
void icon_set_size (widget *icon, const int size)
 
void icon_set_surface (icon *icon, cairo_surface_t *surf)
 

Detailed Description

Typedef Documentation

◆ icon

typedef struct _icon icon

Abstract handle to the icon widget internal state.

Definition at line 1 of file icon.h.

Function Documentation

◆ icon_create()

icon* icon_create ( widget parent,
const char *  name 
)
Parameters
parentThe widget's parent
nameThe name of the widget.
Returns
a newly created icon, free with widget_free

Definition at line 139 of file icon.c.

References _widget::draw, _widget::free, _widget::get_desired_height, _widget::get_desired_width, icon_draw(), _icon::icon_fetch_id, icon_free(), icon_get_desired_height(), icon_get_desired_width(), icon_resize(), _widget::resize, rofi_icon_fetcher_query(), rofi_theme_get_double(), rofi_theme_get_integer(), rofi_theme_get_string(), _icon::size, WIDGET, _icon::widget, widget_init(), WIDGET_TYPE_UNKNOWN, _icon::xalign, and _icon::yalign.

Referenced by rofi_view_add_widget().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ icon_set_size()

void icon_set_size ( widget icon,
const int  size 
)
Parameters
iconThe icon widget handle.
sizeThe size of the icon.

◆ icon_set_surface()

void icon_set_surface ( icon icon,
cairo_surface_t *  surf 
)
Parameters
iconThe icon widget handle.
surfThe surface to display.

Definition at line 125 of file icon.c.

References _icon::icon, _icon::icon_fetch_id, WIDGET, and widget_queue_redraw().

Here is the call graph for this function: