FreeRDP
Loading...
Searching...
No Matches
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 65 of file TouchPointerView.java.

66 {
67 super(context);
68 initTouchPointer(context);
69 }

◆ TouchPointerView() [2/3]

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

Definition at line 71 of file TouchPointerView.java.

72 {
73 super(context, attrs);
74 initTouchPointer(context);
75 }

◆ TouchPointerView() [3/3]

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

Definition at line 77 of file TouchPointerView.java.

78 {
79 super(context, attrs, defStyle);
80 initTouchPointer(context);
81 }

Member Function Documentation

◆ getPointerHeight()

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

Definition at line 120 of file TouchPointerView.java.

121 {
122 return getDrawable().getIntrinsicHeight();
123 }

◆ getPointerPosition()

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

Definition at line 125 of file TouchPointerView.java.

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

◆ getPointerWidth()

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

Definition at line 115 of file TouchPointerView.java.

116 {
117 return getDrawable().getIntrinsicWidth();
118 }

◆ onLayout()

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

Definition at line 198 of file TouchPointerView.java.

199 {
200 // ensure touch pointer is visible
201 if (changed)
202 ensureVisibility(right - left, bottom - top);
203 }

◆ onTouchEvent()

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

Definition at line 190 of file TouchPointerView.java.

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

◆ setTouchPointerListener()

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

Definition at line 110 of file TouchPointerView.java.

111 {
112 this.listener = listener;
113 }

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