|
Blender
V3.3
|
#include <UI_grid_view.hh>
Public Types | |
| using | ItemIterFn = FunctionRef< void(AbstractGridViewItem &)> |
Public Member Functions | |
| AbstractGridView () | |
| virtual | ~AbstractGridView ()=default |
| void | foreach_item (ItemIterFn iter_fn) const |
| template<class ItemT , typename... Args> | |
| ItemT & | add_item (Args &&...args) |
| const GridViewStyle & | get_style () const |
| int | get_item_count () const |
Public Member Functions inherited from blender::ui::AbstractView | |
| virtual | ~AbstractView ()=default |
| void | register_item (AbstractViewItem &item) |
| virtual bool | listen (const wmNotifier &) const |
| bool | is_renaming () const |
| bool | begin_renaming () |
| void | end_renaming () |
| Span< char > | get_rename_buffer () const |
| MutableSpan< char > | get_rename_buffer () |
Protected Member Functions | |
| virtual void | build_items ()=0 |
Protected Member Functions inherited from blender::ui::AbstractView | |
| AbstractView ()=default | |
| void | update_from_old (uiBlock &new_block) |
| bool | is_reconstructed () const |
Protected Attributes | |
| Vector< std::unique_ptr< AbstractGridViewItem > > | items_ |
| Map< StringRef, AbstractGridViewItem * > | item_map_ |
| GridViewStyle | style_ |
Friends | |
| class | AbstractGridViewItem |
| class | GridViewBuilder |
| class | GridViewLayoutBuilder |
Definition at line 94 of file UI_grid_view.hh.
Definition at line 110 of file UI_grid_view.hh.
| blender::ui::AbstractGridView::AbstractGridView | ( | ) |
Definition at line 23 of file grid_view.cc.
|
virtualdefault |
|
inline |
Convenience wrapper constructing the item by forwarding given arguments to the constructor of the type (ItemT).
E.g. if your grid-item type has the following constructor:
You can add an item like this:
Definition at line 221 of file UI_grid_view.hh.
|
protectedpure virtual |
Referenced by blender::ui::GridViewBuilder::build_grid_view().
| void blender::ui::AbstractGridView::foreach_item | ( | ItemIterFn | iter_fn | ) | const |
Definition at line 38 of file grid_view.cc.
References items_.
Referenced by blender::ui::AbstractGridViewItem::activate(), and blender::ui::GridViewLayoutBuilder::build_from_view().
| int blender::ui::AbstractGridView::get_item_count | ( | ) | const |
Definition at line 82 of file grid_view.cc.
References items_.
Referenced by blender::ui::GridViewLayoutBuilder::build_from_view(), and blender::ui::BuildOnlyVisibleButtonsHelper::fill_layout_after_visible().
| const GridViewStyle & blender::ui::AbstractGridView::get_style | ( | ) | const |
Definition at line 77 of file grid_view.cc.
References style_.
Referenced by blender::ui::GridViewLayoutBuilder::build_from_view(), and blender::ui::PreviewGridItem::build_grid_tile().
|
friend |
Definition at line 95 of file UI_grid_view.hh.
|
friend |
Definition at line 96 of file UI_grid_view.hh.
|
friend |
Definition at line 97 of file UI_grid_view.hh.
|
protected |
<identifier, item> map to lookup items by identifier, used for efficient lookups in update_from_old().
Definition at line 103 of file UI_grid_view.hh.
|
protected |
Definition at line 100 of file UI_grid_view.hh.
Referenced by foreach_item(), and get_item_count().
|
protected |
Definition at line 104 of file UI_grid_view.hh.
Referenced by get_style().