Blender V5.3
blender::ui::HandleButtonData Struct Reference

Public Attributes

wmWindowManager * wm = nullptr
wmWindow * window = nullptr
ScrArea * area = nullptr
ARegion * region = nullptr
bool interactive = false
HandleButtonState state = {}
int retval = 0
bool cancel = false
bool escapecancel = false
bool applied = false
bool applied_interactive = false
bool apply_through_extra_icon = false
bool changed_cursor = false
bool changed_wokspace_status = false
wmTimer * flashtimer = nullptr
TextEdit text_edit
std::string text_edit_unit_hint
wmTimer * text_select_auto_scroll = nullptr
double text_select_auto_scroll_last_time = std::numeric_limits<double>::lowest()
double value = 0.0f
double origvalue = 0.0f
double startvalue = 0.0f
float vec [3]
float origvec [3]
ColorBand * coba = nullptr
bool tooltip_force = false
bool disable_force = false
bool is_semi_modal = false
bool used_mouse = false
wmTimer * autoopentimer = nullptr
wmTimer * hold_action_timer = nullptr
int draglastx = 0
int draglasty = 0
int dragstartx = 0
int dragstarty = 0
float2 relative_drag = {0.0f, 0.0f}
bool dragchange = false
bool draglock = false
int dragsel = 0
float dragf = 0.0f
float dragfstart = 0.0f
CBData * dragcbd = nullptr
float drag_map_soft_min = 0.0f
float drag_map_soft_max = 0.0f
float ungrab_mval [2]
PopupBlockHandle * menu = nullptr
ARegion * searchbox = nullptr
KeyNavLock searchbox_keynav_state
HandleButtonMulti multi_data
uiSelectContextStore select_others
BlockInteraction_Handle * custom_interaction_handle = nullptr
ButtonActivateType posttype = {}
Button * postbut = nullptr

Detailed Description

Definition at line 413 of file interface_handlers.cc.

Member Data Documentation

◆ applied

bool blender::ui::HandleButtonData::applied = false

Definition at line 427 of file interface_handlers.cc.

◆ applied_interactive

bool blender::ui::HandleButtonData::applied_interactive = false

Definition at line 428 of file interface_handlers.cc.

◆ apply_through_extra_icon

bool blender::ui::HandleButtonData::apply_through_extra_icon = false

Definition at line 430 of file interface_handlers.cc.

Referenced by blender::ui::but_extra_operator_icon_apply().

◆ area

ScrArea* blender::ui::HandleButtonData::area = nullptr

Definition at line 416 of file interface_handlers.cc.

◆ autoopentimer

wmTimer* blender::ui::HandleButtonData::autoopentimer = nullptr

Definition at line 466 of file interface_handlers.cc.

◆ cancel

bool blender::ui::HandleButtonData::cancel = false

◆ changed_cursor

bool blender::ui::HandleButtonData::changed_cursor = false

Definition at line 431 of file interface_handlers.cc.

◆ changed_wokspace_status

bool blender::ui::HandleButtonData::changed_wokspace_status = false

Definition at line 432 of file interface_handlers.cc.

◆ coba

ColorBand* blender::ui::HandleButtonData::coba = nullptr

Definition at line 446 of file interface_handlers.cc.

◆ custom_interaction_handle

BlockInteraction_Handle* blender::ui::HandleButtonData::custom_interaction_handle = nullptr

Definition at line 515 of file interface_handlers.cc.

◆ disable_force

bool blender::ui::HandleButtonData::disable_force = false

Behave as if BUT_DISABLED is set (without drawing grayed out). Needed so non-interactive labels can be activated for the purpose of showing tool-tips, without them blocking interaction with nodes, see: #97386.

Definition at line 455 of file interface_handlers.cc.

Referenced by blender::ui::handle_button_over().

◆ drag_map_soft_max

float blender::ui::HandleButtonData::drag_map_soft_max = 0.0f

Definition at line 487 of file interface_handlers.cc.

◆ drag_map_soft_min

float blender::ui::HandleButtonData::drag_map_soft_min = 0.0f

Soft min/max with UI_DRAG_MAP_SOFT_RANGE_PIXEL_MAX applied.

Definition at line 486 of file interface_handlers.cc.

◆ dragcbd

CBData* blender::ui::HandleButtonData::dragcbd = nullptr

Definition at line 483 of file interface_handlers.cc.

◆ dragchange

bool blender::ui::HandleButtonData::dragchange = false

Definition at line 478 of file interface_handlers.cc.

◆ dragf

float blender::ui::HandleButtonData::dragf = 0.0f

Definition at line 481 of file interface_handlers.cc.

◆ dragfstart

float blender::ui::HandleButtonData::dragfstart = 0.0f

Definition at line 482 of file interface_handlers.cc.

◆ draglastx

int blender::ui::HandleButtonData::draglastx = 0

Definition at line 473 of file interface_handlers.cc.

◆ draglasty

int blender::ui::HandleButtonData::draglasty = 0

Definition at line 474 of file interface_handlers.cc.

◆ draglock

bool blender::ui::HandleButtonData::draglock = false

Definition at line 479 of file interface_handlers.cc.

◆ dragsel

int blender::ui::HandleButtonData::dragsel = 0

Definition at line 480 of file interface_handlers.cc.

◆ dragstartx

int blender::ui::HandleButtonData::dragstartx = 0

Definition at line 475 of file interface_handlers.cc.

◆ dragstarty

int blender::ui::HandleButtonData::dragstarty = 0

Definition at line 476 of file interface_handlers.cc.

◆ escapecancel

bool blender::ui::HandleButtonData::escapecancel = false

Definition at line 426 of file interface_handlers.cc.

◆ flashtimer

wmTimer* blender::ui::HandleButtonData::flashtimer = nullptr

Definition at line 433 of file interface_handlers.cc.

◆ hold_action_timer

wmTimer* blender::ui::HandleButtonData::hold_action_timer = nullptr

Definition at line 469 of file interface_handlers.cc.

◆ interactive

bool blender::ui::HandleButtonData::interactive = false

Definition at line 419 of file interface_handlers.cc.

Referenced by blender::ui::but_extra_operator_icon_apply().

◆ is_semi_modal

bool blender::ui::HandleButtonData::is_semi_modal = false

Semi-modal buttons: Instead of capturing all events, pass on events that aren't relevant to own handling. This way a text button (e.g. a search/filter field) can stay active while the remaining UI stays interactive. Only few button types support this well currently.

Definition at line 462 of file interface_handlers.cc.

Referenced by blender::ui::with_but_active_as_semi_modal().

◆ menu

PopupBlockHandle* blender::ui::HandleButtonData::menu = nullptr

Definition at line 498 of file interface_handlers.cc.

Referenced by blender::ui::handler_region_menu().

◆ multi_data

HandleButtonMulti blender::ui::HandleButtonData::multi_data

Definition at line 508 of file interface_handlers.cc.

◆ origvalue

double blender::ui::HandleButtonData::origvalue = 0.0f

Definition at line 443 of file interface_handlers.cc.

◆ origvec

float blender::ui::HandleButtonData::origvec[3]

Definition at line 445 of file interface_handlers.cc.

◆ postbut

Button* blender::ui::HandleButtonData::postbut = nullptr

Definition at line 519 of file interface_handlers.cc.

◆ posttype

ButtonActivateType blender::ui::HandleButtonData::posttype = {}

Definition at line 518 of file interface_handlers.cc.

◆ region

◆ relative_drag

float2 blender::ui::HandleButtonData::relative_drag = {0.0f, 0.0f}

Definition at line 477 of file interface_handlers.cc.

◆ retval

int blender::ui::HandleButtonData::retval = 0

Definition at line 423 of file interface_handlers.cc.

◆ searchbox

ARegion* blender::ui::HandleButtonData::searchbox = nullptr

◆ searchbox_keynav_state

KeyNavLock blender::ui::HandleButtonData::searchbox_keynav_state

Definition at line 503 of file interface_handlers.cc.

◆ select_others

uiSelectContextStore blender::ui::HandleButtonData::select_others

Definition at line 512 of file interface_handlers.cc.

◆ startvalue

double blender::ui::HandleButtonData::startvalue = 0.0f

Definition at line 444 of file interface_handlers.cc.

◆ state

HandleButtonState blender::ui::HandleButtonData::state = {}

◆ text_edit

TextEdit blender::ui::HandleButtonData::text_edit

◆ text_edit_unit_hint

std::string blender::ui::HandleButtonData::text_edit_unit_hint

Unit hint drawn faded after the edit string, empty when there is none.

Definition at line 437 of file interface_handlers.cc.

◆ text_select_auto_scroll

wmTimer* blender::ui::HandleButtonData::text_select_auto_scroll = nullptr

Definition at line 439 of file interface_handlers.cc.

◆ text_select_auto_scroll_last_time

double blender::ui::HandleButtonData::text_select_auto_scroll_last_time = std::numeric_limits<double>::lowest()

Definition at line 440 of file interface_handlers.cc.

◆ tooltip_force

bool blender::ui::HandleButtonData::tooltip_force = false

Definition at line 449 of file interface_handlers.cc.

Referenced by blender::ui::handle_button_over().

◆ ungrab_mval

float blender::ui::HandleButtonData::ungrab_mval[2]

Definition at line 494 of file interface_handlers.cc.

◆ used_mouse

bool blender::ui::HandleButtonData::used_mouse = false

Definition at line 465 of file interface_handlers.cc.

Referenced by blender::ui::handle_button_return_submenu().

◆ value

double blender::ui::HandleButtonData::value = 0.0f

Definition at line 442 of file interface_handlers.cc.

◆ vec

float blender::ui::HandleButtonData::vec[3]

Definition at line 445 of file interface_handlers.cc.

◆ window

wmWindow* blender::ui::HandleButtonData::window = nullptr

Definition at line 415 of file interface_handlers.cc.

◆ wm

wmWindowManager* blender::ui::HandleButtonData::wm = nullptr

Definition at line 414 of file interface_handlers.cc.


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