Class VisualFactory
Definition
- Namespace:
- Tizen.NUI
- Assembly:
- Tizen.NUI.dll
- API Level:
- 3
The VisualFactory is a singleton object that provides and shares visuals between views.
C#Copypublic class VisualFactory : BaseHandle, IDynamicResourceHandler, IElement, INameScope, IElementController, System.IDisposable
- Inheritance
- Implements
Properties
Declaration
C#Copypublic static VisualFactory Instance { get; }
Property Value
Type | Description |
---|---|
VisualFactory |
API Level: 3
Methods
Declaration
C#Copypublic VisualBase CreateVisual(PropertyMap propertyMap)
Parameters
Type | Name | Description |
---|---|---|
PropertyMap | propertyMap | The map contains the properties required by the visual. The content of the map determines the type of visual that will be returned. |
Returns
Type | Description |
---|---|
VisualBase | The handle to the created visual. |
API Level: 3
Declaration
C#Copypublic static VisualFactory Get()
Returns
Type | Description |
---|---|
VisualFactory |
API Level: 3
View Source
UsePreCompiledShader()
Compile the visual shader in advance. Afterwards, when a visual using a new shader is requested, the pre-compiled shader is used.
Declaration
C#Copypublic void UsePreCompiledShader()
Remarks
It is recommended that this method be called at the top of the application code.