FreeRDP
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Modules Pages
com.freerdp.freerdpcore.presentation.TouchPointerView Class Reference
Inheritance diagram for com.freerdp.freerdpcore.presentation.TouchPointerView:
Collaboration diagram for com.freerdp.freerdpcore.presentation.TouchPointerView:

Data Structures

interface  TouchPointerListener
 

Public Member Functions

 TouchPointerView (Context context)
 
 TouchPointerView (Context context, AttributeSet attrs)
 
 TouchPointerView (Context context, AttributeSet attrs, int defStyle)
 
void setTouchPointerListener (TouchPointerListener listener)
 
int getPointerWidth ()
 
int getPointerHeight ()
 
float[] getPointerPosition ()
 
boolean onTouchEvent (MotionEvent event)
 

Protected Member Functions

void onLayout (boolean changed, int left, int top, int right, int bottom)
 

Detailed Description

Definition at line 25 of file TouchPointerView.java.

Constructor & Destructor Documentation

◆ TouchPointerView() [1/3]

com.freerdp.freerdpcore.presentation.TouchPointerView.TouchPointerView ( Context  context)
inline

Definition at line 63 of file TouchPointerView.java.

64 {
65 super(context);
66 initTouchPointer(context);
67 }

◆ TouchPointerView() [2/3]

com.freerdp.freerdpcore.presentation.TouchPointerView.TouchPointerView ( Context  context,
AttributeSet  attrs 
)
inline

Definition at line 69 of file TouchPointerView.java.

70 {
71 super(context, attrs);
72 initTouchPointer(context);
73 }

◆ TouchPointerView() [3/3]

com.freerdp.freerdpcore.presentation.TouchPointerView.TouchPointerView ( Context  context,
AttributeSet  attrs,
int  defStyle 
)
inline

Definition at line 75 of file TouchPointerView.java.

76 {
77 super(context, attrs, defStyle);
78 initTouchPointer(context);
79 }

Member Function Documentation

◆ getPointerHeight()

int com.freerdp.freerdpcore.presentation.TouchPointerView.getPointerHeight ( )
inline

Definition at line 118 of file TouchPointerView.java.

119 {
120 return getDrawable().getIntrinsicHeight();
121 }

◆ getPointerPosition()

float[] com.freerdp.freerdpcore.presentation.TouchPointerView.getPointerPosition ( )
inline

Definition at line 123 of file TouchPointerView.java.

124 {
125 float[] curPos = new float[2];
126 translationMatrix.mapPoints(curPos);
127 return curPos;
128 }

◆ getPointerWidth()

int com.freerdp.freerdpcore.presentation.TouchPointerView.getPointerWidth ( )
inline

Definition at line 113 of file TouchPointerView.java.

114 {
115 return getDrawable().getIntrinsicWidth();
116 }

◆ onLayout()

void com.freerdp.freerdpcore.presentation.TouchPointerView.onLayout ( boolean  changed,
int  left,
int  top,
int  right,
int  bottom 
)
inlineprotected

Definition at line 195 of file TouchPointerView.java.

196 {
197 // ensure touch pointer is visible
198 if (changed)
199 ensureVisibility(right - left, bottom - top);
200 }

◆ onTouchEvent()

boolean com.freerdp.freerdpcore.presentation.TouchPointerView.onTouchEvent ( MotionEvent  event)
inline

Definition at line 187 of file TouchPointerView.java.

188 {
189 // check if pointer is being moved or if we are in scroll mode or if the pointer is touched
190 if (!pointerMoving && !pointerScrolling && !pointerTouched(event))
191 return false;
192 return gestureDetector.onTouchEvent(event);
193 }

◆ setTouchPointerListener()

void com.freerdp.freerdpcore.presentation.TouchPointerView.setTouchPointerListener ( TouchPointerListener  listener)
inline

Definition at line 108 of file TouchPointerView.java.

109 {
110 this.listener = listener;
111 }

The documentation for this class was generated from the following file: