Primitive utility.
More...
List of all members.
Static Public Member Functions |
| static void | SetupNinePatch (UIPrimitive primitive, float width, float height, float offsetX, float offsetY, NinePatchMargin ninePatchMargin) |
| | Applies the 9-patch information of an image to a primitive.
|
| static void | SetupNinePatch (UIPrimitive primitive, float width, float height, float offsetX, float offsetY, ImageRect imageRect, NinePatchMargin ninePatchMargin) |
| | Applies the 9-patch information of an image to a primitive.
|
| static void | SetupHorizontalThreePatch (UIPrimitive primitive, float width, float height, float offsetX, float offsetY, float leftMargin, float rightMargin) |
| | Applies the 3-patch information in the horizontal direction of an image to a primitive.
|
| static void | SetupVerticalThreePatch (UIPrimitive primitive, float width, float height, float offsetX, float offsetY, float topMargin, float bottomMargin) |
| | Applies the 3-patch information in the vertical direction of an image to a primitive.
|
Detailed Description
Member Function Documentation
| static void SetupHorizontalThreePatch |
( |
UIPrimitive |
primitive, |
|
|
float |
width, |
|
|
float |
height, |
|
|
float |
offsetX, |
|
|
float |
offsetY, |
|
|
float |
leftMargin, |
|
|
float |
rightMargin |
|
) |
| [static] |
Applies the 3-patch information in the horizontal direction of an image to a primitive.
- Parameters:
-
| primitive | Primitive |
| width | Width of the rendering destination |
| height | Height of the rendering destination |
| offsetX | Offset position of the X coordinate of the rendering destination |
| offsetY | Offset position of the Y coordinate of the rendering destination |
| leftMargin | Left margin of the image |
| rightMargin | Right margin of the image |
Applies the 9-patch information of an image to a primitive.
- Parameters:
-
| primitive | Primitive |
| width | Width of the rendering destination |
| height | Height of the rendering destination |
| offsetX | Offset position of the X coordinate of the rendering destination |
| offsetY | Offset position of the Y coordinate of the rendering destination |
| imageRect | Display area of the image |
| ninePatchMargin | 9-patch information |
- Exceptions:
-
| ArgumentOutOfRangeException | The maximum number of vertices of the primitive or the maximum number of indices is insufficient. |
| static void SetupNinePatch |
( |
UIPrimitive |
primitive, |
|
|
float |
width, |
|
|
float |
height, |
|
|
float |
offsetX, |
|
|
float |
offsetY, |
|
|
NinePatchMargin |
ninePatchMargin |
|
) |
| [static] |
Applies the 9-patch information of an image to a primitive.
- Parameters:
-
| primitive | Primitive |
| width | Width of the rendering destination |
| height | Height of the rendering destination |
| offsetX | Offset position of the X coordinate of the rendering destination |
| offsetY | Offset position of the Y coordinate of the rendering destination |
| ninePatchMargin | 9-patch information |
- Exceptions:
-
| ArgumentOutOfRangeException | The maximum number of vertices of the primitive or the maximum number of indices is insufficient. |
| static void SetupVerticalThreePatch |
( |
UIPrimitive |
primitive, |
|
|
float |
width, |
|
|
float |
height, |
|
|
float |
offsetX, |
|
|
float |
offsetY, |
|
|
float |
topMargin, |
|
|
float |
bottomMargin |
|
) |
| [static] |
Applies the 3-patch information in the vertical direction of an image to a primitive.
- Parameters:
-
| primitive | Primitive |
| width | Width of the rendering destination |
| height | Height of the rendering destination |
| offsetX | Offset position of the X coordinate of the rendering destination |
| offsetY | Offset position of the Y coordinate of the rendering destination |
| topMargin | Top margin of the image |
| bottomMargin | Bottom margin of the image |