|
rofi
1.7.0
|
#include "config.h"#include <stdlib.h>#include <xcb/xproto.h>#include "helper.h"#include "rofi-icon-fetcher.h"#include "rofi-types.h"#include "settings.h"#include "keyb.h"#include "view.h"#include "xcb.h"#include "nkutils-enum.h"#include "nkutils-xdg-theme.h"#include <stdint.h>#include <gdk-pixbuf/gdk-pixbuf.h>Go to the source code of this file.
Data Structures | |
| struct | IconFetcher |
| struct | IconFetcherNameEntry |
| struct | IconFetcherEntry |
Macros | |
| #define | G_LOG_DOMAIN "Helpers.IconFetcher" |
| #define | RED_BYTE 2 |
| #define | GREEN_BYTE 1 |
| #define | BLUE_BYTE 0 |
| #define | ALPHA_BYTE 3 |
Functions | |
| static void | rofi_icon_fetch_entry_free (gpointer data) |
| void | rofi_icon_fetcher_init (void) |
| static void | free_wrapper (gpointer data, G_GNUC_UNUSED gpointer user_data) |
| void | rofi_icon_fetcher_destroy (void) |
| static guchar | alpha_mult (guchar c, guchar a) |
| static cairo_surface_t * | rofi_icon_fetcher_get_surface_from_pixbuf (GdkPixbuf *pixbuf) |
| gboolean | rofi_icon_fetcher_file_is_image (const char *const path) |
| static void | rofi_icon_fetcher_worker (thread_state *sdata, G_GNUC_UNUSED gpointer user_data) |
| uint32_t | rofi_icon_fetcher_query_advanced (const char *name, const int wsize, const int hsize) |
| uint32_t | rofi_icon_fetcher_query (const char *name, const int size) |
| cairo_surface_t * | rofi_icon_fetcher_get (const uint32_t uid) |
Variables | |
| IconFetcher * | rofi_icon_fetcher_data = NULL |
| #define ALPHA_BYTE 3 |
Location of alpha byte
Definition at line 177 of file rofi-icon-fetcher.c.
| #define BLUE_BYTE 0 |
Location of blue byte
Definition at line 175 of file rofi-icon-fetcher.c.
| #define G_LOG_DOMAIN "Helpers.IconFetcher" |
The log domain of this Helper.
Definition at line 29 of file rofi-icon-fetcher.c.
| #define GREEN_BYTE 1 |
Location of green byte
Definition at line 173 of file rofi-icon-fetcher.c.
| #define RED_BYTE 2 |
Location of red byte
Definition at line 171 of file rofi-icon-fetcher.c.
|
inlinestatic |
Definition at line 189 of file rofi-icon-fetcher.c.
Referenced by rofi_icon_fetcher_get_surface_from_pixbuf().
|
static |
Definition at line 143 of file rofi-icon-fetcher.c.
Referenced by rofi_icon_fetcher_destroy().
|
static |
Definition at line 91 of file rofi-icon-fetcher.c.
References IconFetcherNameEntry::name, IconFetcherNameEntry::sizes, and IconFetcherEntry::surface.
Referenced by rofi_icon_fetcher_init().
|
static |
Definition at line 203 of file rofi-icon-fetcher.c.
References ALPHA_BYTE, alpha_mult(), BLUE_BYTE, GREEN_BYTE, and RED_BYTE.
Referenced by rofi_icon_fetcher_worker().
|
static |
Definition at line 282 of file rofi-icon-fetcher.c.
References config, IconFetcherEntry::entry, helper_get_theme_path(), IconFetcherEntry::hsize, Settings::icon_theme, IconFetcherNameEntry::name, rofi_icon_fetcher_data, rofi_icon_fetcher_get_surface_from_pixbuf(), rofi_view_reload(), IconFetcherEntry::surface, IconFetcherEntry::wsize, and IconFetcher::xdg_context.
Referenced by rofi_icon_fetcher_query(), and rofi_icon_fetcher_query_advanced().
| IconFetcher* rofi_icon_fetcher_data = NULL |
The icon fetcher internal state.
Definition at line 89 of file rofi-icon-fetcher.c.
Referenced by rofi_icon_fetcher_destroy(), rofi_icon_fetcher_file_is_image(), rofi_icon_fetcher_get(), rofi_icon_fetcher_init(), rofi_icon_fetcher_query(), rofi_icon_fetcher_query_advanced(), and rofi_icon_fetcher_worker().