Documentation
¶
Overview ¶
Package gesture provides Go bindings for android.gesture.
Index ¶
- Constants
- func Init(env *jni.Env) error
- type Gesture
- func (m *Gesture) AddStroke(arg0 *jni.Object) error
- func (m *Gesture) Clone() (*jni.Object, error)
- func (m *Gesture) DescribeContents() (int32, error)
- func (m *Gesture) GetBoundingBox() (*jni.Object, error)
- func (m *Gesture) GetID() (int64, error)
- func (m *Gesture) GetLength() (float32, error)
- func (m *Gesture) GetStrokesCount() (int32, error)
- func (m *Gesture) ToBitmap4(arg0 int32, arg1 int32, arg2 int32, arg3 int32) (*jni.Object, error)
- func (m *Gesture) ToBitmap5_1(arg0 int32, arg1 int32, arg2 int32, arg3 int32, arg4 int32) (*jni.Object, error)
- func (m *Gesture) ToPath0() (*jni.Object, error)
- func (m *Gesture) ToPath1_1(arg0 *jni.Object) (*jni.Object, error)
- func (m *Gesture) ToPath4_3(arg0 int32, arg1 int32, arg2 int32, arg3 int32) (*jni.Object, error)
- func (m *Gesture) ToPath5_2(arg0 *jni.Object, arg1 int32, arg2 int32, arg3 int32, arg4 int32) (*jni.Object, error)
- func (m *Gesture) WriteToParcel(arg0 *jni.Object, arg1 int32) error
- type Libraries
- func (m *Libraries) FromFile1(arg0 *jni.Object) (*jni.Object, error)
- func (m *Libraries) FromFile1_1(arg0 string) (*jni.Object, error)
- func (m *Libraries) FromFileDescriptor(arg0 *jni.Object) (*jni.Object, error)
- func (m *Libraries) FromPrivateFile(arg0 *jni.Object, arg1 string) (*jni.Object, error)
- func (m *Libraries) FromRawResource(arg0 *jni.Object, arg1 int32) (*jni.Object, error)
- type Library
- func (m *Library) AddGesture(arg0 string, arg1 *jni.Object) error
- func (m *Library) GetOrientationStyle() (int32, error)
- func (m *Library) GetSequenceType() (int32, error)
- func (m *Library) IsReadOnly() (bool, error)
- func (m *Library) Load() (bool, error)
- func (m *Library) RemoveEntry(arg0 string) error
- func (m *Library) RemoveGesture(arg0 string, arg1 *jni.Object) error
- func (m *Library) Save() (bool, error)
- func (m *Library) SetOrientationStyle(arg0 int32) error
- func (m *Library) SetSequenceType(arg0 int32) error
- type OverlayView
- func (m *OverlayView) AddOnGestureListener(arg0 *jni.Object) error
- func (m *OverlayView) AddOnGesturePerformedListener(arg0 *jni.Object) error
- func (m *OverlayView) AddOnGesturingListener(arg0 *jni.Object) error
- func (m *OverlayView) CancelClearAnimation() error
- func (m *OverlayView) CancelGesture() error
- func (m *OverlayView) Clear(arg0 bool) error
- func (m *OverlayView) DispatchTouchEvent(arg0 *jni.Object) (bool, error)
- func (m *OverlayView) Draw(arg0 *jni.Object) error
- func (m *OverlayView) GetFadeOffset() (int64, error)
- func (m *OverlayView) GetGesture() (*jni.Object, error)
- func (m *OverlayView) GetGestureColor() (int32, error)
- func (m *OverlayView) GetGesturePath0() (*jni.Object, error)
- func (m *OverlayView) GetGesturePath1_1(arg0 *jni.Object) (*jni.Object, error)
- func (m *OverlayView) GetGestureStrokeAngleThreshold() (float32, error)
- func (m *OverlayView) GetGestureStrokeLengthThreshold() (float32, error)
- func (m *OverlayView) GetGestureStrokeSquarenessTreshold() (float32, error)
- func (m *OverlayView) GetGestureStrokeType() (int32, error)
- func (m *OverlayView) GetGestureStrokeWidth() (float32, error)
- func (m *OverlayView) GetOrientation() (int32, error)
- func (m *OverlayView) GetUncertainGestureColor() (int32, error)
- func (m *OverlayView) IsEventsInterceptionEnabled() (bool, error)
- func (m *OverlayView) IsFadeEnabled() (bool, error)
- func (m *OverlayView) IsGestureVisible() (bool, error)
- func (m *OverlayView) IsGesturing() (bool, error)
- func (m *OverlayView) RemoveAllOnGestureListeners() error
- func (m *OverlayView) RemoveAllOnGesturePerformedListeners() error
- func (m *OverlayView) RemoveAllOnGesturingListeners() error
- func (m *OverlayView) RemoveOnGestureListener(arg0 *jni.Object) error
- func (m *OverlayView) RemoveOnGesturePerformedListener(arg0 *jni.Object) error
- func (m *OverlayView) RemoveOnGesturingListener(arg0 *jni.Object) error
- func (m *OverlayView) SetEventsInterceptionEnabled(arg0 bool) error
- func (m *OverlayView) SetFadeEnabled(arg0 bool) error
- func (m *OverlayView) SetFadeOffset(arg0 int64) error
- func (m *OverlayView) SetGesture(arg0 *jni.Object) error
- func (m *OverlayView) SetGestureColor(arg0 int32) error
- func (m *OverlayView) SetGestureStrokeAngleThreshold(arg0 float32) error
- func (m *OverlayView) SetGestureStrokeLengthThreshold(arg0 float32) error
- func (m *OverlayView) SetGestureStrokeSquarenessTreshold(arg0 float32) error
- func (m *OverlayView) SetGestureStrokeType(arg0 int32) error
- func (m *OverlayView) SetGestureStrokeWidth(arg0 float32) error
- func (m *OverlayView) SetGestureVisible(arg0 bool) error
- func (m *OverlayView) SetOrientation(arg0 int32) error
- func (m *OverlayView) SetUncertainGestureColor(arg0 int32) error
- type OverlayViewOnGestureListener
- func (m *OverlayViewOnGestureListener) OnGesture(arg0 *jni.Object, arg1 *jni.Object) error
- func (m *OverlayViewOnGestureListener) OnGestureCancelled(arg0 *jni.Object, arg1 *jni.Object) error
- func (m *OverlayViewOnGestureListener) OnGestureEnded(arg0 *jni.Object, arg1 *jni.Object) error
- func (m *OverlayViewOnGestureListener) OnGestureStarted(arg0 *jni.Object, arg1 *jni.Object) error
- type OverlayViewOnGesturePerformedListener
- type OverlayViewOnGesturingListener
- type Point
- type Prediction
- type Store
- func (m *Store) AddGesture(arg0 string, arg1 *jni.Object) error
- func (m *Store) GetOrientationStyle() (int32, error)
- func (m *Store) GetSequenceType() (int32, error)
- func (m *Store) HasChanged() (bool, error)
- func (m *Store) Load1(arg0 *jni.Object) error
- func (m *Store) Load2_1(arg0 *jni.Object, arg1 bool) error
- func (m *Store) RemoveEntry(arg0 string) error
- func (m *Store) RemoveGesture(arg0 string, arg1 *jni.Object) error
- func (m *Store) Save1(arg0 *jni.Object) error
- func (m *Store) Save2_1(arg0 *jni.Object, arg1 bool) error
- func (m *Store) SetOrientationStyle(arg0 int32) error
- func (m *Store) SetSequenceType(arg0 int32) error
- type Stroke
- type Utils
- func (m *Utils) ComputeOrientedBoundingBox(arg0 *jni.Object) (*jni.Object, error)
- func (m *Utils) SpatialSampling2(arg0 *jni.Object, arg1 int32) (*jni.Object, error)
- func (m *Utils) SpatialSampling3_1(arg0 *jni.Object, arg1 int32, arg2 bool) (*jni.Object, error)
- func (m *Utils) TemporalSampling(arg0 *jni.Object, arg1 int32) (*jni.Object, error)
Constants ¶
const ( Creator = consts.Creator OrientationInvariant = consts.OrientationInvariant OrientationSensitive = consts.OrientationSensitive SequenceInvariant = consts.SequenceInvariant SequenceSensitive = consts.SequenceSensitive GestureStrokeTypeMultiple = consts.GestureStrokeTypeMultiple GestureStrokeTypeSingle = consts.GestureStrokeTypeSingle OrientationHorizontal = consts.OrientationHorizontal OrientationVertical = consts.OrientationVertical )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Gesture ¶
Gesture wraps android.gesture.Gesture.
func NewGesture ¶
NewGesture creates a new android.gesture.Gesture instance.
func (*Gesture) DescribeContents ¶
DescribeContents calls android.gesture.Gesture.describeContents.
func (*Gesture) GetBoundingBox ¶
GetBoundingBox calls android.gesture.Gesture.getBoundingBox.
func (*Gesture) GetStrokesCount ¶
GetStrokesCount calls android.gesture.Gesture.getStrokesCount.
func (*Gesture) ToBitmap5_1 ¶
func (m *Gesture) ToBitmap5_1( arg0 int32, arg1 int32, arg2 int32, arg3 int32, arg4 int32, ) (*jni.Object, error)
ToBitmap5_1 calls android.gesture.Gesture.toBitmap.
type Libraries ¶
Libraries wraps android.gesture.GestureLibraries.
func (*Libraries) FromFile1_1 ¶
FromFile1_1 calls android.gesture.GestureLibraries.fromFile.
func (*Libraries) FromFileDescriptor ¶
FromFileDescriptor calls android.gesture.GestureLibraries.fromFileDescriptor.
func (*Libraries) FromPrivateFile ¶
FromPrivateFile calls android.gesture.GestureLibraries.fromPrivateFile.
type Library ¶
Library wraps android.gesture.GestureLibrary.
func (*Library) AddGesture ¶
AddGesture calls android.gesture.GestureLibrary.addGesture.
func (*Library) GetOrientationStyle ¶
GetOrientationStyle calls android.gesture.GestureLibrary.getOrientationStyle.
func (*Library) GetSequenceType ¶
GetSequenceType calls android.gesture.GestureLibrary.getSequenceType.
func (*Library) IsReadOnly ¶
IsReadOnly calls android.gesture.GestureLibrary.isReadOnly.
func (*Library) RemoveEntry ¶
RemoveEntry calls android.gesture.GestureLibrary.removeEntry.
func (*Library) RemoveGesture ¶
RemoveGesture calls android.gesture.GestureLibrary.removeGesture.
func (*Library) SetOrientationStyle ¶
SetOrientationStyle calls android.gesture.GestureLibrary.setOrientationStyle.
func (*Library) SetSequenceType ¶
SetSequenceType calls android.gesture.GestureLibrary.setSequenceType.
type OverlayView ¶
OverlayView wraps android.gesture.GestureOverlayView.
func NewOverlayView ¶
NewOverlayView creates a new android.gesture.GestureOverlayView instance.
func (*OverlayView) AddOnGestureListener ¶
func (m *OverlayView) AddOnGestureListener(arg0 *jni.Object) error
AddOnGestureListener calls android.gesture.GestureOverlayView.addOnGestureListener.
func (*OverlayView) AddOnGesturePerformedListener ¶
func (m *OverlayView) AddOnGesturePerformedListener(arg0 *jni.Object) error
AddOnGesturePerformedListener calls android.gesture.GestureOverlayView.addOnGesturePerformedListener.
func (*OverlayView) AddOnGesturingListener ¶
func (m *OverlayView) AddOnGesturingListener(arg0 *jni.Object) error
AddOnGesturingListener calls android.gesture.GestureOverlayView.addOnGesturingListener.
func (*OverlayView) CancelClearAnimation ¶
func (m *OverlayView) CancelClearAnimation() error
CancelClearAnimation calls android.gesture.GestureOverlayView.cancelClearAnimation.
func (*OverlayView) CancelGesture ¶
func (m *OverlayView) CancelGesture() error
CancelGesture calls android.gesture.GestureOverlayView.cancelGesture.
func (*OverlayView) Clear ¶
func (m *OverlayView) Clear(arg0 bool) error
Clear calls android.gesture.GestureOverlayView.clear.
func (*OverlayView) DispatchTouchEvent ¶
func (m *OverlayView) DispatchTouchEvent(arg0 *jni.Object) (bool, error)
DispatchTouchEvent calls android.gesture.GestureOverlayView.dispatchTouchEvent.
func (*OverlayView) Draw ¶
func (m *OverlayView) Draw(arg0 *jni.Object) error
Draw calls android.gesture.GestureOverlayView.draw.
func (*OverlayView) GetFadeOffset ¶
func (m *OverlayView) GetFadeOffset() (int64, error)
GetFadeOffset calls android.gesture.GestureOverlayView.getFadeOffset.
func (*OverlayView) GetGesture ¶
func (m *OverlayView) GetGesture() (*jni.Object, error)
GetGesture calls android.gesture.GestureOverlayView.getGesture.
func (*OverlayView) GetGestureColor ¶
func (m *OverlayView) GetGestureColor() (int32, error)
GetGestureColor calls android.gesture.GestureOverlayView.getGestureColor.
func (*OverlayView) GetGesturePath0 ¶
func (m *OverlayView) GetGesturePath0() (*jni.Object, error)
GetGesturePath0 calls android.gesture.GestureOverlayView.getGesturePath.
func (*OverlayView) GetGesturePath1_1 ¶
GetGesturePath1_1 calls android.gesture.GestureOverlayView.getGesturePath.
func (*OverlayView) GetGestureStrokeAngleThreshold ¶
func (m *OverlayView) GetGestureStrokeAngleThreshold() (float32, error)
GetGestureStrokeAngleThreshold calls android.gesture.GestureOverlayView.getGestureStrokeAngleThreshold.
func (*OverlayView) GetGestureStrokeLengthThreshold ¶
func (m *OverlayView) GetGestureStrokeLengthThreshold() (float32, error)
GetGestureStrokeLengthThreshold calls android.gesture.GestureOverlayView.getGestureStrokeLengthThreshold.
func (*OverlayView) GetGestureStrokeSquarenessTreshold ¶
func (m *OverlayView) GetGestureStrokeSquarenessTreshold() (float32, error)
GetGestureStrokeSquarenessTreshold calls android.gesture.GestureOverlayView.getGestureStrokeSquarenessTreshold.
func (*OverlayView) GetGestureStrokeType ¶
func (m *OverlayView) GetGestureStrokeType() (int32, error)
GetGestureStrokeType calls android.gesture.GestureOverlayView.getGestureStrokeType.
func (*OverlayView) GetGestureStrokeWidth ¶
func (m *OverlayView) GetGestureStrokeWidth() (float32, error)
GetGestureStrokeWidth calls android.gesture.GestureOverlayView.getGestureStrokeWidth.
func (*OverlayView) GetOrientation ¶
func (m *OverlayView) GetOrientation() (int32, error)
GetOrientation calls android.gesture.GestureOverlayView.getOrientation.
func (*OverlayView) GetUncertainGestureColor ¶
func (m *OverlayView) GetUncertainGestureColor() (int32, error)
GetUncertainGestureColor calls android.gesture.GestureOverlayView.getUncertainGestureColor.
func (*OverlayView) IsEventsInterceptionEnabled ¶
func (m *OverlayView) IsEventsInterceptionEnabled() (bool, error)
IsEventsInterceptionEnabled calls android.gesture.GestureOverlayView.isEventsInterceptionEnabled.
func (*OverlayView) IsFadeEnabled ¶
func (m *OverlayView) IsFadeEnabled() (bool, error)
IsFadeEnabled calls android.gesture.GestureOverlayView.isFadeEnabled.
func (*OverlayView) IsGestureVisible ¶
func (m *OverlayView) IsGestureVisible() (bool, error)
IsGestureVisible calls android.gesture.GestureOverlayView.isGestureVisible.
func (*OverlayView) IsGesturing ¶
func (m *OverlayView) IsGesturing() (bool, error)
IsGesturing calls android.gesture.GestureOverlayView.isGesturing.
func (*OverlayView) RemoveAllOnGestureListeners ¶
func (m *OverlayView) RemoveAllOnGestureListeners() error
RemoveAllOnGestureListeners calls android.gesture.GestureOverlayView.removeAllOnGestureListeners.
func (*OverlayView) RemoveAllOnGesturePerformedListeners ¶
func (m *OverlayView) RemoveAllOnGesturePerformedListeners() error
RemoveAllOnGesturePerformedListeners calls android.gesture.GestureOverlayView.removeAllOnGesturePerformedListeners.
func (*OverlayView) RemoveAllOnGesturingListeners ¶
func (m *OverlayView) RemoveAllOnGesturingListeners() error
RemoveAllOnGesturingListeners calls android.gesture.GestureOverlayView.removeAllOnGesturingListeners.
func (*OverlayView) RemoveOnGestureListener ¶
func (m *OverlayView) RemoveOnGestureListener(arg0 *jni.Object) error
RemoveOnGestureListener calls android.gesture.GestureOverlayView.removeOnGestureListener.
func (*OverlayView) RemoveOnGesturePerformedListener ¶
func (m *OverlayView) RemoveOnGesturePerformedListener(arg0 *jni.Object) error
RemoveOnGesturePerformedListener calls android.gesture.GestureOverlayView.removeOnGesturePerformedListener.
func (*OverlayView) RemoveOnGesturingListener ¶
func (m *OverlayView) RemoveOnGesturingListener(arg0 *jni.Object) error
RemoveOnGesturingListener calls android.gesture.GestureOverlayView.removeOnGesturingListener.
func (*OverlayView) SetEventsInterceptionEnabled ¶
func (m *OverlayView) SetEventsInterceptionEnabled(arg0 bool) error
SetEventsInterceptionEnabled calls android.gesture.GestureOverlayView.setEventsInterceptionEnabled.
func (*OverlayView) SetFadeEnabled ¶
func (m *OverlayView) SetFadeEnabled(arg0 bool) error
SetFadeEnabled calls android.gesture.GestureOverlayView.setFadeEnabled.
func (*OverlayView) SetFadeOffset ¶
func (m *OverlayView) SetFadeOffset(arg0 int64) error
SetFadeOffset calls android.gesture.GestureOverlayView.setFadeOffset.
func (*OverlayView) SetGesture ¶
func (m *OverlayView) SetGesture(arg0 *jni.Object) error
SetGesture calls android.gesture.GestureOverlayView.setGesture.
func (*OverlayView) SetGestureColor ¶
func (m *OverlayView) SetGestureColor(arg0 int32) error
SetGestureColor calls android.gesture.GestureOverlayView.setGestureColor.
func (*OverlayView) SetGestureStrokeAngleThreshold ¶
func (m *OverlayView) SetGestureStrokeAngleThreshold(arg0 float32) error
SetGestureStrokeAngleThreshold calls android.gesture.GestureOverlayView.setGestureStrokeAngleThreshold.
func (*OverlayView) SetGestureStrokeLengthThreshold ¶
func (m *OverlayView) SetGestureStrokeLengthThreshold(arg0 float32) error
SetGestureStrokeLengthThreshold calls android.gesture.GestureOverlayView.setGestureStrokeLengthThreshold.
func (*OverlayView) SetGestureStrokeSquarenessTreshold ¶
func (m *OverlayView) SetGestureStrokeSquarenessTreshold(arg0 float32) error
SetGestureStrokeSquarenessTreshold calls android.gesture.GestureOverlayView.setGestureStrokeSquarenessTreshold.
func (*OverlayView) SetGestureStrokeType ¶
func (m *OverlayView) SetGestureStrokeType(arg0 int32) error
SetGestureStrokeType calls android.gesture.GestureOverlayView.setGestureStrokeType.
func (*OverlayView) SetGestureStrokeWidth ¶
func (m *OverlayView) SetGestureStrokeWidth(arg0 float32) error
SetGestureStrokeWidth calls android.gesture.GestureOverlayView.setGestureStrokeWidth.
func (*OverlayView) SetGestureVisible ¶
func (m *OverlayView) SetGestureVisible(arg0 bool) error
SetGestureVisible calls android.gesture.GestureOverlayView.setGestureVisible.
func (*OverlayView) SetOrientation ¶
func (m *OverlayView) SetOrientation(arg0 int32) error
SetOrientation calls android.gesture.GestureOverlayView.setOrientation.
func (*OverlayView) SetUncertainGestureColor ¶
func (m *OverlayView) SetUncertainGestureColor(arg0 int32) error
SetUncertainGestureColor calls android.gesture.GestureOverlayView.setUncertainGestureColor.
type OverlayViewOnGestureListener ¶
OverlayViewOnGestureListener wraps android.gesture.GestureOverlayView$OnGestureListener.
func (*OverlayViewOnGestureListener) OnGesture ¶
OnGesture calls android.gesture.GestureOverlayView$OnGestureListener.onGesture.
func (*OverlayViewOnGestureListener) OnGestureCancelled ¶
OnGestureCancelled calls android.gesture.GestureOverlayView$OnGestureListener.onGestureCancelled.
func (*OverlayViewOnGestureListener) OnGestureEnded ¶
OnGestureEnded calls android.gesture.GestureOverlayView$OnGestureListener.onGestureEnded.
func (*OverlayViewOnGestureListener) OnGestureStarted ¶
OnGestureStarted calls android.gesture.GestureOverlayView$OnGestureListener.onGestureStarted.
type OverlayViewOnGesturePerformedListener ¶
OverlayViewOnGesturePerformedListener wraps android.gesture.GestureOverlayView$OnGesturePerformedListener.
func (*OverlayViewOnGesturePerformedListener) OnGesturePerformed ¶
func (m *OverlayViewOnGesturePerformedListener) OnGesturePerformed(arg0 *jni.Object, arg1 *jni.Object) error
OnGesturePerformed calls android.gesture.GestureOverlayView$OnGesturePerformedListener.onGesturePerformed.
type OverlayViewOnGesturingListener ¶
OverlayViewOnGesturingListener wraps android.gesture.GestureOverlayView$OnGesturingListener.
func (*OverlayViewOnGesturingListener) OnGesturingEnded ¶
func (m *OverlayViewOnGesturingListener) OnGesturingEnded(arg0 *jni.Object) error
OnGesturingEnded calls android.gesture.GestureOverlayView$OnGesturingListener.onGesturingEnded.
func (*OverlayViewOnGesturingListener) OnGesturingStarted ¶
func (m *OverlayViewOnGesturingListener) OnGesturingStarted(arg0 *jni.Object) error
OnGesturingStarted calls android.gesture.GestureOverlayView$OnGesturingListener.onGesturingStarted.
type Point ¶
Point wraps android.gesture.GesturePoint.
type Prediction ¶
Prediction wraps android.gesture.Prediction.
func (*Prediction) ToString ¶
func (m *Prediction) ToString() (string, error)
ToString calls android.gesture.Prediction.toString.
type Store ¶
Store wraps android.gesture.GestureStore.
func (*Store) AddGesture ¶
AddGesture calls android.gesture.GestureStore.addGesture.
func (*Store) GetOrientationStyle ¶
GetOrientationStyle calls android.gesture.GestureStore.getOrientationStyle.
func (*Store) GetSequenceType ¶
GetSequenceType calls android.gesture.GestureStore.getSequenceType.
func (*Store) HasChanged ¶
HasChanged calls android.gesture.GestureStore.hasChanged.
func (*Store) RemoveEntry ¶
RemoveEntry calls android.gesture.GestureStore.removeEntry.
func (*Store) RemoveGesture ¶
RemoveGesture calls android.gesture.GestureStore.removeGesture.
func (*Store) SetOrientationStyle ¶
SetOrientationStyle calls android.gesture.GestureStore.setOrientationStyle.
func (*Store) SetSequenceType ¶
SetSequenceType calls android.gesture.GestureStore.setSequenceType.
type Stroke ¶
Stroke wraps android.gesture.GestureStroke.
func (*Stroke) ComputeOrientedBoundingBox ¶
ComputeOrientedBoundingBox calls android.gesture.GestureStroke.computeOrientedBoundingBox.
type Utils ¶
Utils wraps android.gesture.GestureUtils.
func (*Utils) ComputeOrientedBoundingBox ¶
ComputeOrientedBoundingBox calls android.gesture.GestureUtils.computeOrientedBoundingBox.
func (*Utils) SpatialSampling2 ¶
SpatialSampling2 calls android.gesture.GestureUtils.spatialSampling.
func (*Utils) SpatialSampling3_1 ¶
SpatialSampling3_1 calls android.gesture.GestureUtils.spatialSampling.