struct Blend2D::Geometry::BoxI

Overview

A box struct, restricted to integers.

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 : Int32, y0 : Int32, x1 : Int32, y1 : Int32) #

Initialize a new BoxI given two integer pairs representing points.


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

Initialize a new BoxI from two PointIs.


[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 : Int32 #

[View source]
def x1 : Int32 #

[View source]
def y0 : Int32 #

[View source]
def y1 : Int32 #

[View source]