Method
MtkRectangletransform
Declaration [src]
void
mtk_rectangle_transform (
const MtkRectangle* rect,
MtkMonitorTransform transform,
int width,
int height,
MtkRectangle* dest
)
Description [src]
This function transforms the values in rect in order to compensate for
transform applied to a MetaMonitor, making them match the viewport. Note
that compensating implies that for a clockwise rotation of the MetaMonitor
an anti-clockwise rotation has to be applied to rect.
Parameters
transform-
Type:
MtkMonitorTransformThe
MtkMonitorTransform. width-
Type:
intThe width of the target space.
height-
Type:
intThe height of the target space.
dest-
Type:
MtkRectangleThe transformed
MtkRectangle.The data is owned by the caller of the method.