|
Blender V4.5
|
Inherits blender::ui::AbstractTreeViewItem.
Definition at line 338 of file interface_template_grease_pencil_layer_tree.cc.
|
inline |
Definition at line 340 of file interface_template_grease_pencil_layer_tree.cc.
References blender::ui::AbstractTreeViewItem::label_.
|
inlineoverridevirtual |
Reimplemented from blender::ui::AbstractViewItem.
Definition at line 393 of file interface_template_grease_pencil_layer_tree.cc.
References C, UI_menutype_draw(), and WM_menutype_find().
|
inlineoverridevirtual |
Implements blender::ui::AbstractTreeViewItem.
Definition at line 375 of file interface_template_grease_pencil_layer_tree.cc.
References uiLayout::row(), and uiLayoutSetPropDecorate().
|
inlineoverridevirtual |
If an item wants to support being dragged, it has to return a drag controller here. That is an object implementing AbstractViewItemDragController.
Reimplemented from blender::ui::AbstractViewItem.
Definition at line 448 of file interface_template_grease_pencil_layer_tree.cc.
References blender::ui::AbstractTreeViewItem::get_tree_view().
|
inlineoverridevirtual |
Reimplemented from blender::ui::AbstractTreeViewItem.
Definition at line 454 of file interface_template_grease_pencil_layer_tree.cc.
References blender::ui::ReorderAndInsert.
|
inlineoverridevirtual |
See AbstractViewItem::get_rename_string().
Reimplemented from blender::ui::AbstractTreeViewItem.
Definition at line 443 of file interface_template_grease_pencil_layer_tree.cc.
|
inlineoverridevirtual |
Called when the view changes an item's state from inactive to active. Will only be called if the state change is triggered through the view, not through external changes. E.g. a click on an item calls it, a change in the value returned by should_be_active() to reflect an external state change does not.
Reimplemented from blender::ui::AbstractViewItem.
Definition at line 402 of file interface_template_grease_pencil_layer_tree.cc.
References active, C, CTX_wm_message_bus(), ED_undo_push(), RNA_pointer_create_discrete(), RNA_property_pointer_set(), RNA_property_update(), RNA_struct_find_property(), and WM_msg_publish_rna_prop.
|
inlineoverridevirtual |
Called when the view changes an item's state from expanded to collapsed, or vice versa. Will only be called if the state change is triggered through the view, not through external changes. E.g. a click on an item calls it, a change in the value returned by should_be_collapsed() to reflect an external state change does not.
Reimplemented from blender::ui::AbstractTreeViewItem.
Definition at line 361 of file interface_template_grease_pencil_layer_tree.cc.
References C, blender::ui::AbstractTreeViewItem::is_collapsed(), RNA_pointer_create_discrete(), RNA_property_boolean_set(), RNA_property_update(), and RNA_struct_find_property().
|
inlineoverridevirtual |
See AbstractViewItem::rename().
Reimplemented from blender::ui::AbstractTreeViewItem.
Definition at line 430 of file interface_template_grease_pencil_layer_tree.cc.
References C, blender::StringRefNull::c_str(), ED_undo_push(), RNA_pointer_create_discrete(), RNA_property_string_set(), RNA_property_update(), and RNA_struct_find_property().
|
inlineoverridevirtual |
Expand or collapse this tree view item.
Reimplemented from blender::ui::AbstractTreeViewItem.
Definition at line 352 of file interface_template_grease_pencil_layer_tree.cc.
References blender::ui::AbstractTreeViewItem::set_collapsed().
|
inlineoverridevirtual |
If the result is not empty, it controls whether the item should be active or not, usually depending on the data that the view represents. Note that since this is meant to reflect externally managed state changes, on_activate() will never be called if this returns true.
Reimplemented from blender::ui::AbstractViewItem.
Definition at line 385 of file interface_template_grease_pencil_layer_tree.cc.
|
inlineoverridevirtual |
If the result is not empty, it controls whether the item should be collapsed or not, usually depending on the data that the view represents.
Reimplemented from blender::ui::AbstractTreeViewItem.
Definition at line 346 of file interface_template_grease_pencil_layer_tree.cc.
References blender::ui::AbstractTreeViewItem::is_collapsed().
|
inlineoverridevirtual |
Queries if the view item supports renaming in principle. Renaming may still fail, e.g. if another item is already being renamed.
Reimplemented from blender::ui::AbstractViewItem.
Definition at line 425 of file interface_template_grease_pencil_layer_tree.cc.