Platform::Rect
Inherits JSON::Serializable < Struct < Value < Object
Constructors
new(pull : JSON::PullParser)
Sourcenew(id : UUID, bg : Tuple(UInt8, UInt8, UInt8, UInt8) = {0, 0, 0, 255}, w : Float64 = 0, h : Float64 = 0, x : Float64 = 0, y : Float64 = 0)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
bg
Sourceh=(h : Float64)
Sourceid
Sourcerelease(platform : Platform)
Asks platform backend to release (destroy, deallocate) this rectangle, and forget its ID.
All subsequent calls to this rectangle will be ignored.
If you still have hold of this rectangle, you can acquire
it back using ackquire.
w=(w : Float64)
Sourcex=(x : Float64)
Sourcey=(y : Float64)
Source