Interface IDrawnBase
public interface IDrawnBase : IDisposable, ICanBeUpdatedWithContext, ICanBeUpdated
- Inherited Members
- Extension Methods
Properties
ClipEffects
bool ClipEffects { get; set; }
Property Value
Destination
SKRect Destination { get; }
Property Value
DrawingRect
SKRect DrawingRect { get; }
Property Value
Height
double Height { get; }
Property Value
HeightRequest
double HeightRequest { get; set; }
Property Value
InputTransparent
bool InputTransparent { get; set; }
Property Value
IsClippedToBounds
bool IsClippedToBounds { get; set; }
Property Value
IsDisposed
bool IsDisposed { get; }
Property Value
IsDisposing
bool IsDisposing { get; }
Property Value
IsVisible
bool IsVisible { get; set; }
Property Value
MeasuredSize
ScaledSize MeasuredSize { get; }
Property Value
PostAnimators
Executed after the rendering
List<IOverlayEffect> PostAnimators { get; }
Property Value
RenderingScale
float RenderingScale { get; }
Property Value
ShouldInvalidateByChildren
bool ShouldInvalidateByChildren { get; }
Property Value
Tag
string Tag { get; }
Property Value
TranslationX
double TranslationX { get; }
Property Value
TranslationY
double TranslationY { get; }
Property Value
UpdateLocks
int UpdateLocks { get; }
Property Value
Views
For code-behind access of children, XAML is using Children property
List<SkiaControl> Views { get; }
Property Value
Width
double Width { get; }
Property Value
WidthRequest
double WidthRequest { get; set; }
Property Value
X
double X { get; }
Property Value
Y
double Y { get; }
Property Value
Methods
AddSubView(SkiaControl)
Directly adds a view to the control, without any layouting. Use this instead of Views.Add() to avoid memory leaks etc
void AddSubView(SkiaControl view)
Parameters
viewSkiaControl
ClipSmart(SKCanvas, SKPath, SKClipOperation)
Clip using internal custom settings of the control
void ClipSmart(SKCanvas canvas, SKPath path, SKClipOperation operation = SKClipOperation.Intersect)
Parameters
canvasSKCanvaspathSKPathoperationSKClipOperation
CreateClip(object, bool, SKPath)
Creates a new disposable SKPath for clipping content according to the control shape and size. Create this control clip for painting content. Pass arguments if you want to use some time-frozen data for painting at any time from any thread.. If applyPosition is false will create clip without using drawing posiition, like if was drawing at 0,0.
SKPath CreateClip(object arguments, bool usePosition, SKPath path = null)
Parameters
Returns
DisposeObject(IDisposable, string)
void DisposeObject(IDisposable value, string caller = null)
Parameters
valueIDisposablecallerstring
GetOnScreenVisibleArea(DrawingContext, Vector2)
For virtualization. For this method to be conditional we introduced the pixelsDestination
parameter so that the Parent could return different visible areas upon context.
Normally pass your current destination you are drawing into as this parameter.
ScaledRect GetOnScreenVisibleArea(DrawingContext context, Vector2 inflateByPixels = default)
Parameters
contextDrawingContextinflateByPixelsVector2
Returns
Invalidate()
Invalidates the measured size. May or may not call Update() inside, depends on control
void Invalidate()
InvalidateByChild(SkiaControl)
This is needed by layout to track which child changed to sometimes avoid recalculating other children
void InvalidateByChild(SkiaControl skiaControl)
Parameters
skiaControlSkiaControl
InvalidateParents()
If need the re-measure all parents because child-auto-size has changed
void InvalidateParents()
InvalidateViewport()
void InvalidateViewport()
InvalidateViewsList()
void InvalidateViewsList()
IsVisibleInViewTree()
bool IsVisibleInViewTree()
Returns
RegisterAnimator(ISkiaAnimator)
bool RegisterAnimator(ISkiaAnimator animator)
Parameters
animatorISkiaAnimator
Returns
RegisterGestureListener(ISkiaGestureListener)
void RegisterGestureListener(ISkiaGestureListener gestureListener)
Parameters
gestureListenerISkiaGestureListener
RemoveSubView(SkiaControl)
Directly removes a view from the control, without any layouting. Use this instead of Views.Remove() to avoid memory leaks etc
void RemoveSubView(SkiaControl view)
Parameters
viewSkiaControl
Repaint()
void Repaint()
UnregisterAllAnimatorsByType(Type)
IEnumerable<ISkiaAnimator> UnregisterAllAnimatorsByType(Type type)
Parameters
typeType
Returns
UnregisterAnimator(Guid)
void UnregisterAnimator(Guid uid)
Parameters
uidGuid
UnregisterGestureListener(ISkiaGestureListener)
void UnregisterGestureListener(ISkiaGestureListener gestureListener)
Parameters
gestureListenerISkiaGestureListener
UpdateByChild(SkiaControl)
To track dirty area when Updating parent
void UpdateByChild(SkiaControl skiaControl)
Parameters
skiaControlSkiaControl