|
Blender V5.3
|
#include <optional>#include "BLI_compiler_attrs.hh"#include "BLI_span.hh"#include "BLI_sys_types.hh"#include "DNA_ID_enums.h"Go to the source code of this file.
Classes | |
| struct | blender::Icon |
| struct | blender::Icon_Geom |
| struct | blender::IconBufferRef |
Namespaces | |
| namespace | blender |
| BMesh Iterators. | |
Macros | |
| #define | ICON_RENDER_DEFAULT_HEIGHT 32 |
Typedefs | |
| typedef void(*) | blender::DrawInfoFreeFP(void *drawinfo) |
Enumerations | |
| enum | { blender::ICON_DATA_ID = 0 , blender::ICON_DATA_IMBUF , blender::ICON_DATA_PREVIEW , blender::ICON_DATA_GEOM , blender::ICON_DATA_STUDIOLIGHT , blender::ICON_DATA_GPLAYER } |
Resizable Icons for Blender
There is some thread safety for this API but it is rather weak. Registering or unregistering icons is thread safe, changing data of icons from multiple threads is not. Practically this should be fine since only the main thread modifies icons. Should that change, more locks or a different design need to be introduced.
Definition in file BKE_icons.hh.
| #define ICON_RENDER_DEFAULT_HEIGHT 32 |
Definition at line 185 of file BKE_icons.hh.
Referenced by blender::BKE_previewimg_ensure(), blender::ed::asset::generate_previewimg_from_buffer(), and blender::ui::icon_preview_to_render_size().