struct Graphene::Quad
- Graphene::Quad
- Struct
- Value
- Object
Overview
A 4 vertex quadrilateral, as represented by four #graphene_::point_t.
The contents of a #graphene_::quad_t are private and should never be accessed directly.
Defined in:
lib/gi-crystal/src/auto/graphene-1.0/quad.crConstructors
- .new(pointer : Pointer(Void), transfer : GICrystal::Transfer)
- .new(data : LibGraphene::Quad, _transfer : GICrystal::Transfer)
- .new(points : Enumerable(Graphene::Point) | Nil = nil)
Class Method Summary
-
.g_type : UInt64
Returns the type id (GType) registered in GLib type system.
Instance Method Summary
- #==(other : self) : Bool
- #bounds : Graphene::Rect
- #contains(p : Graphene::Point) : Bool
- #free : Nil
- #init(p1 : Graphene::Point, p2 : Graphene::Point, p3 : Graphene::Point, p4 : Graphene::Point) : Graphene::Quad
- #init_from_points(points : Enumerable(Graphene::Point)) : Graphene::Quad
- #init_from_points(*points : Graphene::Point)
- #init_from_rect(r : Graphene::Rect) : Graphene::Quad
- #point(index_ : UInt32) : Graphene::Point
- #points(*args, **options)
- #points(*args, **options, &)
- #points=(arg)
Constructor Detail
Class Method Detail
Returns the type id (GType) registered in GLib type system.
Instance Method Detail
def init(p1 : Graphene::Point, p2 : Graphene::Point, p3 : Graphene::Point, p4 : Graphene::Point) : Graphene::Quad
#