BaseRenderer¶
Namespace: WellFired.Guacamole.Unity.Editor.NativeControls
Implements: WellFired.Guacamole.Renderer.INativeRenderer
Description¶
Public Properties¶
UISize | NativeSize |
Public Methods¶
void | Create ( ) |
void | Render ( UIRect renderRect ) |
void | OnViewPropertyChanged ( object sender, PropertyChangedEventArgs e ) |
void | ResetStyle ( ) |
void | FocusControl ( ) |
bool | PushMaskStack ( UIRect maskRect ) |
void | PopMaskStack ( ) |
void | RecycleWithNewBindingContext ( ) |
protected-func¶
void | SetupWithNewStyle ( ) |
Breakdown¶
- View Control { get; set; }
- Rect UnityRect { get; set; }
- GUIStyle Style { get; set; }
- UISize NativeSize
- void Create ( )
- void Render ( UIRect renderRect )
- void OnViewPropertyChanged ( object sender, PropertyChangedEventArgs e )
- void ResetStyle ( )
- void FocusControl ( )
bool PushMaskStack ( UIRect maskRect )
Description
When PushMaskStack is called, the rect that is passed to Push defines the mask rect. If you call Push, you must also call Pop. I.E. PushMaskStack(rect) DoSomeRendering() PopMaskStack() Not all NativeViews will push a MaskStack
Parameters
maskRect The rect with which you want to mask
void PopMaskStack ( )
Description
You must call PopMaskStack after a call to PushMaskStack, once you’ve finished rendering into that masked area.
void RecycleWithNewBindingContext ( )
Description
When a view has been recycled, this method will be called. Currently only works for Cells.
- void SetupWithNewStyle ( )