载入中...
搜索中...
未找到
eve::ui::controls 命名空间参考

命名空间

namespace  detail
 

枚举

enum class  ControlEdit : uint8_t { Unchanged = 0 , Changed }
 Result of drawing one immediate control in the current frame. 更多...
 

函数

ControlEdit button (const char *label, float width=0.f, float height=0.f)
 Shared immediate renderer for retained and EditorHost buttons.
 
ControlEdit checkbox (const char *label, bool &value)
 Shared immediate renderer for retained and EditorHost checkboxes.
 
ControlEdit slider (const char *label, float &value, float minimum, float maximum, const char *format="%.3f")
 Shared immediate renderer for scalar sliders.
 
ControlEdit combo (const char *label, int &selected, const std::vector< const char * > &items)
 Shared immediate renderer for indexed combo boxes.
 
ControlEdit inputText (const char *label, std::string &value, bool multiline=false, ImVec2 multilineSize=ImVec2(0.f, 96.f))
 UTF-8 owning text editor with automatic buffer growth.
 
ControlEdit inputTextWithHint (const char *label, const char *hint, std::string &value)
 UTF-8 owning single-line editor with placeholder text and automatic growth.
 

枚举类型说明

◆ ControlEdit

enum class eve::ui::controls::ControlEdit : uint8_t
strong

Result of drawing one immediate control in the current frame.

枚举值
Unchanged 
Changed 

在文件 ControlPrimitives.h 第 12 行定义.

函数说明

◆ button()

ControlEdit eve::ui::controls::button ( const char *  label,
float  width = 0.f,
float  height = 0.f 
)
inline

Shared immediate renderer for retained and EditorHost buttons.

Button.

在文件 ControlPrimitives.h 第 15 行定义.

引用了 Changed, height, label, Unchanged , 以及 width.

◆ checkbox()

ControlEdit eve::ui::controls::checkbox ( const char *  label,
bool &  value 
)
inline

Shared immediate renderer for retained and EditorHost checkboxes.

Checkbox.

在文件 ControlPrimitives.h 第 23 行定义.

引用了 Changed, label, Unchanged , 以及 value.

◆ combo()

ControlEdit eve::ui::controls::combo ( const char *  label,
int &  selected,
const std::vector< const char * > &  items 
)
inline

Shared immediate renderer for indexed combo boxes.

Combo.

在文件 ControlPrimitives.h 第 37 行定义.

引用了 Changed, label , 以及 Unchanged.

◆ inputText()

ControlEdit eve::ui::controls::inputText ( const char *  label,
std::string &  value,
bool  multiline = false,
ImVec2  multilineSize = ImVec2(0.f, 96.f) 
)
inline

UTF-8 owning text editor with automatic buffer growth.

Input text.

在文件 ControlPrimitives.h 第 63 行定义.

引用了 Changed, label, eve::ui::controls::detail::resizeInput(), Unchanged , 以及 value.

◆ inputTextWithHint()

ControlEdit eve::ui::controls::inputTextWithHint ( const char *  label,
const char *  hint,
std::string &  value 
)
inline

UTF-8 owning single-line editor with placeholder text and automatic growth.

在文件 ControlPrimitives.h 第 79 行定义.

引用了 Changed, label, eve::ui::controls::detail::resizeInput(), Unchanged , 以及 value.

◆ slider()

ControlEdit eve::ui::controls::slider ( const char *  label,
float &  value,
float  minimum,
float  maximum,
const char *  format = "%.3f" 
)
inline

Shared immediate renderer for scalar sliders.

Slider float.

在文件 ControlPrimitives.h 第 29 行定义.

引用了 Changed, label, maximum, minimum, Unchanged , 以及 value.