|
rofi 2.1.0
|
#include "cairo.h"#include "config.h"#include "theme.h"#include "widgets/icon.h"#include "widgets/widget-internal.h"#include "widgets/widget.h"#include <stdio.h>#include "rofi-icon-fetcher.h"Go to the source code of this file.
Data Structures | |
| struct | _icon |
Macros | |
| #define | G_LOG_DOMAIN "Widgets.Icon" |
Functions | |
| static int | icon_get_desired_height (widget *wid, G_GNUC_UNUSED const int width) |
| static int | icon_get_desired_width (widget *wid, G_GNUC_UNUSED const int height) |
| static void | icon_draw (widget *wid, cairo_t *draw) |
| static void | icon_free (widget *wid) |
| static void | icon_resize (widget *wid, short w, short h) |
| void | icon_set_surface (icon *icon_widget, cairo_surface_t *surf) |
| icon * | icon_create (widget *parent, const char *name) |
| #define G_LOG_DOMAIN "Widgets.Icon" |
|
static |
Definition at line 88 of file icon.c.
References _widget::h, _icon::icon, icon_draw(), _icon::icon_fetch_id, P_COLOR, rofi_icon_fetcher_get(), rofi_theme_get_color(), rofi_theme_has_property(), _widget::w, WIDGET, _icon::widget, widget_padding_get_bottom(), widget_padding_get_left(), widget_padding_get_right(), widget_padding_get_top(), _icon::xalign, and _icon::yalign.
Referenced by icon_create(), and icon_draw().
|
static |
Definition at line 129 of file icon.c.
References _icon::icon, and icon_free().
Referenced by icon_create(), and icon_free().
|
static |
Definition at line 57 of file icon.c.
References _icon::icon, icon_get_desired_height(), _icon::size, _icon::squared, and widget_padding_get_padding_height().
Referenced by icon_create(), and icon_get_desired_height().
|
static |
Definition at line 72 of file icon.c.
References _icon::icon, icon_get_desired_width(), _icon::size, _icon::squared, and widget_padding_get_padding_width().
Referenced by icon_create(), and icon_get_desired_width().
|
static |
Definition at line 139 of file icon.c.
References _widget::h, icon_resize(), _widget::w, _icon::widget, and widget_update().
Referenced by icon_create(), and icon_resize().