Files
AdditionalLibs/B4A/TouchImageView.xml

361 lines
12 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<root>
<doclet-version-NOT-library-version>1.02</doclet-version-NOT-library-version>
<class>
<name>uk.co.martinpearman.b4a.touchimageview.TouchImageViewWrapper</name>
<shortname>TouchImageView</shortname>
<objectwrapper>uk.co.martinpearman.b4a.touchimageview.TouchImageView</objectwrapper>
<owner>activity</owner>
<event>Click(X As Int, Y As Int)</event>
<event>LongClick(X As Int, Y As Int)</event>
<method>
<name>Initialize</name>
<comment></comment>
<returntype>void</returntype>
<parameter>
<name>pBA</name>
<type>anywheresoftware.b4a.BA</type>
</parameter>
<parameter>
<name>EventName</name>
<type>java.lang.String</type>
</parameter>
</method>
<method>
<name>SetBitmap</name>
<comment>Set the (foreground) image.</comment>
<returntype>void</returntype>
<parameter>
<name>pBA</name>
<type>anywheresoftware.b4a.BA</type>
</parameter>
<parameter>
<name>aBitmap</name>
<type>android.graphics.Bitmap</type>
</parameter>
</method>
<method>
<name>RequestFocus</name>
<comment></comment>
<returntype>boolean</returntype>
</method>
<method>
<name>BringToFront</name>
<comment></comment>
<returntype>void</returntype>
</method>
<method>
<name>buildNativeView</name>
<comment></comment>
<returntype>T</returntype>
<parameter>
<name>arg0</name>
<type>android.content.Context</type>
</parameter>
<parameter>
<name>arg1</name>
<type>java.lang.Class</type>
</parameter>
<parameter>
<name>arg2</name>
<type>java.util.HashMap</type>
</parameter>
<parameter>
<name>arg3</name>
<type>boolean</type>
</parameter>
</method>
<method>
<name>RemoveView</name>
<comment></comment>
<returntype>void</returntype>
</method>
<method>
<name>SetBackgroundImage</name>
<comment></comment>
<returntype>void</returntype>
<parameter>
<name>arg0</name>
<type>android.graphics.Bitmap</type>
</parameter>
</method>
<method>
<name>SetLayout</name>
<comment></comment>
<returntype>void</returntype>
<parameter>
<name>arg0</name>
<type>int</type>
</parameter>
<parameter>
<name>arg1</name>
<type>int</type>
</parameter>
<parameter>
<name>arg2</name>
<type>int</type>
</parameter>
<parameter>
<name>arg3</name>
<type>int</type>
</parameter>
</method>
<method>
<name>Invalidate</name>
<comment></comment>
<returntype>void</returntype>
</method>
<method>
<name>CreateLog</name>
<comment>Creates log entries with details about the current state of the TouchImageView.</comment>
<returntype>void</returntype>
</method>
<method>
<name>Invalidate3</name>
<comment></comment>
<returntype>void</returntype>
<parameter>
<name>arg0</name>
<type>int</type>
</parameter>
<parameter>
<name>arg1</name>
<type>int</type>
</parameter>
<parameter>
<name>arg2</name>
<type>int</type>
</parameter>
<parameter>
<name>arg3</name>
<type>int</type>
</parameter>
</method>
<method>
<name>GetDestRect</name>
<comment>Returns a Rect that describes the current scale and position of the image within the TouchImageView.</comment>
<returntype>anywheresoftware.b4a.objects.drawable.CanvasWrapper.RectWrapper</returntype>
</method>
<method>
<name>ScaleSrcRectToDestRect</name>
<comment>Scale and position the area of the (foreground) image defined by SrcRect to the area of the TouchImageView defined by DestRect.
ScaleToFit controls how the image should be aligned in the DestRect:
CENTER - Center and maximise the image to fit the DestRect maintaining the aspect ratio.
END - Maximise the image to fit the DestRect maintaining the aspect ratio, align the image with the bottom and right edges of the DestRect.
FILL - Maximise the image to completely fill the DestRect, the aspect ratio may not be maintained.
START - Maximise the image to fit the DestRect maintaining the aspect ratio, align the image with the top and left edges of the DestRect.</comment>
<returntype>void</returntype>
<parameter>
<name>SrcRect</name>
<type>android.graphics.Rect</type>
</parameter>
<parameter>
<name>DestRect</name>
<type>android.graphics.Rect</type>
</parameter>
<parameter>
<name>ScaleToFit</name>
<type>java.lang.String</type>
</parameter>
</method>
<method>
<name>Invalidate2</name>
<comment></comment>
<returntype>void</returntype>
<parameter>
<name>arg0</name>
<type>android.graphics.Rect</type>
</parameter>
</method>
<method>
<name>SendToBack</name>
<comment></comment>
<returntype>void</returntype>
</method>
<method>
<name>IsInitialized</name>
<comment></comment>
<returntype>boolean</returntype>
</method>
<method>
<name>PreScale</name>
<comment>Change the current image scale by Scale, centering the change on (X, Y).
For example a Scale value of 1.5 will increase the current scale by 150%.</comment>
<returntype>void</returntype>
<parameter>
<name>Scale</name>
<type>float</type>
</parameter>
<parameter>
<name>PointX</name>
<type>int</type>
</parameter>
<parameter>
<name>PointY</name>
<type>int</type>
</parameter>
</method>
<property>
<name>MinScale</name>
<returntype>float</returntype>
<parameter>
<name>MinScale</name>
<type>float</type>
</parameter>
<comment>Get or set the minimum scale that the image can be reduced by (zoomed out).
Default MinScale is 0.5.</comment>
</property>
<property>
<name>Enabled</name>
<returntype>boolean</returntype>
<parameter>
<name>arg0</name>
<type>boolean</type>
</parameter>
<comment></comment>
</property>
<property>
<name>Top</name>
<returntype>int</returntype>
<parameter>
<name>arg0</name>
<type>int</type>
</parameter>
<comment></comment>
</property>
<property>
<name>Visible</name>
<returntype>boolean</returntype>
<parameter>
<name>arg0</name>
<type>boolean</type>
</parameter>
<comment></comment>
</property>
<property>
<name>Gravity</name>
<returntype>int</returntype>
<parameter>
<name>Gravity</name>
<type>int</type>
</parameter>
<comment>Get or Set the Gravity of the BackgroundImage.</comment>
</property>
<property>
<name>ClickPeriod</name>
<returntype>int</returntype>
<parameter>
<name>ClickPeriod</name>
<type>int</type>
</parameter>
<comment>Get or Set the ClickPeriod in milliseconds.
The ClickPeriod is the threshold between a click being treated as a Click or a LongClick.
The default ClickPeriod is 200 milliseconds.</comment>
</property>
<property>
<name>Background</name>
<returntype>android.graphics.drawable.Drawable</returntype>
<parameter>
<name>arg0</name>
<type>android.graphics.drawable.Drawable</type>
</parameter>
<comment></comment>
</property>
<property>
<name>Height</name>
<returntype>int</returntype>
<parameter>
<name>arg0</name>
<type>int</type>
</parameter>
<comment></comment>
</property>
<property>
<name>Left</name>
<returntype>int</returntype>
<parameter>
<name>arg0</name>
<type>int</type>
</parameter>
<comment></comment>
</property>
<property>
<name>Color</name>
<parameter>
<name>arg0</name>
<type>int</type>
</parameter>
<comment></comment>
</property>
<property>
<name>TouchEnabled</name>
<returntype>boolean</returntype>
<parameter>
<name>Enabled</name>
<type>boolean</type>
</parameter>
<comment>Get or Set whether touch events are enabled.</comment>
</property>
<property>
<name>BackgroundImage</name>
<returntype>android.graphics.Bitmap</returntype>
<parameter>
<name>aBitmap</name>
<type>android.graphics.Bitmap</type>
</parameter>
<comment>Get or Set the BackgroundImage.</comment>
</property>
<property>
<name>Tag</name>
<returntype>java.lang.Object</returntype>
<parameter>
<name>arg0</name>
<type>java.lang.Object</type>
</parameter>
<comment></comment>
</property>
<property>
<name>MaxScale</name>
<returntype>float</returntype>
<parameter>
<name>MaxScale</name>
<type>float</type>
</parameter>
<comment>Get or set the maximum scale that the image can be enlarged by (zoomed in).
Default MaxScale is 1.5.</comment>
</property>
<property>
<name>Width</name>
<returntype>int</returntype>
<parameter>
<name>arg0</name>
<type>int</type>
</parameter>
<comment></comment>
</property>
<property>
<name>TranslatePadding</name>
<returntype>int</returntype>
<parameter>
<name>TranslatePadding</name>
<type>int</type>
</parameter>
<comment>Get or set the minimum number of pixels that the image will always display within the TouchImageView.
Default TranslatePadding is 64 pixels.
The image can not be dragged out of visibility, at least 64 pixels of width and height will always be visible.</comment>
</property>
<property>
<name>ScaleX</name>
<returntype>float</returntype>
<comment>Get the factor which the image is currently scaled by on it's X axis.</comment>
</property>
<property>
<name>ScaleY</name>
<returntype>float</returntype>
<comment>Get the factor which the image is currently scaled by on it's Y axis.</comment>
</property>
</class>
<version>2.0</version>
<author>Martin Pearman</author>
</root>