WindowDrawable Class
A drawable connected to an existing application window.
NuGet/Assembly: Carmenta.Engine.5.17.0.nupkg (in the CECore assembly)
Syntax
public class WindowDrawable : DrawableRemarks
A WindowDrawable is a drawable that uses a window that has been created elsewhere. The application passes a handle to the window when the drawable is created.
Inheritance Hierarchy
System.Object
EngineObject
ResourceObject
Drawable
WindowDrawable
Platforms
Windows, Linux, Android
WindowDrawable Members
The WindowDrawable type has the following members.
Constructors
| Name | Description |
|---|---|
| WindowDrawable | Initializes a new instance of the WindowDrawable class. |
Properties
| Name | Description |
|---|---|
| Background | Gets or sets the background color of the drawable. Inherited from Drawable |
| FogColor | Gets or sets the color of the fog in a 3D view. Inherited from Drawable |
| FogDensity | Gets or sets the density of the fog in a 3D view. Inherited from Drawable |
| Handle | Gets or sets the handle to the application window. |
| IsDisposed | Gets a value that tells whether the current WindowDrawable has been disposed. Inherited from EngineObject |
| Name | Gets or sets the name of the WindowDrawable. Inherited from ResourceObject |
| NativeHandle | Gets the native Carmenta Engine kernel object the current WindowDrawable represents. Inherited from EngineObject |
| PixelSize | Gets or sets a drawable-specific pixel size. Inherited from Drawable |
| PixelSizeAdjustments | Gets or sets a number of parameters that adjusts rendering to the DPI of the display. Inherited from Drawable |
| Renderer | Gets the type of graphics renderer used by the drawable. Inherited from Drawable |
| RendererSettings | Gets or sets a number of parameters that adjusts renderer settings. Inherited from Drawable |
| Gets or sets the size of a screen pixel. Inherited from Drawable | |
| Swap | Gets or sets a flag indicating if the front and back buffers of the drawable are swapped automatically. Inherited from Drawable |
| Transform | Gets or sets the current 2D affine transform. Inherited from Drawable |
| IUserProperties.UserProperties | Gets the AttributeSet that contains the user properties. Inherited from IUserProperties |
| Wireframe | Gets or sets a flag indicating that meshes in 3D should be drawn as wireframes. Inherited from Drawable |
Methods
| Name | Description |
|---|---|
| AdjustSize | Adjusts the drawable to the specified width and height. Inherited from Drawable |
| Clone | Creates a copy of an object. Inherited from EngineObject |
| CreateSnapshot | Creates a bitmap copy of the drawable, a "snapshot". Inherited from Drawable |
| Dispose | Releases the reference to the native Carmenta Engine kernel instance the EngineObject represents. Inherited from EngineObject |
| DrawArc | Draws an elliptic arc. Inherited from Drawable |
| DrawLine | Draws a line with the specified geometry and pen. Inherited from Drawable |
| DrawPolygon | Draws a polygon with the specified brush and pen. Inherited from Drawable |
| DrawRaster | Draws a raster. Inherited from Drawable |
| DrawSnapshot | Draws a snapshot created by CreateSnapshot. Inherited from Drawable |
| DrawString | Draws a text string. Inherited from Drawable |
| Equals | Determines whether this instance is equal to another. Inherited from EngineObject |
| GetImage | Overloaded. Saves the contents of the drawable to a memory buffer, possibly with georeferencing information. Inherited from Drawable |
| GetNativeRendererInfo | Retrieves information necessary to perform custom native rendering. Inherited from Drawable |
| GetRaster | Copies all pixels in the drawable into a new Raster and returns it. Inherited from Drawable |
| Release | Releases the drawable from the calling thread, so it may be used again from a different thread. Inherited from Drawable |
| Save | Overloaded. Saves the contents of the drawable to a file, possibly with georeferencing information. Inherited from Drawable |
| SetPropertiesFrom | Reserved for internal use. Inherited from Drawable |
| SwapBuffers | Swaps the front and back buffers of the drawable. Inherited from Drawable |
| TextBounds | Calculates the bounding box of a text string if drawn with DrawString. Inherited from Drawable |
Events
| Name | Description |
|---|---|
| FrameCompleted | Reserved for internal use. Inherited from Drawable |