class jive.geom.Insets

  • An Insets object is a representation of the borders of a container. *

  • It specifies the space that a container must leave at each of its edges.
  • The space can be a border, a blank space, or a title. *

  • Author paling

Class Fields

static function createIdentic(edge:Int): Insets

Creates new Insets instance with identic edges.

edge

the edge value for insets.

returns

new insets instance.

Instance Fields

var left:Int

var top:Int

function new(?top:Int, ?left:Int, ?bottom:Int, ?right:Int): Void

Creats an insets.

function addInsets(insets:Insets): Insets

Add specified insets and return this.

function clone(): Insets

function equals(o:Dynamic): Bool

function getInsideBounds(bounds:IntRectangle): IntRectangle

Apply insets to the bounds and return inner bounds.

function getInsideSize(?size:IntDimension): IntDimension

Return the size after insets substraction.

function getMarginHeight(): Int

returns

top + bottom

function getMarginWidth(): Int

returns

left + right

function getOutsideBounds(bounds:IntRectangle): IntRectangle

Apply insets to the bounds and return outer bounds.

function getOutsideSize(?size:IntDimension): IntDimension

Return the size after insets addition.

function toString(): String