struct

PlaceOS::Model::SignageTemplate::Layout

Inherits JSON::Serializable < Struct < Value < Object

Constructors

new(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)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

plugin_id

nil plugin_id means this layout entry is a spacer

Source
plugin_params
Source
position
Source
spacer?
Source
valid?
Source
validation_message

nil when the layout is valid, otherwise a human-readable reason.

Source
x_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.

Source
y_pos
Source

Nested types