Drag[en]gine Script Module DragonScript 1.35
Loading...
Searching...
No Matches
Dragengine.Gui.BorderSize Class Reference
Inheritance diagram for Dragengine.Gui.BorderSize:

Public Member Functions

BorderSize enlarge (BorderSize borderSize)
BorderSize enlarge (int left, int top, int right, int bottom)
bool equals (Object other)
int getBottom ()
int getHeight ()
int getLeft ()
Point getLeftBottom ()
 Left and bottom border as Point.
Point getLeftTop ()
 Left and top border as Point.
int getRight ()
Point getRightBottom ()
 Right and bottom border as Point.
Point getRightTop ()
 Right and top border as Point.
Point getSize ()
int getTop ()
int getWidth ()
BorderSize new ()
BorderSize new (BorderSize borderSize)
BorderSize new (int left, int top, int right, int bottom)
BorderSize new (int size)
 Create border size object with identical size all around.
BorderSize operator+ (BorderSize borderSize)
 Border size enlarged by another border size object.
BorderSize operator- (BorderSize borderSize)
 Border size shrunk by another border size object.
BorderSize shrink (BorderSize borderSize)
 Border size shrunk by another border size object.
BorderSize shrink (int left, int top, int right, int bottom)
 Border size shrunk by another border size object.
String toString ()

Public Attributes

int pLeft

Detailed Description

Immutable object storing the size of borders around a rectangular area.

Member Function Documentation

◆ enlarge() [1/2]

BorderSize Dragengine.Gui.BorderSize.enlarge ( BorderSize borderSize)

Returns the border size enlarged by another border size object.

◆ enlarge() [2/2]

BorderSize Dragengine.Gui.BorderSize.enlarge ( int left,
int top,
int right,
int bottom )

Returns the border size enlarged by another border size object.

References getSize(), new(), and pLeft.

Referenced by toString().

◆ equals()

bool Dragengine.Gui.BorderSize.equals ( Object other)

Test if two border size objects are equal.

Referenced by toString().

◆ getBottom()

int Dragengine.Gui.BorderSize.getBottom ( )

Retrieves the size in pixels of the bottom border.

Referenced by getLeftTop().

◆ getHeight()

int Dragengine.Gui.BorderSize.getHeight ( )

Retrieves the total height of the top and bottom border added together.

References getLeft(), getTop(), and pLeft.

Referenced by getLeftBottom().

◆ getLeft()

int Dragengine.Gui.BorderSize.getLeft ( )

Retrieves the size in pixels of the left border.

Referenced by getHeight().

◆ getLeftBottom()

Point Dragengine.Gui.BorderSize.getLeftBottom ( )

Left and bottom border as Point.

Version
1.29

References getHeight().

Referenced by toString().

◆ getLeftTop()

Point Dragengine.Gui.BorderSize.getLeftTop ( )

Left and top border as Point.

Version
1.29

References getBottom().

Referenced by shrink().

◆ getRight()

int Dragengine.Gui.BorderSize.getRight ( )

Retrieves the size in pixels of the right border.

References pLeft.

Referenced by getSize().

◆ getRightBottom()

Point Dragengine.Gui.BorderSize.getRightBottom ( )

Right and bottom border as Point.

Version
1.29

Referenced by toString().

◆ getRightTop()

Point Dragengine.Gui.BorderSize.getRightTop ( )

Right and top border as Point.

Version
1.29

References getWidth(), and pLeft.

Referenced by operator+().

◆ getSize()

Point Dragengine.Gui.BorderSize.getSize ( )

Retrieves the total size of the borders as a point object. The x coordinate is the sum of the left and right border. The y coordinate is the sum of the top and bottom borders.

References getRight().

Referenced by enlarge().

◆ getTop()

int Dragengine.Gui.BorderSize.getTop ( )

Retrieves the size in pixels of the top border.

Referenced by getHeight().

◆ getWidth()

int Dragengine.Gui.BorderSize.getWidth ( )

Retrieves the total width of the left and right border added together.

Referenced by getRightTop().

◆ new() [1/4]

BorderSize Dragengine.Gui.BorderSize.new ( )

Creates a border size object with 0 pixel borders.

References new().

Referenced by enlarge(), new(), new(), operator+(), shrink(), and toString().

◆ new() [2/4]

BorderSize Dragengine.Gui.BorderSize.new ( BorderSize borderSize)

Creates a copy of a border size object.

References pLeft.

◆ new() [3/4]

BorderSize Dragengine.Gui.BorderSize.new ( int left,
int top,
int right,
int bottom )

Creates a border size object with the given border sizes in pixels.

◆ new() [4/4]

BorderSize Dragengine.Gui.BorderSize.new ( int size)

Create border size object with identical size all around.

References new(), and pLeft.

◆ operator+()

BorderSize Dragengine.Gui.BorderSize.operator+ ( BorderSize borderSize)

Border size enlarged by another border size object.

References getRightTop(), and new().

◆ operator-()

BorderSize Dragengine.Gui.BorderSize.operator- ( BorderSize borderSize)

Border size shrunk by another border size object.

◆ shrink() [1/2]

BorderSize Dragengine.Gui.BorderSize.shrink ( BorderSize borderSize)

Border size shrunk by another border size object.

References getLeftTop(), new(), and pLeft.

◆ shrink() [2/2]

BorderSize Dragengine.Gui.BorderSize.shrink ( int left,
int top,
int right,
int bottom )

Border size shrunk by another border size object.

Referenced by toString().

◆ toString()

String Dragengine.Gui.BorderSize.toString ( )

String representation.

References enlarge(), equals(), getLeftBottom(), getRightBottom(), new(), pLeft, shrink(), and toString().

Referenced by toString().

Member Data Documentation

◆ pLeft

int Dragengine.Gui.BorderSize.pLeft

The documentation for this class was generated from the following file: