struct Blend2D::Geometry::Box

Overview

A box struct.

Defined in:

blend2d/geometry/rect.cr

Constructors

Instance Method Summary

Instance methods inherited from struct Blend2D::Geometry::GeometryType

initialize initialize, pointer : Pointer pointer, type : LibBlend2D::BLGeometryType type

Constructor methods inherited from struct Blend2D::Geometry::GeometryType

new new

Constructor Detail

def self.new(x0 : Float64, y0 : Float64, x1 : Float64, y1 : Float64) #

Initialize a new Box given two double floating point pairs, representing points.


[View source]
def self.new(a : Point, b : Point) #

Initialize a new Box given two Points.


[View source]

Instance Method Detail

def a #

The first point representing the box's position.


[View source]
def b #

The second point representing the box's position/size.


[View source]
def x0 : Float64 #

[View source]
def x1 : Float64 #

[View source]
def y0 : Float64 #

[View source]
def y1 : Float64 #

[View source]