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)
void PathRect(const IRECT &bounds)
Add a rectangle to the current path.
The lowest level base class of an IGraphics control.
Used to manage a rectangular area, independent of draw class/platform.
void PathTransformTranslate(float x, float y)
Apply a translation transform to the current path.
A basic control to display some text.
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 PathTransformSave()
Save the current affine transform of the current path.
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.
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.
This file contains the base IControl implementation, along with some base classes for specific types ...
Control to test multi gesture recognizers.
void PathTransformRestore()
Restore the affine transform of the current path, to the previously saved state.
IText is used to manage font and text/text entry style for a piece of text on the UI...
virtual void PathFill(const IPattern &pattern, const IFillOptions &options=IFillOptions(), const IBlend *pBlend=0)=0
Fill the current current path.
virtual void SetStr(const char *str)
Set the text to display.
The lowest level base class of an IGraphics context.
void PathTransformScale(float x, float y)
Apply a scale transform to the current path, with independant x, y scales.
void PathTransformRotate(float angle)
Apply a rotation transform to the current path.
IControl * AttachGestureRecognizer(EGestureType type, IGestureFunc func)
Add a IGestureFunc that should be triggered in response to a certain type of gesture.
void Draw(IGraphics &g) override
Draw the control to the graphics context.
virtual void SetDirty(bool triggerAction=true, int valIdx=kNoValIdx)
Mark the control as dirty, i.e.