Blender V5.3
blender::uiListDyn Struct Reference

#include <DNA_screen_types.h>

Public Attributes

uiListFreeRuntimeDataFunc free_runtime_data_fn = {}
int height = 0
int visual_height = 0
int visual_height_min = 0
int items_len = 0
int items_shown = 0
int resize = 0
int resize_prev = 0
void * customdata = nullptr
int * items_filter_flags = nullptr
int * items_filter_neworder = nullptr
struct wmOperatorType * custom_drag_optype = nullptr

Detailed Description

Definition at line 388 of file DNA_screen_types.h.

Member Data Documentation

◆ custom_drag_optype

struct wmOperatorType* blender::uiListDyn::custom_drag_optype = nullptr

Definition at line 422 of file DNA_screen_types.h.

◆ customdata

void* blender::uiListDyn::customdata = nullptr

Allocated custom data. Freed together with the uiList (and when re-assigning).

Definition at line 412 of file DNA_screen_types.h.

◆ free_runtime_data_fn

uiListFreeRuntimeDataFunc blender::uiListDyn::free_runtime_data_fn = {}

Callback to free UI data when freeing UI-Lists in BKE.

Definition at line 390 of file DNA_screen_types.h.

Referenced by blender::BKE_area_region_free(), and blender::ui::uilist_ensure().

◆ height

int blender::uiListDyn::height = 0

Number of rows needed to draw all elements.

Definition at line 393 of file DNA_screen_types.h.

Referenced by blender::ui::handle_uilist_event(), blender::ui::template_uilist_layout_draw(), and blender::ui::uilist_prepare().

◆ items_filter_flags

int* blender::uiListDyn::items_filter_flags = nullptr

This bit-field is effectively exposed in Python, and scripts are explicitly allowed to assign any own meaning to the lower 16 ones. items_len length.

Definition at line 418 of file DNA_screen_types.h.

Referenced by blender::ui::handle_uilist_event(), blender::ui::template_uilist_collect_items(), blender::ui::uilist_ensure(), blender::ui::uilist_filter_and_sort_items(), blender::ui::uilist_free_dyn_data(), and blender::ui::uilist_item_index_is_filtered_visible().

◆ items_filter_neworder

int* blender::uiListDyn::items_filter_neworder = nullptr

◆ items_len

int blender::uiListDyn::items_len = 0

◆ items_shown

◆ resize

int blender::uiListDyn::resize = 0

◆ resize_prev

int blender::uiListDyn::resize_prev = 0

◆ visual_height

int blender::uiListDyn::visual_height = 0

Actual visual height of the list (in rows).

Definition at line 395 of file DNA_screen_types.h.

Referenced by blender::ui::handle_uilist_event(), blender::ui::template_uilist_layout_draw(), and blender::ui::uilist_prepare().

◆ visual_height_min

int blender::uiListDyn::visual_height_min = 0

Minimal visual height of the list (in rows).

Definition at line 397 of file DNA_screen_types.h.

Referenced by blender::ui::handle_uilist_event(), and blender::ui::uilist_prepare().


The documentation for this struct was generated from the following file: