OHOS::UITextureMapper
Overview
Related Modules:
Description:
Rotates and scales images.
Since:
1.0
Version:
1.0
Summary
Data Structures
Represents a listener that contains a callback to be invoked when this animator stops. |
Public Member Functions
A constructor used to create a UITextureMapper instance. |
|
A destructor used to delete the UITextureMapper instance. |
|
GetViewType () const override |
|
Start () |
|
SetRotateStart (int16_t start) |
|
SetRotateEnd (int16_t end) |
|
SetScaleStart (float start) |
|
SetScaleEnd (float end) |
|
SetDurationTime (uint16_t durationTime) |
|
SetDelayTime (uint16_t delayTime) |
|
SetEasingFunc (EasingFunc easingFunc) |
|
Cancel () |
|
Reset () |
|
SetPivot (int16_t x, int16_t y) |
Sets the coordinates of the rotation and scaling pivots for this image. |
SetAnimatorStopListener (AnimatorStopListener listener) |
|
UIImageView () |
A default constructor used to create a UIImageView instance. |
~UIImageView () |
A destructor used to delete the UIImageView instance. |
GetWidth () override |
|
GetHeight () override |
|
Checks whether this image view needs to be covered to optimize the drawing process. |
|
SetSrc (const char src) |
|
SetAutoEnable (bool enable) |
Sets whether the image view size needs to be adaptive to the image size. |
SetBlurLevel (BlurLevel level) |
Sets the blur level for this image when it is rotated or scaled. |
GetBlurLevel () const |
Obtains the blur level of this image when it is rotated or scaled. |
SetTransformAlgorithm (TransformAlgorithm algorithm) |
|
GetTransformAlgorithm () const |
|
GetPath () const |
|
GetImageInfo () const |
const ImageInfo |
GetSrcType () const |
|
UIView () |
A default constructor used to create an UIView instance. |
UIView (const char id) |
A constructor used to create an UIView instance. |
~UIView () |
A destructor used to delete the UIView instance. |
OnPostDraw (const Rect &invalidatedArea) |
|
Invalidate () |
|
InvalidateRect (const Rect &invalidatedArea) |
|
OnLongPressEvent (const LongPressEvent &event) |
|
OnDragStartEvent (const DragEvent &event) |
|
OnDragEvent (const DragEvent &event) |
|
OnDragEndEvent (const DragEvent &event) |
|
OnClickEvent (const ClickEvent &event) |
|
OnPressEvent (const PressEvent &event) |
|
OnReleaseEvent (const ReleaseEvent &event) |
|
OnCancelEvent (const CancelEvent &event) |
|
SetOnDragListener (OnDragListener onDragListener) |
|
SetOnClickListener (OnClickListener onClickListener) |
|
SetOnLongPressListener (OnLongPressListener onLongPressListener) |
|
SetOnTouchListener (OnTouchListener onTouchListener) |
|
GetTargetView (const Point &point, UIView *last) |
|
GetParent () const |
|
SetNextSibling (UIView sibling) |
|
GetNextSibling () const |
|
SetVisible (bool visible) |
|
IsVisible () const |
|
SetTouchable (bool touch) |
|
IsTouchable () const |
|
SetDraggable (bool draggable) |
|
IsDraggable () const |
|
SetDragParentInstead (bool dragParentInstead) |
Sets whether to transfer the drag event to the parent view for processing when the view is being dragged. |
IsDragParentInstead () const |
Obtains whether the view transfers a drag event to the parent view for processing. |
GetRect () const |
Obtains the absolute rectangle area of the view. When the view has deformation such as rotation, the rectangle area is the intersection set of the absolute rectangle area and deformation matrix. |
GetVisibleRect () const |
|
GetMaskedRect () const |
Obtains the valid absolute rectangle area of the view. The valid area refers to the area where the view can be displayed. Generally, the valid area is the same as the visible view area, but they may be different in the grid layout. |
GetOrigRect () const |
|
virtual Rect Obtains the content of the absolute rectangle area of the view. This area excludes padding. |
|
GetRelativeRect () const |
Obtains the rectangular area of the view relative to the parent view, that is, the rectangular area relative to the coordinates of the parent view. |
ResizeVisibleArea (int16_t x, int16_t y, int16_t width, int16_t height) |
Adjusts the size of the visible area. This operation may affect the final display size. |
SetWidth (int16_t width) |
|
SetHeight (int16_t height) |
|
Resize (int16_t width, int16_t height) |
|
SetX (int16_t x) |
|
GetX () const |
|
SetY (int16_t y) |
|
GetY () const |
|
SetPosition (int16_t x, int16_t y) |
|
SetPosition (int16_t x, int16_t y, int16_t width, int16_t height) |
|
IsViewGroup () const |
|
SetIntercept (bool isIntercept) |
Sets whether to intercept the drag event. If intercepted, the view does not transfer the drag event to the parent view after local processing. |
SetTransformMap (const TransformMap &transMap) |
|
GetChildById (const char id) const |
virtual UIView |
SetViewId (const char id) |
|
GetViewId () const |
|
SetViewIndex (int16_t index) |
|
GetViewIndex () const |
|
LayoutChildren (bool neeInvalidate=false) |
Lays out all child views according to the preset arrangement mode. |
LayoutCenterOfParent (int16_t xOffSet=0, int16_t yOffset=0) |
|
LayoutLeftOfParent (int16_t offset=0) |
|
LayoutRightOfParent (int16_t offset=0) |
|
LayoutTopOfParent (int16_t offset=0) |
|
LayoutBottomOfParent (int16_t offset=0) |
|
AlignLeftToSibling (const char id, int16_t offset=0) |
|
AlignRightToSibling (const char id, int16_t offset=0) |
|
AlignTopToSibling (const char id, int16_t offset=0) |
|
AlignBottomToSibling (const char id, int16_t offset=0) |
|
AlignHorCenterToSibling (const char id, int16_t offset=0) |
Aligns the view with the center of a sibling view in the x-axis. |
AlignVerCenterToSibling (const char id, int16_t offset=0) |
Aligns the view with the center of a sibling view in the y-axis. |
LayoutLeftToSibling (const char id, int16_t offset=0) |
|
LayoutRightToSibling (const char id, int16_t offset=0) |
|
LayoutTopToSibling (const char id, int16_t offset=0) |
|
LayoutBottomToSibling (const char id, int16_t offset=0) |
|
SetStyle (uint8_t key, int64_t value) |
|
GetStyle (uint8_t key) const |
|
GetStyleConst () const |
const Style & Obtains the view style. This function applies to scenarios where the style does not need to be modified, which saves memory. |
operator new (size_t size) |
|
operator delete (void *p) |
Additional Inherited Members
colorFormat: 4 |
|
blurLevel: 2 |
Represents the blur level of this image when it is rotated or scaled. |
algorithm_: 1 |
Represents the algorithm used for image rotation and scaling. |