The View functions provide information about the contents of selected View windows.
More...
The View functions provide information about the contents of selected View windows.
◆ currentToolManager
QObject* view::currentToolManager |
( |
String |
viewName = String() | ) |
|
|
slot |
Returns the drawing tool manager.
If no argument is passed, returns the drawing tool manager from the current view.
- Parameters
-
viewName | : The name of the view to get the drawing tool manager from. |
- Returns
- The drawing tool manager of the given view. Can be null.
◆ currentView
String view::currentView |
( |
| ) |
|
|
slot |
returns a unique identifier for the current, active View.
◆ refreshViews
void view::refreshViews |
( |
| ) |
|
|
slot |
forces a refresh of the drawing and scene planning views.
◆ type
String view::type |
( |
String |
viewName | ) |
|
|
slot |
returns a string that indicates what type of View the currentView is.
- Parameters
-
viewName | The current view value, as returned by the currentView function. |
◆ viewPosition
QPoint view::viewPosition |
( |
String |
viewName | ) |
|
|
slot |
Returns the position of the top left corner of the given view.
The point (0,0) is the top left corner of the main display.
- Parameters
-
viewName | : The name of the view to get the position of. |
- Returns
- Returns the position of the view in pixels.