Blender V5.3
icons.cc File Reference
#include <cstdlib>
#include <cstring>
#include <memory>
#include "CLG_log.h"
#include "MEM_guardedalloc.h"
#include "DNA_ID.h"
#include "DNA_gpencil_legacy_types.h"
#include "BLI_fileops.hh"
#include "BLI_linklist_lockfree.hh"
#include "BLI_map.hh"
#include "BLI_mutex.hh"
#include "BLI_span.hh"
#include "BLI_threads.hh"
#include "BLI_utildefines.hh"
#include "BKE_global.hh"
#include "BKE_icons.hh"
#include "BKE_preview_image.hh"
#include "BKE_studiolight.h"
#include "BLI_sys_types.hh"
#include "IMB_imbuf.hh"
#include "IMB_imbuf_types.hh"

Go to the source code of this file.

Classes

struct  blender::DeferredIconDeleteNode

Namespaces

namespace  blender
 BMesh Iterators.

Typedefs

using blender::GlobalIconsMap = Map<int, Icon *>

Enumerations

enum  { blender::ICON_FLAG_MANAGED = (1 << 0) }

Functions

static GlobalIconsMap & blender::get_global_icons_map ()
static void blender::icon_free (void *val)
static void blender::icon_free_data (int icon_id, Icon *icon)
static Icon * blender::icon_ghash_lookup (int icon_id)
static int blender::get_next_free_id ()
void blender::BKE_icons_init (int first_dyn_id)
void blender::BKE_icons_free ()
void blender::BKE_icons_deferred_free ()
void blender::BKE_icon_changed (int icon_id)
static Icon * blender::icon_create (int icon_id, int obj_type, void *obj)
static int blender::icon_id_ensure_create_icon (ID *id)
int blender::BKE_icon_id_ensure (ID *id)
static int blender::icon_gplayer_color_ensure_create_icon (bGPDlayer *gpl)
int blender::BKE_icon_gplayer_color_ensure (bGPDlayer *gpl)
int blender::BKE_icon_preview_ensure (ID *id, PreviewImage *preview)
int blender::BKE_icon_imbuf_create (ImBuf *ibuf) ATTR_WARN_UNUSED_RESULT
ImBuf * blender::BKE_icon_imbuf_get_buffer (int icon_id) ATTR_WARN_UNUSED_RESULT
bool blender::BKE_icon_is_imbuf (int icon_id) ATTR_WARN_UNUSED_RESULT
static IconBufferRef blender::construct_icon_buffer (const int width, const int height, const int channels, const uint8_t *buffer)
static std::optional< IconBufferRef > blender::icon_buffer_from_preview (const PreviewImage *preview, const eIconSizes size)
std::optional< IconBufferRef > blender::BKE_icon_get_buffer (int icon_id, eIconSizes size)
Icon * blender::BKE_icon_get (int icon_id)
void blender::BKE_icon_set (int icon_id, Icon *icon)
static void blender::icon_add_to_deferred_delete_queue (int icon_id)
void blender::BKE_icon_id_delete (ID *id)
bool blender::BKE_icon_delete (int icon_id)
bool blender::BKE_icon_delete_unmanaged (int icon_id)
Geometry Icon
int blender::BKE_icon_geom_ensure (Icon_Geom *geom)
Icon_Geom * blender::BKE_icon_geom_from_memory (uchar *data, size_t data_len)
Icon_Geom * blender::BKE_icon_geom_from_file (const char *filename)
Studio Light Icon
int blender::BKE_icon_ensure_studio_light (StudioLight *sl, int id_type)

Variables

static CLG_LogRef blender::LOG = {"lib.icons"}
static int blender::gNextIconId = 1
static int blender::gFirstIconId = 1
static Mutex blender::gIconMutex
static LockfreeLinkList blender::g_icon_delete_queue