diff options
Diffstat (limited to 'Xamarin.Forms.Platform.Tizen/Renderers/IVisualElementRenderer.cs')
-rw-r--r-- | Xamarin.Forms.Platform.Tizen/Renderers/IVisualElementRenderer.cs | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/Xamarin.Forms.Platform.Tizen/Renderers/IVisualElementRenderer.cs b/Xamarin.Forms.Platform.Tizen/Renderers/IVisualElementRenderer.cs new file mode 100644 index 00000000..4702fd37 --- /dev/null +++ b/Xamarin.Forms.Platform.Tizen/Renderers/IVisualElementRenderer.cs @@ -0,0 +1,39 @@ +using System; +using ElmSharp; + +namespace Xamarin.Forms.Platform.Tizen +{ + /// <summary> + /// Base interface for VisualElement renderer. + /// </summary> + public interface IVisualElementRenderer : IRegisterable, IDisposable + { + /// <summary> + /// Gets the VisualElement associated with this renderer. + /// </summary> + /// <value>The VisualElement.</value> + VisualElement Element + { + get; + } + + /// <summary> + /// Gets the native view associated with this renderer. + /// </summary> + /// <value>The native view.</value> + EvasObject NativeView + { + get; + } + + /// <summary> + /// Sets the VisualElement associated with this renderer. + /// </summary> + /// <param name="element">New element.</param> + void SetElement(VisualElement element); + + SizeRequest GetDesiredSize(double widthConstraint, double heightConstraint); + + void UpdateNativeGeometry(); + } +} |