ActionComponents  04.05.00
Customizable UI and time-saving tools for Android development with Xamarin and Visual Studio.
ActionComponents.ACTile Class Reference

The ACTile is a custom UIView that defines several helper properties and methods that make it a great basis for any custom user interface controls. It defines helper events for being Touched, Moved, and/or Released and can be set to automatically become the front view when it is touched. And provides methods to make moving, rotating, and resizing the ACTile easier with less code. More...

Inheritance diagram for ActionComponents.ACTile:
Collaboration diagram for ActionComponents.ACTile:

Public Member Functions

void ChromaKeyTile (ACColor background, int minimum, int maximum)
 Changes the background color of this ACTile by creating a random brightness off the given base ACColor within the given minimum and maximum ranges More...
 
void Redraw ()
 Forces this ACTile to fully redraw itself More...
 
void DrawScene (CGRect rect)
 Draws a scene type tile. More...
 
void DrawAccessory (CGRect rect)
 Draws the accessory type tile. More...
 
void DrawTopTitleBar (CGRect rect, bool withIcon)
 Draws the top title bar. More...
 
void DrawBottomTitleBar (CGRect rect, bool withIcon)
 Draws the bottom title bar. More...
 
override void Draw (CGRect rect)
 Draw the specified rect. More...
 
override void TouchesBegan (NSSet touches, UIEvent evt)
 Sent when one or more fingers touches the screen. More...
 
override void TouchesMoved (NSSet touches, UIEvent evt)
 Sent when the ACTile is being dragged More...
 
override void TouchesEnded (NSSet touches, UIEvent evt)
 Send when one or more fingers are lifted from the screen. More...
 
delegate void ACTileTouchedDelegate (ACTile tile)
 Occurs when this ACTile is touched More...
 
delegate void ACTileMovedDelegate (ACTile tile)
 Occurs when this ACTile is moved More...
 
delegate void ACTileReleasedDelegate (ACTile tile)
 Occurs when this ACTile is released More...
 
delegate void ACTileRequestCustomDrawDelegate (ACTile tile, CGRect rect)
 Occurs when the ACTile Style is set to CustomDrawn and the ACTile needs to be updated More...
 
delegate void ACTileLiveUpdatingDelegate (ACTile tile)
 Occurs when live updating has been kicked off by the ACTileController More...
 
- Public Member Functions inherited from UIKit.UIView
 UIView ()
 Initializes a new instance of the T:UIKit.UIView class. More...
 
 UIView (CGRect rect)
 Initializes a new instance of the T:UIKit.UIView class. More...
 
 UIView (Context context)
 Initializes a new instance of the T:UIKit.UIView class. More...
 
 UIView (Context context, IAttributeSet attr)
 Initializes a new instance of the T:UIKit.UIView class. More...
 
 UIView (IntPtr javaReference, JniHandleOwnership transfer)
 Initializes a new instance of the T:UIKit.UIView class. More...
 
 UIView (Context context, IAttributeSet attr, int defStyle)
 Initializes a new instance of the T:UIKit.UIView class. More...
 
void SetNeedsDisplay ()
 Sets the needs display flag. More...
 
void SetNeedsLayout ()
 Sets the needs layout. More...
 
virtual void LayoutSubviews ()
 Lays out any sub view in the control. More...
 
virtual void AddSubview (UIView view)
 Adds the subview. More...
 
void InvokeOnMainThread (Action action)
 Invokes the given action on the main UI thread. More...
 
override bool OnTouchEvent (MotionEvent e)
 Handle the touch event. More...
 

Properties

Object tag [get, set]
 Gets or sets the [OPTIONAL] tag that can be assosciated with this ACTile More...
 
ACTileLiveUpdate liveUpdateAction [get, set]
 Gets or sets the ACTileLiveUpdate action that will be performed via an automatic update kicked off by the liveUpdateTimer in the parent ACTileController. More...
 
string title [get, set]
 Gets or sets the title for this ACTile More...
 
string subtitle [get, set]
 Gets or sets the subtitle for this ACTile More...
 
string description [get, set]
 Gets or sets the description for this ACTile More...
 
UIImage icon [get, set]
 Gets or sets the icon for this ACTile More...
 
ACTileAppearance appearance [get, set]
 Gets or sets the ACTile for this ACTile More...
 
ACTileStyle style [get, set]
 Gets or sets the ACTileStyle for this ACTile. More...
 
ACTileGroup group [get]
 Gets the ACTileGroup this ACTile. belongs to More...
 
ACTileSize tileSize [get, set]
 Gets or sets the ACTileSize of this ACTile More...
 
int customRowHeight [get, set]
 Gets or sets the height of the custom row. More...
 
int customColumnHeight [get, set]
 Gets or sets the height of the custom column. More...
 
bool Enabled [get, set]
 Gets or sets a value indicating whether this ACTile is enabled. More...
 
- Properties inherited from UIKit.UIView
CGRect Frame [get, set]
 Gets or sets the frame. More...
 
CGRect Bounds [get, set]
 Gets or sets the bounds. More...
 
Canvas DrawCanvas [get, set]
 Gets or sets the draw canvas. More...
 
ACColor BackgroundColor = null [get, set]
 Gets or sets the color of the background. More...
 
bool UserInteractionEnabled [get, set]
 Gets or sets a value indicating whether this T:UIKit.UIView user interaction enabled. More...
 
bool MultipleTouchEnabled = false [get, set]
 Gets or sets a value indicating whether this T:UIKit.UIView multiple touch enabled. More...
 
CGPoint LastTouchPoint = false [get, set]
 Gets or sets the last touch point. More...
 
bool ClipsToBounds = new CGPoint(0, 0) [get, set]
 Gets or sets a value indicating whether this T:UIKit.UIView clips to bounds. More...
 
bool ExclusiveTouch [get, set]
 Gets or sets a value indicating whether this T:UIKit.UIView exclusive touch. More...
 
bool CacheViewDrawing = true [get, set]
 Gets or sets a value indicating whether this T:UIKit.UIView cache view drawing to improve redraw performance. More...
 
List< UIViewSubviews = true [get]
 Gets the subviews. More...
 

Events

ACTileTouchedDelegate Touched
 
ACTileMovedDelegate Moved
 
ACTileReleasedDelegate Released
 
ACTileRequestCustomDrawDelegate RequestCustomDraw
 
ACTileLiveUpdatingDelegate LiveUpdating
 

Additional Inherited Members

- Protected Member Functions inherited from UIKit.UIView
override void OnDraw (Canvas canvas)
 Called when the view needs to draw itself. More...
 
override void OnLayout (bool changed, nint left, nint top, nint right, nint bottom)
 Called when the view is being laid out. More...
 

Detailed Description

The ACTile is a custom UIView that defines several helper properties and methods that make it a great basis for any custom user interface controls. It defines helper events for being Touched, Moved, and/or Released and can be set to automatically become the front view when it is touched. And provides methods to make moving, rotating, and resizing the ACTile easier with less code.

Member Function Documentation

delegate void ActionComponents.ACTile.ACTileLiveUpdatingDelegate ( ACTile  tile)

Occurs when live updating has been kicked off by the ACTileController

delegate void ActionComponents.ACTile.ACTileMovedDelegate ( ACTile  tile)

Occurs when this ACTile is moved

delegate void ActionComponents.ACTile.ACTileReleasedDelegate ( ACTile  tile)

Occurs when this ACTile is released

delegate void ActionComponents.ACTile.ACTileRequestCustomDrawDelegate ( ACTile  tile,
CGRect  rect 
)

Occurs when the ACTile Style is set to CustomDrawn and the ACTile needs to be updated

delegate void ActionComponents.ACTile.ACTileTouchedDelegate ( ACTile  tile)

Occurs when this ACTile is touched

Here is the caller graph for this function:

void ActionComponents.ACTile.ChromaKeyTile ( ACColor  background,
int  minimum,
int  maximum 
)

Changes the background color of this ACTile by creating a random brightness off the given base ACColor within the given minimum and maximum ranges

Parameters
backgroundBackground.
minimumMinimum.
maximumMaximum.

Here is the call graph for this function:

Here is the caller graph for this function:

override void ActionComponents.ACTile.Draw ( CGRect  rect)
virtual

Draw the specified rect.

Parameters
rectRect.

Reimplemented from UIKit.UIView.

Here is the call graph for this function:

void ActionComponents.ACTile.DrawAccessory ( CGRect  rect)

Draws the accessory type tile.

Parameters
rectRect.

Here is the call graph for this function:

Here is the caller graph for this function:

void ActionComponents.ACTile.DrawBottomTitleBar ( CGRect  rect,
bool  withIcon 
)

Draws the bottom title bar.

Parameters
rectRect.

Here is the call graph for this function:

void ActionComponents.ACTile.DrawScene ( CGRect  rect)

Draws a scene type tile.

Parameters
rectRect.

Draws a scene type tile.

Parameters
rectRect.

Here is the call graph for this function:

Here is the caller graph for this function:

void ActionComponents.ACTile.DrawTopTitleBar ( CGRect  rect,
bool  withIcon 
)

Draws the top title bar.

Parameters
rectRect.
withIconIf set to true with icon.

Here is the call graph for this function:

Here is the caller graph for this function:

void ActionComponents.ACTile.Redraw ( )

Forces this ACTile to fully redraw itself

Here is the call graph for this function:

override void ActionComponents.ACTile.TouchesBegan ( NSSet  touches,
UIEvent  evt 
)
virtual

Sent when one or more fingers touches the screen.

<Docs>Set containing the touches.</Docs>

Parameters
touchesTouches.
evtEvt.

Reimplemented from UIKit.UIView.

override void ActionComponents.ACTile.TouchesEnded ( NSSet  touches,
UIEvent  evt 
)
virtual

Send when one or more fingers are lifted from the screen.

<Docs>Set containing the touches.</Docs>

Parameters
touchesTouches.
evtEvt.

Reimplemented from UIKit.UIView.

Here is the call graph for this function:

override void ActionComponents.ACTile.TouchesMoved ( NSSet  touches,
UIEvent  evt 
)
virtual

Sent when the ACTile is being dragged

<Docs>Set containing the touches.</Docs>

Parameters
touchesTouches.
evtEvt.

Reimplemented from UIKit.UIView.

Property Documentation

ACTileAppearance ActionComponents.ACTile.appearance
getset

Gets or sets the ACTile for this ACTile

The appearance.

int ActionComponents.ACTile.customColumnHeight
getset

Gets or sets the height of the custom column.

The height of the custom column.

int ActionComponents.ACTile.customRowHeight
getset

Gets or sets the height of the custom row.

The height of the custom row.

string ActionComponents.ACTile.description
getset

Gets or sets the description for this ACTile

The description.

bool ActionComponents.ACTile.Enabled
getset

Gets or sets a value indicating whether this ACTile is enabled.

true if enabled; otherwise, false.

Enabling/disabling a ACTile automatically changes the value of it's UserInteractionEnabled flag

ACTileGroup ActionComponents.ACTile.group
get

Gets the ACTileGroup this ACTile. belongs to

The group.

UIImage ActionComponents.ACTile.icon
getset

Gets or sets the icon for this ACTile

The icon.

ACTileLiveUpdate ActionComponents.ACTile.liveUpdateAction
getset

Gets or sets the ACTileLiveUpdate action that will be performed via an automatic update kicked off by the liveUpdateTimer in the parent ACTileController.

The live update action.

ACTileStyle ActionComponents.ACTile.style
getset

Gets or sets the ACTileStyle for this ACTile.

The style.

string ActionComponents.ACTile.subtitle
getset

Gets or sets the subtitle for this ACTile

The subtitle.

Object ActionComponents.ACTile.tag
getset

Gets or sets the [OPTIONAL] tag that can be assosciated with this ACTile

The tag.

ACTileSize ActionComponents.ACTile.tileSize
getset

Gets or sets the ACTileSize of this ACTile

The size of the tile.

string ActionComponents.ACTile.title
getset

Gets or sets the title for this ACTile

The title.

Event Documentation

ACTileLiveUpdatingDelegate ActionComponents.ACTile.LiveUpdating
ACTileMovedDelegate ActionComponents.ACTile.Moved
ACTileReleasedDelegate ActionComponents.ACTile.Released
ACTileRequestCustomDrawDelegate ActionComponents.ACTile.RequestCustomDraw
ACTileTouchedDelegate ActionComponents.ACTile.Touched