Press on the image to return to the main documentation page.
PinchZoomAndMove
Written by Giancarlo "Dominex" Fioretti
List of types:
LayoutData
PinchZoomAndMove
TouchData
LayoutData
Events:
None
Members:
Height
As
Int
Initialize
IsInitialized
As
Boolean
Left
As
Int
Tag
As
Object
Top
As
Int
Width
As
Int
Members description:
Height
As
Int
Initialize
Initializes the fields to their default value.
IsInitialized
As
Boolean
Tests whether the object has been initialized.
Left
As
Int
Tag
As
Object
Top
As
Int
Width
As
Int
PinchZoomAndMove
This is an 'Activity Object', it cannot be declared under Sub Process_Globals.
Events:
Click
LongClick
Change
Members:
GetIfCanMove
As
Boolean
GetIfCanZoom
As
Boolean
GetIfLimitArea
As
Boolean
GetIfLimitBorder
As
Boolean
GetZoom
As
Float
Initialize
(
Target
As
ConcreteViewWrapper
,
NameEvent
As
String
,
Tag
As
Object
,
ZoomMin
As
Float
,
ZoomMax
As
Float
,
Increase
As
Float
,
BringToFront
As
Boolean
,
Module
As
Object
)
As
String
IsInitialized
As
Boolean
SetIfCanMove
(
Option
As
Boolean
)
As
String
SetIfCanZoom
(
Option
As
Boolean
)
As
String
SetLimitArea
(
Option
As
Boolean
)
As
String
SetLimitBorder
(
Option
As
Boolean
)
As
String
SetZoom
(
Zoom
As
Float
)
As
String
Members description:
GetIfCanMove
As
Boolean
Returns if the View can translate.
GetIfCanZoom
As
Boolean
Returns if the View can Zoom.
GetIfLimitArea
As
Boolean
Returns the value set by SetLimitArea.
GetIfLimitBorder
As
Boolean
Returns the value set by SetLimitBorder.
GetZoom
As
Float
Returns the current Zoom in percentage (eg. 100 = 100%).
Initialize
(
Target
As
ConcreteViewWrapper
,
NameEvent
As
String
,
Tag
As
Object
,
ZoomMin
As
Float
,
ZoomMax
As
Float
,
Increase
As
Float
,
BringToFront
As
Boolean
,
Module
As
Object
)
As
String
Initialize the View.
Target
- View on which to apply the PinchZoomAndMove.
NameEvent
- name of the event.
ZoomMin
- minimum Zoom (eg. 0.5 = 50%).
ZoomMax
- maximum Zoom (eg. 3 = 300%).
Increase
- factor of increase / decrease during the Pinch Zoom.
Tag
- is the Tags View.
BringToFront
- if True active the BringToFront.
Module
- must be Me.
IsInitialized
As
Boolean
Tests whether the object has been initialized.
SetIfCanMove
(
Option
As
Boolean
)
As
String
Sets whether the View may translare or not.
Option
- True if the View can translate.
SetIfCanZoom
(
Option
As
Boolean
)
As
String
Sets whether the View may zoom or not.
Option
- True if the View can Zoom.
SetLimitArea
(
Option
As
Boolean
)
As
String
If True, the edges of the View will remain within its parent.
If the View has dimensions infferiori the Parent, will be automatically increased.
The zoom 100% Is equal To the new size of the View.
SetLimitBorder
(
Option
As
Boolean
)
As
String
If it is true, the View will not come out from the edges of its parent.
If the View Is larger than the Parent, will be automatically reduced.
The 100% zoom Is equal To the new size of the View.
SetZoom
(
Zoom
As
Float
)
As
String
Sets the zoom.
Zoom
- Zoom in percentage (eg. 100 = 100% = initial size of the View).
TouchData
Events:
None
Members:
Initialize
IsInitialized
As
Boolean
Tag
As
Object
X
As
Int
Y
As
Int
Members description:
Initialize
Initializes the fields to their default value.
IsInitialized
As
Boolean
Tests whether the object has been initialized.
Tag
As
Object
X
As
Int
Y
As
Int
Top