Skip to main content

ControlSplit

The ControlSplit class represents a split control, often used for creating resizable panels or dividers within a user interface. It supports both vertical and horizontal orientations, with the ability to configure whether the split is absolute or relative. This control is useful for creating adjustable layouts in applications with multiple sections or panels.

#include <interface/TellusimControls.h>

Inheritance

Constructors

ControlSplit()
explicit ControlSplit(Control *parent, bool vertical = false)
ControlSplit(Control *parent, float32_t value, bool vertical = false)

Methods

Absolute flag.

void setAbsolute(bool absolute)
bool isAbsolute() const

Vertical flag.

void setVertical(bool vertical)
bool isHorizontal() const
bool isVertical() const

Split value.

void setValue(float32_t value)
float32_t getValue() const

Handle size.

void setHandleSize(float32_t size)
float32_t getHandleSize() const

Controls size.

const Vector2f getControlsSize() const