phoenix::Sizable

Represents an Object that can be resized (eg a Layout or Widget.) This class is only useful when designing a custom Layout subclass.

struct Sizable : Object {
  virtual bool enabled() = 0;
  Layout* layout();
  virtual Geometry minimumGeometry() = 0;
  virtual void setEnabled(bool enabled = true) = 0;
  virtual void setGeometry(const Geometry &geometry) = 0;
  virtual void setVisible(bool visible = true) = 0;
  virtual bool visible() = 0;
  Window* window();
};

bool Sizable::enabled();

True if the control is enabled.

Layout* Sizable::layout();

Returns the parent layout for this Sizable control. If there is no parent, this will return nullptr.

Geometry Sizable::minimumGeometry();

Returns the minimum size necessary to display this Sizable control.

void Sizable::setEnabled(bool enabled = true);

Set the enabled state of this control.

void Sizable::setGeometry(const Geometry &geometry);

Set the geometry of this control.

void Sizable::setVisible(bool visible = true);

Set visibility of this control.

bool Sizable::visible();

True if the control is visible.

Window* Sizable::window();

Returns the parent window for this Sizable control. Note that even for nested layouts, this will return the root parent window. If there is no parent, this will return nullptr.