Avara3D 0.2.0
C++ API reference
a3d::ui::Panel::Options Struct Reference

Controls panel width and its inset from the upper-right viewport corner. More...

#include <a3d/ui/Panel.h>

Static Public Member Functions

static Options Default ()
 Returns the Options value currently used as Panel's default argument. More...
 

Public Attributes

float width {260.0f}
 Panel width in logical UI units. More...
 
float margin {12.0f}
 Top and right viewport margin in logical UI units. More...
 

Detailed Description

Controls panel width and its inset from the upper-right viewport corner.

Definition at line 35 of file Panel.h.

Member Function Documentation

◆ Default()

static Options a3d::ui::Panel::Options::Default ( )
inlinestatic

Returns the Options value currently used as Panel's default argument.

The current implementation returns zero width and margin; Panel rejects a zero width, so callers should use Options{} or explicit options instead.

Definition at line 45 of file Panel.h.

Member Data Documentation

◆ margin

float a3d::ui::Panel::Options::margin {12.0f}

Top and right viewport margin in logical UI units.

Definition at line 37 of file Panel.h.

◆ width

float a3d::ui::Panel::Options::width {260.0f}

Panel width in logical UI units.

Definition at line 36 of file Panel.h.


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