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

#include <interface_intern.hh>

Inherits blender::ui::Button.

Public Member Functions

void line_scroll_set (int line_scroll)
int line_scroll () const
int visible_lines () const
Public Member Functions inherited from blender::ui::Button
 Button ()=default
 Button (const Button &other)=default
Button & operator= (const Button &other)=delete
virtual ~Button ()=default
Public Member Functions inherited from blender::blender::NonMovable
 NonMovable (NonMovable &&other)=delete
NonMovable & operator= (NonMovable &&other)=delete
 NonMovable ()=default
 NonMovable (const NonMovable &other)=default
NonMovable & operator= (const NonMovable &other)=default

Public Attributes

int last_total_lines = 0
TextboxState * state
std::unique_ptr< TextWrapCache > wrap_cache
std::unique_ptr< TextWrapCache > placeholder_wrap_cache
Public Attributes inherited from blender::ui::Button
Layout * layout = nullptr
int64_t flag = 0
int drawflag = 0
TextDirection text_direction = TextDirection::Default
ButtonType type = ButtonType(0)
ButPointerType pointype = ButPointerType::None
bool bit = false
char bitnr = 0
uchar menu_key = 0
int retval = 0
short strwidth = 0
short alignnr = 0
int ofs = 0
int pos = 0
int selsta = 0
int selend = 0
uchar col [4] = {0}
std::string str
std::string drawstr
char * placeholder = nullptr
rctf rect = {}
char * poin = nullptr
float hardmin = 0
float hardmax = 0
float softmin = 0
float softmax = 0
ButtonIdentityCompareFunc identity_cmp_func = nullptr
ButtonHandleFunc func = nullptr
void * func_arg1 = nullptr
void * func_arg2 = nullptr
std::function< void(bContext &)> apply_func
ButtonHandleNFunc funcN = nullptr
void * func_argN = nullptr
ButtonArgNFree func_argN_free_fn
ButtonArgNCopy func_argN_copy_fn
const bContextStore * context = nullptr
ButtonCompleteFunc autocomplete_func = nullptr
void * autofunc_arg = nullptr
ButtonHandleHoldFunc hold_func = nullptr
void * hold_argN = nullptr
StringRef tip
ButtonToolTipFunc tip_func = nullptr
void * tip_arg = nullptr
FreeArgFunc tip_arg_free = nullptr
std::function< std::string(const Button *)> tip_quick_func
ButtonToolTipCustomFunc tip_custom_func = nullptr
const char * disabled_info = nullptr
IconTextOverlay icon_overlay_text = {}
EmbossType emboss = EmbossType::Emboss
RadialDirection pie_dir = UI_RADIAL_NONE
bool changed = false
BIFIconID icon = ICON_NONE
float icon_scale = 1.0f
float search_weight = 0.0f
short iconadd = 0
uchar unit_type = 0
bool menu_no_hover_open = false
BlockCreateFunc block_create_func = nullptr
MenuCreateFunc menu_create_func = nullptr
MenuStepFunc menu_step_func = nullptr
PointerRNA rnapoin = {}
PropertyRNA * rnaprop = nullptr
int rnaindex = 0
BIFIconID drag_preview_icon_id
void * dragpoin = nullptr
const ImBuf * imb = nullptr
float imb_scale = 0
eWM_DragDataType dragtype = WM_DRAG_ID
int8_t dragflag = 0
bool operator_never_call = false
wm::OpCallContext opcontext = wm::OpCallContext::InvokeDefault
wmOperatorType * optype = nullptr
PointerRNA * opptr = nullptr
ListBaseT< ButtonExtraOpIcon > extra_op_icons = {nullptr, nullptr}
HandleButtonData * active = nullptr
HandleButtonData * semi_modal_state = nullptr
void * custom_data = nullptr
char * editstr = nullptr
double * editval = nullptr
float * editvec = nullptr
std::function< bool(const Button &)> pushed_state_func
Block * block = nullptr

Detailed Description

Derived struct for #ButtonType::TextBox

Definition at line 398 of file interface_intern.hh.

Member Function Documentation

◆ line_scroll()

◆ line_scroll_set()

void blender::ui::ButtonTextBox::line_scroll_set ( int line_scroll)

◆ visible_lines()

Member Data Documentation

◆ last_total_lines

int blender::ui::ButtonTextBox::last_total_lines = 0

Total number of wrapped lines in the last text-box redraw/event handling.

Definition at line 401 of file interface_intern.hh.

Referenced by blender::ui::but_update_from_old_block(), blender::ui::do_but_TEXTBOX(), line_scroll(), blender::ui::textbox_wrap_lines(), and blender::ui::widget_draw_textbox().

◆ placeholder_wrap_cache

std::unique_ptr<TextWrapCache> blender::ui::ButtonTextBox::placeholder_wrap_cache

Placeholder wrap cache from last draw.

Definition at line 409 of file interface_intern.hh.

Referenced by blender::ui::but_update_from_old_block(), and blender::ui::textbox_wrap_placeholder().

◆ state

TextboxState* blender::ui::ButtonTextBox::state

◆ wrap_cache

std::unique_ptr<TextWrapCache> blender::ui::ButtonTextBox::wrap_cache

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