UIPrimitiveUtility Class Reference

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

Primitive utility.


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:
primitivePrimitive
widthWidth of the rendering destination
heightHeight of the rendering destination
offsetXOffset position of the X coordinate of the rendering destination
offsetYOffset position of the Y coordinate of the rendering destination
leftMarginLeft margin of the image
rightMarginRight margin of the image
static void SetupNinePatch ( UIPrimitive  primitive,
float  width,
float  height,
float  offsetX,
float  offsetY,
ImageRect  imageRect,
NinePatchMargin  ninePatchMargin 
) [static]

Applies the 9-patch information of an image to a primitive.

Parameters:
primitivePrimitive
widthWidth of the rendering destination
heightHeight of the rendering destination
offsetXOffset position of the X coordinate of the rendering destination
offsetYOffset position of the Y coordinate of the rendering destination
imageRectDisplay area of the image
ninePatchMargin9-patch information
Exceptions:
ArgumentOutOfRangeExceptionThe 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:
primitivePrimitive
widthWidth of the rendering destination
heightHeight of the rendering destination
offsetXOffset position of the X coordinate of the rendering destination
offsetYOffset position of the Y coordinate of the rendering destination
ninePatchMargin9-patch information
Exceptions:
ArgumentOutOfRangeExceptionThe 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:
primitivePrimitive
widthWidth of the rendering destination
heightHeight of the rendering destination
offsetXOffset position of the X coordinate of the rendering destination
offsetYOffset position of the Y coordinate of the rendering destination
topMarginTop margin of the image
bottomMarginBottom margin of the image