|
Blender V5.0
|
#include "BKE_context.hh"#include "BLI_array.hh"#include "BLI_string_ref.hh"#include "RNA_access.hh"#include "UI_interface_layout.hh"#include "interface_intern.hh"Go to the source code of this file.
Functions | |
| static void | handle_layer_buttons (bContext *C, void *arg1, void *arg2) |
| void | uiTemplateLayers (uiLayout *layout, PointerRNA *ptr, const StringRefNull propname, PointerRNA *used_ptr, const char *used_propname, int active_layer) |
|
static |
Definition at line 21 of file interface_template_layers.cc.
References BLI_assert, C, CTX_wm_window(), blender::Array< T, InlineBufferCapacity, Allocator >::data(), wmWindow::eventstate, blender::Array< T, InlineBufferCapacity, Allocator >::fill(), KM_SHIFT, wmEvent::modifier, POINTER_AS_INT, RNA_property_array_length(), RNA_property_boolean_set_array(), uiBut::rnapoin, and uiBut::rnaprop.
Referenced by uiTemplateLayers().
| void uiTemplateLayers | ( | uiLayout * | layout, |
| PointerRNA * | ptr, | ||
| blender::StringRefNull | propname, | ||
| PointerRNA * | used_ptr, | ||
| const char * | used_propname, | ||
| int | active_layer ) |
TODO: for now, grouping of layers is determined by dividing up the length of the array of layer bit-flags.
Definition at line 44 of file interface_template_layers.cc.
References uiLayout::block(), blender::StringRefNull::c_str(), col, uiLayout::column(), handle_layer_buttons(), POINTER_FROM_INT, ptr, RNA_property_array_length(), RNA_property_boolean_get_index(), RNA_struct_find_property(), RNA_struct_identifier(), RNA_warning, uiLayout::row(), Toggle, uiBut::type, UI_but_func_set(), UI_UNIT_X, UI_UNIT_Y, and uiDefAutoButR().