Game Accessibility Library logo SourceForge.net Logo
Game Accessibility Suite: CATImage::SetSubPosition
CATResult CATImage::SetSubPosition ( CATInt32  newXOffset,
CATInt32  newYOffset,
CATInt32  newWidth,
CATInt32  newHeight 
)

SetSubPosition() moves the ROI of the image within its parent. Will return CAT_ERR_IMAGE_OPERATION_INVALID_ON_ROOT if you try to use this on a root image instead of a sub image.

Parameters:
newXOffset - relative x offset of new pos within parent.
newYOffset - relative y offset of new pos within parent.
newWidth - new width of sub image.
newHeight - new height of sub image.
Returns:
CATResult result code.
See also:
CATImage::CreateSub()

Definition at line 740 of file CATImage.cpp.

References CAT_ERR_IMAGE_INVALID_SUB_POSITION, CAT_ERR_IMAGE_OPERATION_INVALID_ON_ROOT, CAT_SUCCESS, CATASSERT, CATRESULT, fData, fHeight, fParentImage, fWidth, fXOffset, fYOffset, and IsImageRoot().


Generated on Mon Feb 11 04:10:34 2008 for Game Accessibility Suite by doxygen 1.5.4