Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/interface/views/grid_view.cc
| Show First 20 Lines • Show All 124 Lines • ▼ Show 20 Lines | view_item_but_ = (uiButViewItem *)uiDefBut(&block, | ||||
| nullptr, | nullptr, | ||||
| 0, | 0, | ||||
| 0, | 0, | ||||
| 0, | 0, | ||||
| 0, | 0, | ||||
| ""); | ""); | ||||
| view_item_but_->view_item = reinterpret_cast<uiViewItemHandle *>(this); | view_item_but_->view_item = reinterpret_cast<uiViewItemHandle *>(this); | ||||
| UI_but_func_set(&view_item_but_->but, grid_tile_click_fn, view_item_but_, nullptr); | UI_but_func_set(view_item_but_, grid_tile_click_fn, view_item_but_, nullptr); | ||||
| } | } | ||||
| void AbstractGridViewItem::on_activate() | void AbstractGridViewItem::on_activate() | ||||
| { | { | ||||
| /* Do nothing by default. */ | /* Do nothing by default. */ | ||||
| } | } | ||||
| std::optional<bool> AbstractGridViewItem::should_be_active() const | std::optional<bool> AbstractGridViewItem::should_be_active() const | ||||
| ▲ Show 20 Lines • Show All 322 Lines • Show Last 20 Lines | |||||