- Parameters
-
parent | The widget's parent |
name | The name of the widget. |
- Returns
- a newly created icon, free with widget_free
Definition at line 153 of file icon.c.
References distance_get_pixel(), _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_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 listview_add_widget(), and rofi_view_add_widget().