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

Represents a simulated iOS CGContext used to ease the porting of UI code from iOS to Android. More...

Public Member Functions

 CGContext (UIView view)
 Initializes a new instance of the T:UIKit.CGContext class. More...
 
void SaveState ()
 Saves the state. More...
 
void RestoreState ()
 Restores the state. More...
 
void SetShadow (CGSize offset, nint blurRadius, ACColor color)
 Sets the shadow for the current context. More...
 
void ClipToRect (CGRect rect)
 Clips drawing to the given rect. More...
 

Properties

UIView View [get, set]
 Gets or sets the current view that this context belongs to. More...
 
Paint CurrentPaint = null [get, set]
 Gets or sets the current paint. More...
 
Paint PreviousPaint = new Paint() [get, set]
 Gets or sets the previous paint. More...
 
bool HasShadow = new Paint() [get, set]
 Gets or sets a value indicating whether this T:UIKit.CGContext has shadow. More...
 
CGSize ShadowOffset = false [get, set]
 Gets or sets the shadow offset. More...
 
nint ShadowBlurRadius = new CGSize(0, 0) [get, set]
 Gets or sets the shadow blur radius. More...
 
ACColor ShadowColor = 1 [get, set]
 Gets or sets the color of the shadow. More...
 

Detailed Description

Represents a simulated iOS CGContext used to ease the porting of UI code from iOS to Android.

Constructor & Destructor Documentation

UIKit.CGContext.CGContext ( UIView  view)

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

Parameters
viewView.

Member Function Documentation

void UIKit.CGContext.ClipToRect ( CGRect  rect)

Clips drawing to the given rect.

Parameters
rectRect.
void UIKit.CGContext.RestoreState ( )

Restores the state.

void UIKit.CGContext.SaveState ( )

Saves the state.

Here is the caller graph for this function:

void UIKit.CGContext.SetShadow ( CGSize  offset,
nint  blurRadius,
ACColor  color 
)

Sets the shadow for the current context.

Parameters
offsetOffset.
blurRadiusBlur radius.
colorColor.

Property Documentation

Paint UIKit.CGContext.CurrentPaint = null
getset

Gets or sets the current paint.

The current paint.

bool UIKit.CGContext.HasShadow = new Paint()
getset

Gets or sets a value indicating whether this T:UIKit.CGContext has shadow.

true if has shadow; otherwise, false.

Paint UIKit.CGContext.PreviousPaint = new Paint()
getset

Gets or sets the previous paint.

The previous paint.

nint UIKit.CGContext.ShadowBlurRadius = new CGSize(0, 0)
getset

Gets or sets the shadow blur radius.

The shadow blur radius.

ACColor UIKit.CGContext.ShadowColor = 1
getset

Gets or sets the color of the shadow.

The color of the shadow.

CGSize UIKit.CGContext.ShadowOffset = false
getset

Gets or sets the shadow offset.

The shadow offset.

UIView UIKit.CGContext.View
getset

Gets or sets the current view that this context belongs to.

The view.