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

Represents a simulated iOS UIView used to ease the porting of UI code from iOS to Android. The UIView is a customized version of an Android View using a RelativeLayout with features its features mapped to the iOS UIView names and callin structures. NOTE: Only a small percentage of UIView has been ported to support Action Components. More...

Inheritance diagram for UIKit.UIView:
Collaboration diagram for UIKit.UIView:

Public Member Functions

 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 Draw (CGRect rect)
 Draw the specified rect. More...
 
virtual void LayoutSubviews ()
 Lays out any sub view in the control. More...
 
virtual void TouchesBegan (NSSet touches, UIEvent evt)
 Sent when one or more fingers touches the screen. More...
 
virtual void TouchesMoved (NSSet touches, UIEvent evt)
 Sent when the ACTile is being dragged More...
 
virtual void TouchesEnded (NSSet touches, UIEvent evt)
 Send when one or more fingers are lifted from the screen. 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...
 

Protected Member Functions

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...
 

Properties

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...
 

Detailed Description

Represents a simulated iOS UIView used to ease the porting of UI code from iOS to Android. The UIView is a customized version of an Android View using a RelativeLayout with features its features mapped to the iOS UIView names and callin structures. NOTE: Only a small percentage of UIView has been ported to support Action Components.

Constructor & Destructor Documentation

UIKit.UIView.UIView ( )

Initializes a new instance of the T:UIKit.UIView class.

Here is the caller graph for this function:

UIKit.UIView.UIView ( CGRect  rect)

Initializes a new instance of the T:UIKit.UIView class.

Parameters
rectRect.
UIKit.UIView.UIView ( Context  context)

Initializes a new instance of the T:UIKit.UIView class.

Parameters
contextContext.
UIKit.UIView.UIView ( Context  context,
IAttributeSet  attr 
)

Initializes a new instance of the T:UIKit.UIView class.

Parameters
contextContext.
attrAttr.
UIKit.UIView.UIView ( IntPtr  javaReference,
JniHandleOwnership  transfer 
)

Initializes a new instance of the T:UIKit.UIView class.

Parameters
javaReferenceJava reference.
transferTransfer.
UIKit.UIView.UIView ( Context  context,
IAttributeSet  attr,
int  defStyle 
)

Initializes a new instance of the T:UIKit.UIView class.

Parameters
contextContext.
attrAttr.
defStyleDef style.

Member Function Documentation

virtual void UIKit.UIView.AddSubview ( UIView  view)
virtual

Adds the subview.

Parameters
viewView.

Reimplemented in UIKit.UIScrollView.

Here is the caller graph for this function:

virtual void UIKit.UIView.Draw ( CGRect  rect)
virtual

Draw the specified rect.

Returns
The draw.
Parameters
rectRect.

Reimplemented in ActionComponents.ACTileGroup, ActionComponents.ACTileController, ActionComponents.ACTile, and ActionComponents.ACTileNavigationBar.

Here is the caller graph for this function:

void UIKit.UIView.InvokeOnMainThread ( Action  action)

Invokes the given action on the main UI thread.

Parameters
actionAction.

Here is the call graph for this function:

Here is the caller graph for this function:

virtual void UIKit.UIView.LayoutSubviews ( )
virtual

Lays out any sub view in the control.

Reimplemented in ActionComponents.ACTileController, ActionComponents.ACTileNavigationBar, and UIKit.UIScrollView.

Here is the caller graph for this function:

override void UIKit.UIView.OnDraw ( Canvas  canvas)
protected

Called when the view needs to draw itself.

Parameters
canvasCanvas.

Here is the call graph for this function:

override void UIKit.UIView.OnLayout ( bool  changed,
nint  left,
nint  top,
nint  right,
nint  bottom 
)
protected

Called when the view is being laid out.

Parameters
changedIf set to true changed.
leftLeft.
topTop.
rightRight.
bottomBottom.

Here is the call graph for this function:

override bool UIKit.UIView.OnTouchEvent ( MotionEvent  e)

Handle the touch event.

Returns
true, if touch event was oned, false otherwise.
Parameters
eE.

Here is the call graph for this function:

void UIKit.UIView.SetNeedsDisplay ( )

Sets the needs display flag.

Here is the caller graph for this function:

void UIKit.UIView.SetNeedsLayout ( )

Sets the needs layout.

Here is the call graph for this function:

Here is the caller graph for this function:

virtual void UIKit.UIView.TouchesBegan ( NSSet  touches,
UIEvent  evt 
)
virtual

Sent when one or more fingers touches the screen.

Parameters
touchesTouches.
evtEvt.

Reimplemented in ActionComponents.ACTileGroup, ActionComponents.ACTile, ActionComponents.ACTileController, and UIKit.UIScrollView.

Here is the caller graph for this function:

virtual void UIKit.UIView.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 in ActionComponents.ACTileGroup, ActionComponents.ACTile, ActionComponents.ACTileController, and UIKit.UIScrollView.

Here is the caller graph for this function:

virtual void UIKit.UIView.TouchesMoved ( NSSet  touches,
UIEvent  evt 
)
virtual

Sent when the ACTile is being dragged

Parameters
touchesTouches.
evtEvt.

Reimplemented in ActionComponents.ACTileGroup, ActionComponents.ACTile, ActionComponents.ACTileController, and UIKit.UIScrollView.

Here is the caller graph for this function:

Property Documentation

ACColor UIKit.UIView.BackgroundColor = null
getset

Gets or sets the color of the background.

The color of the background.

CGRect UIKit.UIView.Bounds
getset

Gets or sets the bounds.

The bounds.

bool UIKit.UIView.CacheViewDrawing = true
getset

Gets or sets a value indicating whether this T:UIKit.UIView cache view drawing to improve redraw performance.

true if cache view drawing; otherwise, false.

bool UIKit.UIView.ClipsToBounds = new CGPoint(0, 0)
getset

Gets or sets a value indicating whether this T:UIKit.UIView clips to bounds.

true if clips to bounds; otherwise, false.

Canvas UIKit.UIView.DrawCanvas
getset

Gets or sets the draw canvas.

The draw canvas.

bool UIKit.UIView.ExclusiveTouch
getset

Gets or sets a value indicating whether this T:UIKit.UIView exclusive touch.

true if exclusive touch; otherwise, false.

CGRect UIKit.UIView.Frame
getset

Gets or sets the frame.

The frame.

CGPoint UIKit.UIView.LastTouchPoint = false
getset

Gets or sets the last touch point.

The last touch point.

bool UIKit.UIView.MultipleTouchEnabled = false
getset

Gets or sets a value indicating whether this T:UIKit.UIView multiple touch enabled.

true if multiple touch enabled; otherwise, false.

List<UIView> UIKit.UIView.Subviews = true
get

Gets the subviews.

The subviews.

bool UIKit.UIView.UserInteractionEnabled
getset

Gets or sets a value indicating whether this T:UIKit.UIView user interaction enabled.

true if user interaction enabled; otherwise, false.