Hpdf::Rectangle
Inherits Struct / Value / Object
Constructors
new(x : Float32, y : Float32, width : Float32, height : Float32)
Sourcenew(x : Number, y : Number, width : Number, height : Number)
Sourcenew(rect : LibHaru::Rect)
Sourcenew
SourceInstance methods
bottom
Sourcebottom=(bottom : Float32)
Sourceheight
Sourceheight=(height : Float32 | Int32)
Sourceleft
Sourceleft=(left : Float32)
Sourcepadding(*, top : Float32 = 0, bottom : Float32 = 0, left : Float32 = 0, right : Float32 = 0) : Rectangle
change the rect by using padding and return a new rect based on it
padding!(*, top : Float32 = 0, bottom : Float32 = 0, left : Float32 = 0, right : Float32 = 0)
change the rect by using padding
right
Sourceto_unsafe
Sourcetop
Sourcewidth
Sourcewidth=(width : Float32 | Int32)
Sourcex=(x : Float32 | Int32)
Sourcey=(y : Float32 | Int32)
Source