Blender V5.0
uiButTypeWithPointerType Struct Reference

#include <UI_interface_c.hh>

Public Member Functions

 uiButTypeWithPointerType (ButType bt)
 uiButTypeWithPointerType (ButType bt, ButPointerType pt)
 uiButTypeWithPointerType (ButType bt, ButPointerType pt, int i)

Public Attributes

ButType but_type = ButType::But
ButPointerType pointer_type = ButPointerType::None
char bit_index = 0

Detailed Description

Definition at line 485 of file UI_interface_c.hh.

Constructor & Destructor Documentation

◆ uiButTypeWithPointerType() [1/3]

uiButTypeWithPointerType::uiButTypeWithPointerType ( ButType bt)
inline

Definition at line 498 of file UI_interface_c.hh.

References but_type.

◆ uiButTypeWithPointerType() [2/3]

uiButTypeWithPointerType::uiButTypeWithPointerType ( ButType bt,
ButPointerType pt )
inline

Definition at line 500 of file UI_interface_c.hh.

References but_type, and pointer_type.

◆ uiButTypeWithPointerType() [3/3]

uiButTypeWithPointerType::uiButTypeWithPointerType ( ButType bt,
ButPointerType pt,
int i )
inline

Member Data Documentation

◆ bit_index

char uiButTypeWithPointerType::bit_index = 0

Indicates the bit index when the raw pointed data stores boolean bit values, which is indicated with the ButPointerType::Bit flag.

Definition at line 496 of file UI_interface_c.hh.

Referenced by ui_def_but(), and uiButTypeWithPointerType().

◆ but_type

◆ pointer_type

ButPointerType uiButTypeWithPointerType::pointer_type = ButPointerType::None

Buttons can access source data with RNA pointers or raw pointers (uiBut::poin), when using a raw pointer to numerical values this indicates the underlying type of the source data.

Definition at line 491 of file UI_interface_c.hh.

Referenced by ui_def_but(), uiButTypeWithPointerType(), uiButTypeWithPointerType(), uiDefButBit(), and uiDefIconButBit().


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