|
Drag[en]gine Script Module DragonScript 1.35
|
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 |
Immutable object storing the size of borders around a rectangular area.
| BorderSize Dragengine.Gui.BorderSize.enlarge | ( | BorderSize | borderSize | ) |
Returns the border size enlarged by another border size object.
| 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().
| bool Dragengine.Gui.BorderSize.equals | ( | Object | other | ) |
Test if two border size objects are equal.
Referenced by toString().
| int Dragengine.Gui.BorderSize.getBottom | ( | ) |
Retrieves the size in pixels of the bottom border.
Referenced by getLeftTop().
| 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().
| int Dragengine.Gui.BorderSize.getLeft | ( | ) |
Retrieves the size in pixels of the left border.
Referenced by getHeight().
| Point Dragengine.Gui.BorderSize.getLeftBottom | ( | ) |
| Point Dragengine.Gui.BorderSize.getLeftTop | ( | ) |
| int Dragengine.Gui.BorderSize.getRight | ( | ) |
| Point Dragengine.Gui.BorderSize.getRightBottom | ( | ) |
| Point Dragengine.Gui.BorderSize.getRightTop | ( | ) |
Right and top border as Point.
References getWidth(), and pLeft.
Referenced by operator+().
| 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().
| int Dragengine.Gui.BorderSize.getTop | ( | ) |
Retrieves the size in pixels of the top border.
Referenced by getHeight().
| int Dragengine.Gui.BorderSize.getWidth | ( | ) |
Retrieves the total width of the left and right border added together.
Referenced by getRightTop().
| 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().
| BorderSize Dragengine.Gui.BorderSize.new | ( | BorderSize | borderSize | ) |
Creates a copy of a border size object.
References pLeft.
| 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.
| BorderSize Dragengine.Gui.BorderSize.new | ( | int | size | ) |
| BorderSize Dragengine.Gui.BorderSize.operator+ | ( | BorderSize | borderSize | ) |
Border size enlarged by another border size object.
References getRightTop(), and new().
| BorderSize Dragengine.Gui.BorderSize.operator- | ( | BorderSize | borderSize | ) |
Border size shrunk by another border size object.
| BorderSize Dragengine.Gui.BorderSize.shrink | ( | BorderSize | borderSize | ) |
Border size shrunk by another border size object.
References getLeftTop(), new(), and pLeft.
| BorderSize Dragengine.Gui.BorderSize.shrink | ( | int | left, |
| int | top, | ||
| int | right, | ||
| int | bottom ) |
Border size shrunk by another border size object.
Referenced by toString().
| String Dragengine.Gui.BorderSize.toString | ( | ) |
String representation.
References enlarge(), equals(), getLeftBottom(), getRightBottom(), new(), pLeft, shrink(), and toString().
Referenced by toString().
| int Dragengine.Gui.BorderSize.pLeft |
Referenced by enlarge(), getHeight(), getRight(), getRightTop(), new(), new(), shrink(), and toString().