C/C++ SDK / C++ layer · UI / kroys::Ui::Section
kroys::Ui::Section
RAII scopes. open() tells whether the content should be drawn.
Kindclass
Headerkroys/plugin.hpp
Members3
DECLARATION
Declaration
Declared in kroys/plugin.hpp.
plugin.hpp
class Section
REFERENCE
Members
Constructors
#Section(const Ui& ui, const std::string& label, bool defaultOpen = true);Collapsible section; call EndSection only when it returned nonzero.
Methods
#[[nodiscard]] bool open() const;True when the section is expanded (draw its content).
Operators
#explicit operator bool() const;True when the object is valid (open, alive or non-null).
Signatures
Section(const Ui& ui, const std::string& label, bool defaultOpen = true); [[nodiscard]] bool open() const; explicit operator bool() const;
KroysEngine 0.1.0 documentation, built from the engine repository by Tools/BuildDocsSite.py.