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

Inherits QQuickWindow.

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)
 

Public Attributes

 DEFAULT_WINDOW_WIDTH
 
 DEFAULT_WINDOW_HEIGHT
 
 DEFAULT_WINDOW_LEFT
 
 DEFAULT_WINDOW_TOP
 

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
 
 _render
 
 _mouse_device
 
 _key_device
 
 _previous_focus
 
 _app
 
 _onSceneChanged
 
 _onActiveViewChanged
 
 _preferences
 
 _mouse_x
 
 _mouse_y
 
 _mouse_pressed
 
 _viewport_rect
 
 _fullscreen
 
 _full_render_required
 
 _allow_resize
 
 _OPEN_GL_INITIALIZED
 

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: