struct Hpdf::Rectangle
- Hpdf::Rectangle
- Struct
- Value
- Object
Defined in:
hpdf/structs.crConstructors
- .new(x : Float32, y : Float32, width : Float32, height : Float32)
- .new(x : Number, y : Number, width : Number, height : Number)
- .new(rect : LibHaru::Rect)
- .new
Instance Method Summary
- #bottom : Float32 | Int32
- #bottom=(bottom : Float32)
- #height : Float32 | Int32
- #height=(height : Float32 | Int32)
- #left : Float32 | Int32
- #left=(left : Float32)
-
#padding(*, 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
- #right=(right : Float32)
- #to_unsafe
- #top
- #top=(top : Float32)
- #width : Float32 | Int32
- #width=(width : Float32 | Int32)
- #x : Float32 | Int32
- #x=(x : Float32 | Int32)
- #y : Float32 | Int32
- #y=(y : Float32 | Int32)
Constructor Detail
Instance Method Detail
def padding(*, 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
change the rect by using padding
def right=(right : Float32)
#
def top=(top : Float32)
#