LuciadCPillar C# 2023.1.04
|
Describes a position relative to an anchor, with a rotation, alignment and offset. More...
Public Member Functions | |
RelativePosition (Angle rotation, HorizontalAlignment horizontalAlignment, VerticalAlignment verticalAlignment, double offsetX, double offsetY) | |
Creates a new RelativePosition with the given values. More... | |
RelativePosition (RelativePosition other) | |
override bool | Equals (object other) |
bool | Equals (RelativePosition other) |
override int | GetHashCode () |
Static Public Member Functions | |
static RelativePosition | Center () |
Returns a RelativePosition located on the anchor point with no offset. More... | |
static RelativePosition | East (double offset) |
Returns a RelativePosition located to the east of the anchor point with the given offset. More... | |
static RelativePosition | North (double offset) |
Returns a RelativePosition located to the north of the anchor point with the given offset. More... | |
static RelativePosition | NorthEast (double offsetNorth, double offsetEast) |
Returns a RelativePosition located to the north-east of the anchor point with the given offsets. More... | |
static RelativePosition | NorthWest (double offsetNorth, double offsetWest) |
Returns a RelativePosition located to the north-west of the anchor point with the given offsets. More... | |
static bool | operator!= (RelativePosition lhs, RelativePosition rhs) |
static bool | operator== (RelativePosition lhs, RelativePosition rhs) |
static RelativePosition | South (double offset) |
Returns a RelativePosition located to the south of the anchor point with the given offset. More... | |
static RelativePosition | SouthEast (double offsetSouth, double offsetEast) |
Returns a RelativePosition located to the south-east of the anchor point with the given offsets. More... | |
static RelativePosition | SouthWest (double offsetSouth, double offsetWest) |
Returns a RelativePosition located to the south-west of the anchor point with the given offsets. More... | |
static RelativePosition | West (double offset) |
Returns a RelativePosition located to the west of the anchor point with the given offset. More... | |
Properties | |
HorizontalAlignment | HorizontalAlignment [get] |
double | OffsetX [get] |
double | OffsetY [get] |
Angle | Rotation [get] |
VerticalAlignment | VerticalAlignment [get] |
Describes a position relative to an anchor, with a rotation, alignment and offset.
|
inline |
Creates a new RelativePosition with the given values.
rotation
the rotation around the anchor point.
horizontalAlignment
the horizontal alignment of this RelativePosition.
verticalAlignment
the vertical alignment of this RelativePosition.
offsetX
the horizontal offset, expressed in pixels and relative to the anchor point.
offsetY
the vertical offset, expressed in pixels and relative to the anchor point.
|
inline |
|
inlinestatic |
Returns a RelativePosition located on the anchor point with no offset.
|
inlinestatic |
Returns a RelativePosition located to the east of the anchor point with the given offset.
offset
: the horizontal offset, expressed in pixels and relative to the anchor point.
|
inline |
|
inline |
|
inline |
|
inlinestatic |
Returns a RelativePosition located to the north of the anchor point with the given offset.
offset
: the vertical offset, expressed in pixels and relative to the anchor point.
|
inlinestatic |
Returns a RelativePosition located to the north-east of the anchor point with the given offsets.
offsetNorth
: the vertical offset, expressed in pixels and relative to the anchor point.
offsetEast
: the horizontal offset, expressed in pixels and relative to the anchor point.
|
inlinestatic |
Returns a RelativePosition located to the north-west of the anchor point with the given offsets.
offsetNorth
: the vertical offset, expressed in pixels and relative to the anchor point.
offsetWest
: the horizontal offset, expressed in pixels and relative to the anchor point.
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
Returns a RelativePosition located to the south of the anchor point with the given offset.
offset
: the vertical offset, expressed in pixels and relative to the anchor point.
|
inlinestatic |
Returns a RelativePosition located to the south-east of the anchor point with the given offsets.
offsetSouth
: the vertical offset, expressed in pixels and relative to the anchor point.
offsetEast
: the horizontal offset, expressed in pixels and relative to the anchor point.
|
inlinestatic |
Returns a RelativePosition located to the south-west of the anchor point with the given offsets.
offsetSouth
: the vertical offset, expressed in pixels and relative to the anchor point.
offsetWest
: the horizontal offset, expressed in pixels and relative to the anchor point.
|
inlinestatic |
Returns a RelativePosition located to the west of the anchor point with the given offset.
offset
: the horizontal offset, expressed in pixels and relative to the anchor point.
|
get |
|
get |
|
get |
|
get |
|
get |