|
rofi 2.1.0
|
Typedefs | |
| typedef struct _icon | icon |
Functions | |
| icon * | icon_create (widget *parent, const char *name) |
| void | icon_set_size (widget *iconicon, const int size) |
| void | icon_set_surface (icon *icon_widget, cairo_surface_t *surf) |
| parent | The widget's parent |
| name | The name of the widget. |
Definition at line 161 of file icon.c.
References distance_get_pixel(), _widget::draw, _widget::free, _widget::get_desired_height, _widget::get_desired_width, icon_create(), 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_ORIENTATION_VERTICAL, rofi_theme_get_boolean(), rofi_theme_get_distance(), rofi_theme_get_double(), rofi_theme_get_string(), _icon::size, _icon::squared, WIDGET, _icon::widget, widget_init(), WIDGET_TYPE_UNKNOWN, _icon::xalign, and _icon::yalign.
Referenced by icon_create(), listview_add_widget(), and rofi_view_add_widget().
| void icon_set_size | ( | widget * | icon, |
| const int | size ) |
| icon | The icon widget handle. |
| size | The size of the icon. |
References icon_set_size(), and icon_set_surface().
Referenced by icon_set_size().
| void icon_set_surface | ( | icon * | icon_widget, |
| cairo_surface_t * | surf ) |
| icon_widget | The icon widget handle. |
| surf | The surface to display. |
Definition at line 148 of file icon.c.
References _icon::icon, _icon::icon_fetch_id, icon_set_surface(), WIDGET, and widget_queue_redraw().
Referenced by icon_set_size(), icon_set_surface(), selection_changed_callback(), and update_callback().