Blender V5.3
UI_interface.hh File Reference
#include <functional>
#include <memory>
#include "BLI_function_ref.hh"
#include "BLI_string_ref.hh"
#include "BLI_vector.hh"
#include "UI_resources.hh"
#include "UI_interface_c.hh"

Go to the source code of this file.

Classes

struct  blender::ui::ContextPathItem
struct  blender::ui::DragInfo
class  blender::ui::DropTargetInterface
class  blender::ui::uiListNameFilter

Namespaces

namespace  blender
 BMesh Iterators.
namespace  blender::nodes
namespace  blender::nodes::eval_log
namespace  blender::ui

Typedefs

using blender::ui::uiListItemFilterFn
using blender::ui::uiListItemGetNameFn = FunctionRef<std::string(const PointerRNA &itemptr, int index)>

Enumerations

enum class  blender::ui::DropBehavior { blender::ui::Reorder , blender::ui::Insert , blender::ui::ReorderAndInsert }
enum class  blender::ui::DropLocation { blender::ui::Into , blender::ui::Before , blender::ui::After }
enum  blender::ui::eUIListFilterResult { blender::ui::UI_LIST_ITEM_NEVER_SHOW , blender::ui::UI_LIST_ITEM_FILTER_MATCHES , blender::ui::UI_LIST_ITEM_FILTER_MISMATCHES }

Functions

template<typename T>
void blender::ui::but_func_argN_free (void *argN)
template<typename T>
void * blender::ui::but_func_argN_copy (const void *argN)
void blender::ui::context_path_add_generic (Vector< ContextPathItem > &path, StructRNA &rna_type, void *ptr, const BIFIconID icon_override=ICON_NONE, std::function< void(bContext &)> handle_func=nullptr, MenuCreateFunc menu_func=nullptr, void *menu_arg=nullptr)
void blender::ui::attribute_search_add_items (StringRef str, bool can_create_attribute, Span< const nodes::eval_log::GeometryAttributeInfo * > infos, SearchItems *items, bool is_first)
void blender::ui::grease_pencil_layer_search_add_items (StringRef str, Span< const std::string * > layer_names, SearchItems &items, bool is_first)
bool blender::ui::asset_shelf_popover_invoke (bContext &C, StringRef asset_shelf_idname, ReportList &reports)
bool blender::ui::drop_target_apply_drop (bContext &C, const ARegion &region, const wmEvent &event, const DropTargetInterface &drop_target, const ListBaseT< wmDrag > &drags)
std::string blender::ui::drop_target_tooltip (const ARegion &region, const DropTargetInterface &drop_target, const wmDrag &drag, const wmEvent &event)
std::unique_ptr< DropTargetInterface > blender::ui::region_views_find_drop_target_at (const ARegion *region, const int xy[2])
void blender::ui::uilist_filter_and_sort_items (uiList *ui_list, const bContext *C, uiListItemFilterFn item_filter_fn, PointerRNA *dataptr, const char *propname, uiListItemGetNameFn get_name_fn=nullptr)
AbstractGridView * blender::ui::block_add_view (Block &block, StringRef idname, std::unique_ptr< AbstractGridView > grid_view)
AbstractTreeView * blender::ui::block_add_view (Block &block, StringRef idname, std::unique_ptr< AbstractTreeView > tree_view)
Button Context & Callbacks
void blender::ui::button_func_set (Button *but, std::function< void(bContext &)> func)
void blender::ui::button_func_pushed_state_set (Button *but, std::function< bool(const Button &)> func)
Breadcrumb Template
void blender::ui::template_breadcrumbs (Layout &layout, Span< ContextPathItem > context_path)
Menu Block Creation
void blender::ui::alert (bContext *C, StringRef title, StringRef message, AlertIcon icon, bool compact)