|
Blender V5.0
|
#include "BKE_context.hh"#include "BKE_idtype.hh"#include "BKE_linestyle.h"#include "BKE_scene.hh"#include "BLI_listbase.h"#include "BLI_string_utf8.h"#include "BLT_translation.hh"#include "DNA_light_types.h"#include "DNA_material_types.h"#include "DNA_texture_types.h"#include "DNA_world_types.h"#include "ED_render.hh"#include "RNA_access.hh"#include "WM_api.hh"#include "UI_interface.hh"#include "UI_interface_layout.hh"Go to the source code of this file.
Macros | |
| #define | B_MATPRV 1 |
Functions | |
| static void | do_preview_buttons (bContext *C, void *arg, int event) |
| void | uiTemplatePreview (uiLayout *layout, bContext *C, ID *id, bool show_buttons, ID *parent, MTex *slot, const char *preview_id) |
| #define B_MATPRV 1 |
Definition at line 33 of file interface_template_preview.cc.
Referenced by do_preview_buttons(), and uiTemplatePreview().
|
static |
Definition at line 35 of file interface_template_preview.cc.
References B_MATPRV, C, NC_MATERIAL, ND_SHADING_PREVIEW, and WM_event_add_notifier().
Referenced by uiTemplatePreview().
| void uiTemplatePreview | ( | uiLayout * | layout, |
| bContext * | C, | ||
| ID * | id, | ||
| bool | show_buttons, | ||
| ID * | parent, | ||
| MTex * | slot, | ||
| const char * | preview_id ) |
Definition at line 44 of file interface_template_preview.cc.
References B_MATPRV, BKE_idtype_idcode_to_name(), BKE_scene_uses_blender_eevee(), BLI_addtail(), BLI_findstring(), uiLayout::block(), BLT_I18NCONTEXT_ID_LIGHT, BLT_I18NCONTEXT_ID_WORLD, C, col, uiLayout::column(), CTX_data_scene(), CTX_IFACE_, CTX_wm_region(), do_preview_buttons(), ED_preview_draw(), ELEM, Extra, Grip, GS, uiPreview::height, Material::id, ID_LA, ID_LS, ID_MA, uiPreview::id_session_uid, ID_TE, ID_WO, IFACE_, MEM_callocN(), ID::name, offsetof, uiPreview::preview_id, uiLayout::prop(), RNA_id_pointer_create(), RNA_warning, Row, uiLayout::row(), ID::session_uid, SNPRINTF_UTF8, STRNCPY_UTF8, uiPreview::tag, TEX_PR_BOTH, TEX_PR_OTHER, TEX_PR_TEXTURE, UI_block_func_handle_set(), UI_but_func_drawextra_set(), UI_ITEM_NONE, UI_ITEM_R_EXPAND, UI_PREVIEW_TAG_DIRTY, ARegion::ui_previews, UI_UNIT_X, UI_UNIT_Y, uiDefBut(), uiDefButS(), and uiDefIconButS().