+
+
+ Class Panel
+
+ Definition
+
+ - Namespace:
- Tizen.NUI.Scene3D
+ - Assembly:
- Tizen.NUI.Scene3D.dll
+
+ Panel is a control to show 2D UI on 3D Scene.
+2D UI contents set on this Panel are rendered on a screen panel that is placed on 3D scene.
+Each Panel has a single plane with defined resolution.
+The plane is always placed at center to fit within the boundaries of the panel while maintaining the aspect ratio of the resolution.
+
+
+
+
+
public class Panel : View, IDynamicResourceHandler, INameScope, System.IDisposable, IResourcesProvider
+
+
+
+
+ - Inheritance
+ -
+
+
object
+
+
+
+
+
+
+
Panel
+
+
+
+
+
+
+
+ - Implements
+ -
+
+
+
System.IDisposable
+
+
+
+
+
+
+ Examples
+ View contentRoot = CreateUIContent(); // Create 2D UI Scene
+Panel panel = new Panel()
+{
+ Size = new Size(width, height),
+};
+panel.PanelResolution = new Vector2(resolutionWidth, resolutionHeight));
+panel.Content = contentRoot;
+
+ Constructors
+
+
+ View Source
+
+
+ Panel()
+ Create an initialized Panel.
+
+
+ Declaration
+
+
+
+
+
+
+
+ Properties
+
+
+ View Source
+
+
+ BackFacePlaneColor
+ Color of back face plane.
+Default color is white.
+
+
+ Declaration
+
+
public Color BackFacePlaneColor { get; set; }
+
+ Property Value
+
+
+
+ Type |
+ Description |
+
+
+
+
+ Color |
+ |
+
+
+
+
+
+
+
+
+
+
+ View Source
+
+
+ Content
+ Root View of 2D UI content.
+The content is rendered on the plane of the Panel by using off screen rendering.
+
+
+ Declaration
+
+
public View Content { get; set; }
+
+ Property Value
+
+
+
+ Type |
+ Description |
+
+
+
+
+ View |
+ |
+
+
+
+
+
+
+
+
+
+
+ View Source
+
+
+ DoubleSided
+ Whether the content is rendered as double sided or not.
+Default value is false.
+
+
+ Declaration
+
+
public bool DoubleSided { get; set; }
+
+ Property Value
+
+
+
+ Type |
+ Description |
+
+
+
+
+ bool |
+ |
+
+
+
+
+
+
+
+
+
+
+ View Source
+
+
+ PanelResolution
+ Resolution of the Panel.
+The resolution is independent from the Panel size property.
+The resolution defines a plane that the 2D UI scene will be rendered.
+And the shape of the panel plane is defined by aspect ratio of the input resolution.
+The plane is cleared by white color.
+
+
+ Declaration
+
+
public Vector2 PanelResolution { get; set; }
+
+ Property Value
+
+
+
+ Type |
+ Description |
+
+
+
+
+ Vector2 |
+ |
+
+
+
+
+
+
+
+
+
+
+ View Source
+
+
+ ShadowCast
+ Whether this Panel casts shadow or not by directional light.
+If it is true, this panel is drawn on Shadow Map.
+Default value is true.
+
+
+ Declaration
+
+
public bool ShadowCast { get; set; }
+
+ Property Value
+
+
+
+ Type |
+ Description |
+
+
+
+
+ bool |
+ |
+
+
+
+ Remarks
+
+
+
+
+
+
+ View Source
+
+
+ ShadowReceive
+ Whether this Panel receives shadow or not by directional light.
+If it is true, shadows are drawn on this panel.
+Default value is true.
+
+
+ Declaration
+
+
public bool ShadowReceive { get; set; }
+
+ Property Value
+
+
+
+ Type |
+ Description |
+
+
+
+
+ bool |
+ |
+
+
+
+ Remarks
+
+
+
+
+
+
+ View Source
+
+
+ Transparent
+ Whether Transparent background is used or not. Default value is false
+
+
+ Declaration
+
+
public bool Transparent { get; set; }
+
+ Property Value
+
+
+
+ Type |
+ Description |
+
+
+
+
+ bool |
+ |
+
+
+
+
+
+
+
+
+
+
+ View Source
+
+
+ UsingBackFacePlane
+ Whether to use back face plane or not.
+If this property is true, an opaque plane will be displayed when viewed from behind the Panel.
+Default value is true.
+Default back face plane color is white.
+
+
+ Declaration
+
+
public bool UsingBackFacePlane { get; set; }
+
+ Property Value
+
+
+
+ Type |
+ Description |
+
+
+
+
+ bool |
+ |
+
+
+
+
+
+
+
+
+
+ Methods
+
+
+ View Source
+
+
+ Dispose(DisposeTypes)
+ To make transitionSet instance be disposed.
+
+
+ Declaration
+
+
protected override void Dispose(DisposeTypes type)
+
+ Parameters
+
+
+
+ Type |
+ Name |
+ Description |
+
+
+
+
+ DisposeTypes |
+ type |
+ |
+
+
+
+ Overrides
+
+
+
+
+
+
+
+
+ View Source
+
+
+ ReleaseSwigCPtr(HandleRef)
+
+
+ Declaration
+
+
protected override void ReleaseSwigCPtr(System.Runtime.InteropServices.HandleRef swigCPtr)
+
+ Parameters
+
+
+
+ Type |
+ Name |
+ Description |
+
+
+
+
+ System.Runtime.InteropServices.HandleRef |
+ swigCPtr |
+ |
+
+
+
+ Remarks
+
+
+
+
+
+ Implements
+
+
+
+ System.IDisposable
+
+
+ Extension Methods
+
+
+
+
+
+
+
+