Struct WindowSizesAndPositions

Inheritance Relationships

Base Type

Struct Documentation

struct SmartPeak::WindowSizesAndPositions : public SmartPeak::IPropertiesHandler

Public Functions

virtual std::string getPropertiesHandlerName() const override

IPropertiesHandler

virtual std::map<std::string, CastValue::Type> getPropertiesSchema() const override

Returns the list of properties, name of the property, and its type.

Returns

a map of name/type

virtual std::optional<CastValue> getProperty(const std::string &property, const size_t row) const override

Returns the property value based on the name.

Returns

the property value, as CastValue, std::nullopt if the property does not exists.

virtual void setProperty(const std::string &property, const CastValue &value, const size_t row) override

Sets the property value based on the name.

void setXAndYSizes(const float &x, const float &y)
void setWindowPercentages(const float &bottom_window_y_perc, const float &left_window_x_perc, const float &right_window_x_perc)
void setWindowSizesAndPositions_(const float &bottom_window_y_perc, const float &left_window_x_perc, const float &right_window_x_perc)
void setWindowsVisible(const bool &show_top_window, const bool &show_bottom_window, const bool &show_left_window, const bool &show_right_window)
void setLeftWindowXSize(const float &left_window_x_size)
void setTopWindowYSize(const float &top_window_y_size)

Public Members

float main_menu_bar_y_size_ = 18.0f
float y_size_ = 0
float x_size_ = 0
float bottom_window_y_size_ = 0
float bottom_and_top_window_x_size_ = 0
float top_window_y_size_ = 0
float left_and_right_window_y_size_ = 0
float left_window_x_size_ = 0
float right_window_x_size_ = 0
float bottom_window_y_pos_ = 0
float bottom_and_top_window_x_pos_ = 0
float top_window_y_pos_ = 0
float left_and_right_window_y_pos_ = 0
float left_window_x_pos_ = 0
float right_window_x_pos_ = 0
float bottom_window_y_perc_ = 0.25
float left_window_x_perc_ = 0.25
float right_window_x_perc_ = 0