Uranium
Application Framework
Loading...
Searching...
No Matches
UM.Qt.Bindings.MainWindow.MainWindow Class Reference

Public Member Functions

 __init__ (self, parent=None)
 setAllowResize (self, bool allow_resize)
 toggleFullscreen (self)
 exitFullscreen (self)
 getBackgroundColor (self)
 setBackgroundColor (self, color)
 mouseX (self)
 mouseY (self)
 setViewportRect (self, rect)
 viewportRect (self)
 mousePressed (self, event)
 mouseMoved (self, event)
 wheel (self, event)
 mouseReleased (self, event)
 mousePressEvent (self, event)
 mouseMoveEvent (self, event)
 mouseReleaseEvent (self, event)
 keyPressEvent (self, event)
 keyReleaseEvent (self, event)
 wheelEvent (self, event)
 moveEvent (self, event)
 resizeEvent (self, event)
 hideEvent (self, event)

Static Public Attributes

int DEFAULT_WINDOW_WIDTH = 1280
int DEFAULT_WINDOW_HEIGHT = 720
int DEFAULT_WINDOW_LEFT = 50
int DEFAULT_WINDOW_TOP = 50
 preClosing = pyqtSignal("QQuickCloseEvent*", arguments = ["close"])
 backgroundColor = pyqtProperty(QColor, fget=getBackgroundColor, fset=setBackgroundColor)
 mousePositionChanged = pyqtSignal()
 viewportRectChanged = pyqtSignal()
 renderCompleted = Signal(type = Signal.Queued)

Protected Member Functions

 _render (self)
 _onSceneChanged (self, object=None)
 _onActiveViewChanged (self)
 _onWindowGeometryChanged (self)
None _updateViewportGeometry (self, int width, int height)

Protected Attributes

 _background_color = QColor(204, 204, 204, 255)
 _render
 _mouse_device = QtMouseDevice(self)
 _key_device = QtKeyDevice()
 _previous_focus = None
 _app = QCoreApplication.instance()
 _onSceneChanged
 _onActiveViewChanged
 _preferences = Application.getInstance().getPreferences()
int _mouse_x = 0
int _mouse_y = 0
bool _mouse_pressed = False
 _viewport_rect = QRectF(0, 0, 1.0, 1.0)
bool _fullscreen = False
bool _full_render_required = True
bool _allow_resize = True

Static Protected Attributes

bool _OPEN_GL_INITIALIZED = False

Detailed Description

QQuickWindow subclass that provides the main window.

The documentation for this class was generated from the following file:
  • UM/Qt/Bindings/MainWindow.py