|
Blender
V3.3
|
#include "BKE_context.h"#include "BLI_listbase.h"#include "BLI_string.h"#include "WM_api.h"#include "UI_interface.h"#include "interface_intern.h"#include "UI_abstract_view.hh"Go to the source code of this file.
Classes | |
| class | blender::ui::ViewItemAPIWrapper |
Namespaces | |
| blender | |
| blender::ui | |
Functions | |
Renaming | |
| static AbstractViewItem * | blender::ui::find_item_from_rename_button (const uiBut &rename_but) |
| static void | blender::ui::rename_button_fn (bContext *UNUSED(C), void *arg, char *UNUSED(origstr)) |
C-API | |
| bool | UI_view_item_is_active (const uiViewItemHandle *item_handle) |
| bool | UI_view_item_matches (const uiViewItemHandle *a_handle, const uiViewItemHandle *b_handle) |
| bool | UI_view_item_can_rename (const uiViewItemHandle *item_handle) |
| void | UI_view_item_begin_rename (uiViewItemHandle *item_handle) |
| void | UI_view_item_context_menu_build (bContext *C, const uiViewItemHandle *item_handle, uiLayout *column) |
| bool | UI_view_item_drag_start (bContext *C, const uiViewItemHandle *item_) |
| bool | UI_view_item_can_drop (const uiViewItemHandle *item_, const wmDrag *drag, const char **r_disabled_hint) |
| char * | UI_view_item_drop_tooltip (const uiViewItemHandle *item_, const wmDrag *drag) |
| bool | UI_view_item_drop_handle (bContext *C, const uiViewItemHandle *item_, const ListBase *drags) |
| void UI_view_item_begin_rename | ( | uiViewItemHandle * | item_handle | ) |
Definition at line 331 of file abstract_view_item.cc.
References blender::ui::AbstractViewItem::begin_renaming().
Referenced by ui_do_but_VIEW_ITEM(), and ui_view_item_rename_exec().
| bool UI_view_item_can_drop | ( | const uiViewItemHandle * | item_, |
| const wmDrag * | drag, | ||
| const char ** | r_disabled_hint | ||
| ) |
Definition at line 351 of file abstract_view_item.cc.
References blender::ui::ViewItemAPIWrapper::can_drop().
| bool UI_view_item_can_rename | ( | const uiViewItemHandle * | item_handle | ) |
Can item_handle be renamed right now? Note that this isn't just a mere wrapper around #AbstractViewItem::supports_renaming(). This also checks if there is another item being renamed, and returns false if so.
Definition at line 325 of file abstract_view_item.cc.
References blender::ui::ViewItemAPIWrapper::can_rename().
Referenced by ui_view_item_rename_poll().
| void UI_view_item_context_menu_build | ( | bContext * | C, |
| const uiViewItemHandle * | item_handle, | ||
| uiLayout * | column | ||
| ) |
Definition at line 337 of file abstract_view_item.cc.
References blender::ui::AbstractViewItem::build_context_menu(), and C.
Referenced by ui_popup_context_menu_for_button().
| bool UI_view_item_drag_start | ( | struct bContext * | C, |
| const uiViewItemHandle * | item_ | ||
| ) |
Attempt to start dragging item_. This will not work if the view item doesn't support dragging, i.e. if it won't create a drag-controller upon request.
Definition at line 345 of file abstract_view_item.cc.
References C, and blender::ui::ViewItemAPIWrapper::drag_start().
Referenced by ui_but_drag_init().
| bool UI_view_item_drop_handle | ( | bContext * | C, |
| const uiViewItemHandle * | item_, | ||
| const ListBase * | drags | ||
| ) |
Definition at line 367 of file abstract_view_item.cc.
References C, and blender::ui::ViewItemAPIWrapper::drop_handle().
| char* UI_view_item_drop_tooltip | ( | const uiViewItemHandle * | item_, |
| const wmDrag * | drag | ||
| ) |
Definition at line 359 of file abstract_view_item.cc.
References BLI_strdup(), and blender::ui::ViewItemAPIWrapper::drop_tooltip().
| bool UI_view_item_is_active | ( | const uiViewItemHandle * | item_handle | ) |
Definition at line 312 of file abstract_view_item.cc.
References blender::ui::AbstractViewItem::is_active().
Referenced by ui_but_is_active_view_item(), and ui_but_is_pushed_ex().
| bool UI_view_item_matches | ( | const uiViewItemHandle * | a_handle, |
| const uiViewItemHandle * | b_handle | ||
| ) |
Definition at line 318 of file abstract_view_item.cc.
References Freestyle::a, usdtokens::b(), and blender::ui::ViewItemAPIWrapper::matches().
Referenced by ui_block_view_find_matching_view_item_but_in_old_block(), and ui_but_equals_old().