#include <sprk.h>
The Factory class is used to create and query Sprocket objects.
◆ CreateCanvas() [1/3]
Creates a new Canvas.
- Parameters
-
in_window_handle | The window handle associated with this Canvas. |
in_name | An optional name associated with this Canvas. |
in_options | An ApplicationWindowOptionsKit used to specify the driver to be used by the canvas, and whether it will support anti-aliasing. |
- Returns
- The newly created Canvas.
◆ CreateCanvas() [2/3]
Creates a new Canvas.
- Parameters
-
in_name | An optional name associated with this Canvas. |
in_options | An StandAloneWindowOptionsKit used to specify the driver to be used by the canvas, and whether it will support anti-aliasing. Note: This is not supported on Android, iOS or macOS as this uses standalone windows and on these operating systems all GUI / windowing is controlled at the application level. |
- Returns
- The newly created Canvas.
◆ CreateCanvas() [3/3]
Creates a new Canvas.
- Parameters
-
in_window_key | The window key associated with this Canvas. |
in_portfolio_key | Key to the portfolio to be associated with this Canvas. |
in_name | An optional name associated with this Canvas. |
- Returns
- The newly created Canvas.
◆ CreateComponent()
static Component HPS::Factory::CreateComponent |
( |
Component const & |
in_owner, |
|
|
char const * |
in_name = "" |
|
) |
| |
|
static |
Creates a new Component.
- Parameters
-
in_owner | The owner of the component being created |
in_name | An optional name associated with this Component. |
- Returns
- The newly created Component.
◆ CreateLayout()
static Layout HPS::Factory::CreateLayout |
( |
char const * |
in_name = "" | ) |
|
|
static |
Creates a new Layout.
- Parameters
-
in_name | An optional name associated with this Layout. |
- Returns
- The newly created Layout.
◆ CreateModel()
static Model HPS::Factory::CreateModel |
( |
char const * |
in_name = "" | ) |
|
|
static |
Creates a new Model.
- Parameters
-
in_name | An optional name associated with this Model. |
- Returns
- The newly created Model.
◆ CreateView()
static View HPS::Factory::CreateView |
( |
char const * |
in_name = "" | ) |
|
|
static |
Creates a new View.
- Parameters
-
in_name | An optional name associated with this View. |
- Returns
- The newly created View.
◆ DeInstanceComponent()
◆ GetCADModels()
static CADModelArray HPS::Factory::GetCADModels |
( |
| ) |
|
|
static |
Get a list of all active CADModels (i.e. CADModels that have been created and not deleted)
- Returns
- A list of active CADModels.
◆ GetCanvases()
static CanvasArray HPS::Factory::GetCanvases |
( |
| ) |
|
|
static |
Get a list of all active Canvases (i.e. Canvases that have been created and not deleted)
- Returns
- A list of active Canvases.
◆ GetLayouts()
static LayoutArray HPS::Factory::GetLayouts |
( |
| ) |
|
|
static |
Get a list of all active Layouts (i.e. Layouts that have been created and not deleted)
- Returns
- A list of active Layouts.
◆ GetModels()
static ModelArray HPS::Factory::GetModels |
( |
| ) |
|
|
static |
Get a list of all active Models (i.e. Models that have been created and not deleted)
- Returns
- A list of active Models.
◆ GetViews()
static ViewArray HPS::Factory::GetViews |
( |
| ) |
|
|
static |
Get a list of all active Views (i.e. Views that have been created and not deleted)
- Returns
- A list of active Views.
The documentation for this class was generated from the following file: