48 g.
DrawText(mText, mStr.Get(), mRECT);
50 g.
DrawText(mText,
"UNSUPPORTED", mRECT);
57 for(
auto& type : { EGestureType::DoubleTap,
58 EGestureType::TripleTap,
59 EGestureType::LongPress1,
60 EGestureType::LongPress2,
61 EGestureType::SwipeLeft,
62 EGestureType::SwipeRight,
63 EGestureType::SwipeUp,
64 EGestureType::SwipeDown,
70 SetStr(kGestureTypeStrs[idx]);
72 if(info.type == EGestureType::Rotate)
75 if(info.type == EGestureType::Pinch)
78 if(info.type == EGestureType::DoubleTap)
This file contains the base IControl implementation, along with some base classes for specific types ...
The lowest level base class of an IGraphics control.
IControl * AttachGestureRecognizer(EGestureType type, IGestureFunc func)
Add a IGestureFunc that should be triggered in response to a certain type of gesture.
virtual void SetDirty(bool triggerAction=true, int valIdx=kNoValIdx)
Mark the control as dirty, i.e.
The lowest level base class of an IGraphics context.
virtual void PathFill(const IPattern &pattern, const IFillOptions &options=IFillOptions(), const IBlend *pBlend=0)=0
Fill the current current path.
void DrawText(const IText &text, const char *str, const IRECT &bounds, const IBlend *pBlend=0)
Draw some text to the graphics context in a specific rectangle.
void PathTransformTranslate(float x, float y)
Apply a translation transform to the current path.
void PathRect(const IRECT &bounds)
Add a rectangle to the current path.
void PathTransformScale(float x, float y)
Apply a scale transform to the current path, with independant x, y scales.
virtual void DrawDottedRect(const IColor &color, const IRECT &bounds, const IBlend *pBlend=0, float thickness=1.f, float dashLen=2.f)
Draw a dotted rectangle to the graphics context.
void PathTransformRestore()
Restore the affine transform of the current path, to the previously saved state.
void PathTransformRotate(float angle)
Apply a rotation transform to the current path.
void PathTransformSave()
Save the current affine transform of the current path.
A basic control to display some text.
virtual void SetStr(const char *str)
Set the text to display.
Control to test multi gesture recognizers.
void Draw(IGraphics &g) override
Draw the control to the graphics context.
void OnInit() override
Called just prior to when the control is attached, after its delegate and graphics member variable se...
Used to describe a particular gesture.
Used to manage a rectangular area, independent of draw class/platform.
IText is used to manage font and text/text entry style for a piece of text on the UI,...