Blender V5.3
UI_resources.hh File Reference
#include "BLI_assert.hh"
#include "UI_icons.hh"

Go to the source code of this file.

Classes

struct  blender::ui::theme::bThemeState

Namespaces

namespace  blender
 BMesh Iterators.
namespace  blender::ui
namespace  blender::ui::theme

Macros

#define DEF_ICON(name)
#define DEF_ICON_VECTOR(name)
#define DEF_ICON_COLOR(name)
#define DEF_ICON_BLANK(name)
#define DEF_ICON_SCENE   DEF_ICON
#define DEF_ICON_COLLECTION   DEF_ICON
#define DEF_ICON_OBJECT   DEF_ICON
#define DEF_ICON_OBJECT_DATA   DEF_ICON
#define DEF_ICON_MODIFIER   DEF_ICON
#define DEF_ICON_SHADING   DEF_ICON
#define DEF_ICON_FOLDER   DEF_ICON
#define DEF_ICON_FUND   DEF_ICON
#define BIFICONID_FIRST   (ICON_NONE)
#define TH_UNDEFINED   -1

Enumerations

enum  blender::BIFIconID_Static { blender::BIFICONID_LAST_STATIC }
enum  blender::ThemeColorID {
  blender::TH_NONE , blender::TH_BLACK , blender::TH_WHITE , blender::TH_REDALERT ,
  blender::TH_ERROR , blender::TH_WARNING , blender::TH_INFO , blender::TH_SUCCESS ,
  blender::TH_LINK , blender::TH_THEMEUI , blender::TH_BACK , blender::TH_BACK_GRAD ,
  blender::TH_TEXT , blender::TH_TEXT_HI , blender::TH_TAB_TEXT , blender::TH_TAB_TEXT_HI ,
  blender::TH_TAB_ACTIVE , blender::TH_TAB_INACTIVE , blender::TH_TAB_BACK , blender::TH_TAB_OUTLINE ,
  blender::TH_TAB_OUTLINE_ACTIVE , blender::TH_HEADER , blender::TH_PANEL_HEADER , blender::TH_PANEL_BACK ,
  blender::TH_PANEL_SUB_BACK , blender::TH_PANEL_OUTLINE , blender::TH_PANEL_ACTIVE , blender::TH_SHADE1 ,
  blender::TH_SHADE2 , blender::TH_HILITE , blender::TH_GRID , blender::TH_GRID_MAJOR ,
  blender::TH_WIRE , blender::TH_WIRE_INNER , blender::TH_WIRE_EDIT , blender::TH_SELECT ,
  blender::TH_ACTIVE , blender::TH_GROUP , blender::TH_GROUP_ACTIVE , blender::TH_TRANSFORM ,
  blender::TH_VERTEX , blender::TH_VERTEX_SELECT , blender::TH_VERTEX_ACTIVE , blender::TH_VERTEX_UNREFERENCED ,
  blender::TH_VERTEX_SIZE , blender::TH_EDGE_WIDTH , blender::TH_OUTLINE_WIDTH , blender::TH_OBCENTER_DIA ,
  blender::TH_EDGE , blender::TH_EDGE_SELECT , blender::TH_EDGE_MODE_SELECT , blender::TH_FACE ,
  blender::TH_FACE_SELECT , blender::TH_FACE_MODE_SELECT , blender::TH_FACE_RETOPOLOGY , blender::TH_FACE_BACK ,
  blender::TH_FACE_FRONT , blender::TH_NORMAL , blender::TH_VNORMAL , blender::TH_LNORMAL ,
  blender::TH_FACEDOT_SIZE , blender::TH_CFRAME , blender::TH_FRAME_BEFORE , blender::TH_FRAME_AFTER ,
  blender::TH_TIME_SCRUB_BACKGROUND , blender::TH_TIME_SCRUB_TEXT , blender::TH_TIME_MARKER_LINE , blender::TH_TIME_MARKER_LINE_SELECTED ,
  blender::TH_TIME_GP_KEYFRAME , blender::TH_NURB_ULINE , blender::TH_NURB_VLINE , blender::TH_NURB_SEL_ULINE ,
  blender::TH_NURB_SEL_VLINE , blender::TH_HANDLE_FREE , blender::TH_HANDLE_AUTO , blender::TH_HANDLE_VECT ,
  blender::TH_HANDLE_ALIGN , blender::TH_HANDLE_AUTOCLAMP , blender::TH_HANDLE_SEL_FREE , blender::TH_HANDLE_SEL_AUTO ,
  blender::TH_HANDLE_SEL_VECT , blender::TH_HANDLE_SEL_ALIGN , blender::TH_HANDLE_SEL_AUTOCLAMP , blender::TH_SYNTAX_B ,
  blender::TH_SYNTAX_V , blender::TH_SYNTAX_R , blender::TH_SYNTAX_C , blender::TH_SYNTAX_L ,
  blender::TH_SYNTAX_D , blender::TH_SYNTAX_N , blender::TH_SYNTAX_S , blender::TH_LINENUMBERS ,
  blender::TH_BONE_SOLID , blender::TH_BONE_POSE , blender::TH_BONE_POSE_ACTIVE , blender::TH_BONE_LOCKED_WEIGHT ,
  blender::TH_STRIP , blender::TH_STRIP_SELECT , blender::TH_CHANNEL , blender::TH_CHANNEL_SELECT ,
  blender::TH_LONGKEY , blender::TH_LONGKEY_SELECT , blender::TH_KEYTYPE_KEYFRAME , blender::TH_KEYTYPE_KEYFRAME_SELECT ,
  blender::TH_KEYTYPE_EXTREME , blender::TH_KEYTYPE_EXTREME_SELECT , blender::TH_KEYTYPE_BREAKDOWN , blender::TH_KEYTYPE_BREAKDOWN_SELECT ,
  blender::TH_KEYTYPE_JITTER , blender::TH_KEYTYPE_JITTER_SELECT , blender::TH_KEYTYPE_MOVEHOLD , blender::TH_KEYTYPE_MOVEHOLD_SELECT ,
  blender::TH_KEYTYPE_GENERATED , blender::TH_KEYTYPE_GENERATED_SELECT , blender::TH_KEYBORDER , blender::TH_KEYBORDER_SELECT ,
  blender::TH_LIGHT , blender::TH_SPEAKER , blender::TH_CAMERA , blender::TH_EMPTY ,
  blender::TH_NODE , blender::TH_NODE_OUTLINE , blender::TH_NODE_INPUT , blender::TH_NODE_OUTPUT ,
  blender::TH_NODE_COLOR , blender::TH_NODE_FILTER , blender::TH_NODE_VECTOR , blender::TH_NODE_TEXTURE ,
  blender::TH_NODE_SCRIPT , blender::TH_NODE_SHADER , blender::TH_NODE_INTERFACE , blender::TH_NODE_CONVERTER ,
  blender::TH_NODE_GROUP , blender::TH_NODE_FRAME , blender::TH_NODE_MATTE , blender::TH_NODE_DISTORT ,
  blender::TH_NODE_GEOMETRY , blender::TH_NODE_ATTRIBUTE , blender::TH_NODE_ZONE_SIMULATION , blender::TH_NODE_ZONE_REPEAT ,
  blender::TH_NODE_ZONE_FOREACH_GEOMETRY_ELEMENT , blender::TH_NODE_ZONE_CLOSURE , blender::TH_SIMULATED_FRAMES , blender::TH_CONSOLE_OUTPUT ,
  blender::TH_CONSOLE_INPUT , blender::TH_CONSOLE_INFO , blender::TH_CONSOLE_ERROR , blender::TH_CONSOLE_CURSOR ,
  blender::TH_CONSOLE_SELECT , blender::TH_SEQ_MOVIE , blender::TH_SEQ_MOVIECLIP , blender::TH_SEQ_MASK ,
  blender::TH_SEQ_IMAGE , blender::TH_SEQ_SCENE , blender::TH_SEQ_AUDIO , blender::TH_SEQ_EFFECT ,
  blender::TH_SEQ_TRANSITION , blender::TH_SEQ_META , blender::TH_SEQ_TEXT , blender::TH_SEQ_PREVIEW ,
  blender::TH_SEQ_COLOR , blender::TH_SEQ_ACTIVE , blender::TH_SEQ_SELECTED , blender::TH_SEQ_TEXT_CURSOR ,
  blender::TH_SEQ_SELECTED_TEXT , blender::TH_EDITMESH_ACTIVE , blender::TH_HANDLE_VERTEX , blender::TH_HANDLE_VERTEX_SELECT ,
  blender::TH_HANDLE_VERTEX_SIZE , blender::TH_GP_WIRE_EDIT , blender::TH_GP_VERTEX , blender::TH_GP_VERTEX_SELECT ,
  blender::TH_GP_VERTEX_SIZE , blender::TH_DOPESHEET_CHANNELOB , blender::TH_DOPESHEET_CHANNELSUBOB , blender::TH_DOPESHEET_IPOLINE ,
  blender::TH_DOPESHEET_IPOCONST , blender::TH_DOPESHEET_IPOOTHER , blender::TH_PREVIEW_BACK , blender::TH_DRAWEXTRA_EDGELEN ,
  blender::TH_DRAWEXTRA_EDGEANG , blender::TH_DRAWEXTRA_FACEAREA , blender::TH_DRAWEXTRA_FACEANG , blender::TH_NODE_CURVING ,
  blender::TH_NODE_GRID_LEVELS , blender::TH_MARKER_OUTLINE , blender::TH_MARKER , blender::TH_ACT_MARKER ,
  blender::TH_SEL_MARKER , blender::TH_BUNDLE_SOLID , blender::TH_DIS_MARKER , blender::TH_PATH_BEFORE ,
  blender::TH_PATH_AFTER , blender::TH_PATH_KEYFRAME_BEFORE , blender::TH_PATH_KEYFRAME_AFTER , blender::TH_CAMERA_PATH ,
  blender::TH_CAMERA_PASSEPARTOUT , blender::TH_LOCK_MARKER , blender::TH_STITCH_PREVIEW_FACE , blender::TH_STITCH_PREVIEW_EDGE ,
  blender::TH_STITCH_PREVIEW_VERT , blender::TH_STITCH_PREVIEW_STITCHABLE , blender::TH_STITCH_PREVIEW_UNSTITCHABLE , blender::TH_STITCH_PREVIEW_ACTIVE ,
  blender::TH_UV_SHADOW , blender::TH_MATCH , blender::TH_SELECT_HIGHLIGHT , blender::TH_SELECT_ACTIVE ,
  blender::TH_SELECTED_OBJECT , blender::TH_ACTIVE_OBJECT , blender::TH_EDITED_OBJECT , blender::TH_ROW_ALTERNATE ,
  blender::TH_SKIN_ROOT , blender::TH_ANIM_ACTIVE , blender::TH_ANIM_INACTIVE , blender::TH_ANIM_PREVIEW_RANGE ,
  blender::TH_ANIM_SCENE_STRIP_RANGE , blender::TH_ICON_SCENE , blender::TH_ICON_COLLECTION , blender::TH_ICON_OBJECT ,
  blender::TH_ICON_OBJECT_DATA , blender::TH_ICON_MODIFIER , blender::TH_ICON_SHADING , blender::TH_ICON_FOLDER ,
  blender::TH_ICON_AUTOKEY , blender::TH_ICON_FUND , blender::TH_SCROLL_TEXT , blender::TH_NLA_TWEAK ,
  blender::TH_NLA_TWEAK_DUPLI , blender::TH_NLA_TRACK , blender::TH_NLA_TRANSITION , blender::TH_NLA_TRANSITION_SEL ,
  blender::TH_NLA_META , blender::TH_NLA_META_SEL , blender::TH_NLA_SOUND , blender::TH_NLA_SOUND_SEL ,
  blender::TH_WIDGET_EMBOSS , blender::TH_WIDGET_TEXT_CURSOR , blender::TH_WIDGET_TEXT_SELECTION , blender::TH_WIDGET_TEXT_HIGHLIGHT ,
  blender::TH_EDITOR_OUTLINE , blender::TH_EDITOR_OUTLINE_ACTIVE , blender::TH_EDITOR_BORDER , blender::TH_TRANSPARENT_CHECKER_PRIMARY ,
  blender::TH_TRANSPARENT_CHECKER_SECONDARY , blender::TH_TRANSPARENT_CHECKER_SIZE , blender::TH_AXIS_X , blender::TH_AXIS_Y ,
  blender::TH_AXIS_Z , blender::TH_AXIS_W , blender::TH_GIZMO_HI , blender::TH_GIZMO_PRIMARY ,
  blender::TH_GIZMO_SECONDARY , blender::TH_GIZMO_VIEW_ALIGN , blender::TH_GIZMO_A , blender::TH_GIZMO_B ,
  blender::TH_BACKGROUND_TYPE , blender::TH_INFO_SELECTED , blender::TH_INFO_SELECTED_TEXT , blender::TH_INFO_ERROR_TEXT ,
  blender::TH_INFO_WARNING_TEXT , blender::TH_INFO_INFO_TEXT , blender::TH_INFO_DEBUG , blender::TH_INFO_DEBUG_TEXT ,
  blender::TH_INFO_PROPERTY , blender::TH_INFO_PROPERTY_TEXT , blender::TH_INFO_OPERATOR , blender::TH_INFO_OPERATOR_TEXT ,
  blender::TH_VIEW_OVERLAY , blender::TH_V3D_CLIPPING_BORDER , blender::TH_METADATA_BG , blender::TH_METADATA_TEXT ,
  blender::TH_BEVEL , blender::TH_CREASE , blender::TH_SEAM , blender::TH_SHARP ,
  blender::TH_FREESTYLE
}

Functions

 blender::BLI_STATIC_ASSERT (sizeof(BIFIconID_Static)<=sizeof(BIFIconID), "Expected all builtin icon IDs to fit into `BIFIconID`")
Themes
float blender::ui::theme::get_value_f (int colorid)
int blender::ui::theme::get_value (int colorid)
float blender::ui::theme::get_value_type_f (int colorid, int spacetype)
int blender::ui::theme::get_value_type (int colorid, int spacetype)
void blender::ui::theme::get_color_3fv (int colorid, float col[3])
void blender::ui::theme::get_color_blend_3ubv (int colorid1, int colorid2, float fac, unsigned char col[3])
void blender::ui::theme::get_color_blend_3f (int colorid1, int colorid2, float fac, float r_col[3])
void blender::ui::theme::get_color_blend_4f (int colorid1, int colorid2, float fac, float r_col[4])
void blender::ui::theme::get_color_shade_3fv (int colorid, int offset, float col[3])
void blender::ui::theme::get_color_shade_3ubv (int colorid, int offset, unsigned char col[3])
void blender::ui::theme::get_color_shade_4ubv (int colorid, int offset, unsigned char col[4])
void blender::ui::theme::get_color_blend_shade_3ubv (int colorid1, int colorid2, float fac, int offset, unsigned char col[3])
void blender::ui::theme::get_color_4fv (int colorid, float col[4])
void blender::ui::theme::get_color_type_4fv (int colorid, int spacetype, float col[4])
void blender::ui::theme::get_color_shade_4fv (int colorid, int offset, float col[4])
void blender::ui::theme::get_color_shade_alpha_4fv (int colorid, int coloffset, int alphaoffset, float col[4])
void blender::ui::theme::get_color_shade_alpha_4ubv (int colorid, int coloffset, int alphaoffset, unsigned char col[4])
void blender::ui::theme::get_color_blend_shade_3fv (int colorid1, int colorid2, float fac, int offset, float col[3])
void blender::ui::theme::get_color_blend_shade_4fv (int colorid1, int colorid2, float fac, int offset, float col[4])
void blender::ui::theme::get_color_3ubv (int colorid, unsigned char col[3])
void blender::ui::theme::get_color_4ubv (int colorid, unsigned char col[4])
void blender::ui::theme::get_color_type_3fv (int colorid, int spacetype, float col[3])
void blender::ui::theme::get_color_type_3ubv (int colorid, int spacetype, unsigned char col[3])
void blender::ui::theme::get_color_type_4ubv (int colorid, int spacetype, unsigned char col[4])
bool blender::ui::theme::get_icon_color_4ubv (int colorid, unsigned char col[4])
void blender::ui::theme::get_color_blend_alpha_4fv (const float cp1[4], const float cp2[4], float fac, float alphaoffset, float r_col[4])
void blender::ui::theme::get_color_shade_3ubv (const unsigned char cp[3], int offset, unsigned char r_col[3])
void blender::ui::theme::get_color_blend_shade_3ubv (const unsigned char cp1[3], const unsigned char cp2[3], float fac, int offset, unsigned char r_col[3])
void blender::ui::theme::font_theme_color_set (int fontid, int colorid)
void blender::ui::theme::frame_buffer_clear (int colorid)
void blender::ui::theme::theme_set (int spacetype, int regionid)
const bTheme * blender::ui::theme::theme_get ()
void blender::ui::theme::theme_store (bThemeState *theme_state)
void blender::ui::theme::theme_restore (const bThemeState *theme_state)
int blender::ui::theme::get_menu_shadow_width ()
const unsigned char * blender::ui::theme::get_color_ptr (const bTheme *btheme, int spacetype, int colorid)
void blender::ui::theme::make_axis_color (const unsigned char col[3], char axis, unsigned char r_col[3])

Macro Definition Documentation

◆ BIFICONID_FIRST

#define BIFICONID_FIRST   (ICON_NONE)

Definition at line 38 of file UI_resources.hh.

◆ DEF_ICON

#define DEF_ICON ( name)
Value:
ICON_##name,

Definition at line 18 of file UI_resources.hh.

◆ DEF_ICON_BLANK

#define DEF_ICON_BLANK ( name)
Value:
ICON_BLANK_##name,

Definition at line 21 of file UI_resources.hh.

◆ DEF_ICON_COLLECTION

#define DEF_ICON_COLLECTION   DEF_ICON

Definition at line 45 of file UI_resources.hh.

◆ DEF_ICON_COLOR

#define DEF_ICON_COLOR ( name)
Value:
ICON_##name,

Definition at line 20 of file UI_resources.hh.

◆ DEF_ICON_FOLDER

#define DEF_ICON_FOLDER   DEF_ICON

Definition at line 60 of file UI_resources.hh.

◆ DEF_ICON_FUND

#define DEF_ICON_FUND   DEF_ICON

Definition at line 66 of file UI_resources.hh.

◆ DEF_ICON_MODIFIER

#define DEF_ICON_MODIFIER   DEF_ICON

Definition at line 54 of file UI_resources.hh.

◆ DEF_ICON_OBJECT

#define DEF_ICON_OBJECT   DEF_ICON

Definition at line 48 of file UI_resources.hh.

◆ DEF_ICON_OBJECT_DATA

#define DEF_ICON_OBJECT_DATA   DEF_ICON

Definition at line 51 of file UI_resources.hh.

◆ DEF_ICON_SCENE

#define DEF_ICON_SCENE   DEF_ICON

Definition at line 42 of file UI_resources.hh.

◆ DEF_ICON_SHADING

#define DEF_ICON_SHADING   DEF_ICON

Definition at line 57 of file UI_resources.hh.

◆ DEF_ICON_VECTOR

#define DEF_ICON_VECTOR ( name)
Value:
ICON_##name,

Definition at line 19 of file UI_resources.hh.

◆ TH_UNDEFINED

#define TH_UNDEFINED   -1