PlaceOS::Model::SignageTemplate::Layout
Inherits JSON::Serializable < Struct < Value < Object
Constructors
new(pull : JSON::PullParser)
Sourcenew(position : Position = Position::Top, plugin_id : String | Nil = nil, x_pos : Float32 | Nil = nil, y_pos : Float32 | Nil = nil, plugin_params : Hash(String, JSON::Any) = {} of String => JSON::Any)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
plugin_params
Sourceposition
Sourcespacer?
Sourcevalid?
Sourcex_pos
percentages of the screen, exclusive bounds (0, 1). Left/Right slices size via x_pos, Top/Bottom via y_pos, Floating widgets require both.
y_pos
Source