rofi 1.7.5
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 44 of file icon.h.

Function Documentation

◆ icon_create()

icon * icon_create ( widget * parent,
const char * name )

◆ 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 140 of file icon.c.

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

Referenced by selection_changed_callback(), and update_callback().

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