ScummVM API documentation
MTropolis::Window Class Reference

Public Member Functions

 Window (const WindowParameters &windowParams)
 
int32 getX () const
 
int32 getY () const
 
int32 getWidth () const
 
int32 getHeight () const
 
void setPosition (int32 x, int32 y)
 
void resizeWindow (int32 width, int32 height)
 
const Common::SharedPtr< Graphics::ManagedSurface > & getSurface () const
 
const Graphics::PixelFormatgetPixelFormat () const
 
const Common::SharedPtr< CursorGraphic > & getCursorGraphic () const
 
void setCursorGraphic (const Common::SharedPtr< CursorGraphic > &cursor)
 
bool getMouseVisible () const
 
void setMouseVisible (bool visible)
 
void setStrata (int strata)
 
int getStrata () const
 
void setMouseTransparent (bool isTransparent)
 
bool isMouseTransparent () const
 
void close ()
 
void detachFromRuntime ()
 
virtual void onMouseDown (int32 x, int32 y, int mouseButton)
 
virtual void onMouseMove (int32 x, int32 y)
 
virtual void onMouseUp (int32 x, int32 y, int mouseButton)
 
virtual void onKeyboardEvent (const Common::EventType evtType, bool repeat, const Common::KeyState &keyEvt)
 
virtual void onAction (Actions::Action action)
 

Protected Attributes

int32 _x
 
int32 _y
 
Runtime_runtime
 
int _strata
 
bool _isMouseTransparent
 
bool _isMouseVisible
 
Common::SharedPtr< Graphics::ManagedSurface_surface
 
Common::SharedPtr< CursorGraphic_cursor
 

The documentation for this class was generated from the following file: