Otclient  14/8/2020
WIN32Window Class Reference

#include <win32window.h>

Inheritance diagram for WIN32Window:
Collaboration diagram for WIN32Window:

Public Member Functions

 WIN32Window ()
 
void init ()
 
void terminate ()
 
void move (const Point &pos)
 
void resize (const Size &size)
 
void show ()
 
void hide ()
 
void maximize ()
 
void poll ()
 
void swapBuffers ()
 
void showMouse ()
 
void hideMouse ()
 
void displayFatalError (const std::string &message)
 
void setMouseCursor (int cursorId)
 
void restoreMouseCursor ()
 
void setTitle (const std::string &title)
 
void setMinimumSize (const Size &minimumSize)
 
void setFullscreen (bool fullscreen)
 
void setVerticalSync (bool enable)
 
void setIcon (const std::string &file)
 
void setClipboardText (const std::string &text)
 
Size getDisplaySize ()
 
std::string getClipboardText ()
 
std::string getPlatformType ()
 
- Public Member Functions inherited from PlatformWindow
int loadMouseCursor (const std::string &file, const Point &hotSpot)
 
int getDisplayWidth ()
 
int getDisplayHeight ()
 
Size getUnmaximizedSize ()
 
Size getSize ()
 
Size getMinimumSize ()
 
int getWidth ()
 
int getHeight ()
 
Point getUnmaximizedPos ()
 
Point getPosition ()
 
int getX ()
 
int getY ()
 
Point getMousePosition ()
 
int getKeyboardModifiers ()
 
bool isKeyPressed (Fw::Key keyCode)
 
bool isMouseButtonPressed (Fw::MouseButton mouseButton)
 
bool isVisible ()
 
bool isMaximized ()
 
bool isFullscreen ()
 
bool hasFocus ()
 
void setOnClose (const std::function< void()> &onClose)
 
void setOnResize (const OnResizeCallback &onResize)
 
void setOnInputEvent (const OnInputEventCallback &onInputEvent)
 

Protected Member Functions

int internalLoadMouseCursor (const ImagePtr &image, const Point &hotSpot)
 
- Protected Member Functions inherited from PlatformWindow
void updateUnmaximizedCoords ()
 
void processKeyDown (Fw::Key keyCode)
 
void processKeyUp (Fw::Key keyCode)
 
void releaseAllKeys ()
 
void fireKeysPress ()
 

Friends

struct WindowProcProxy
 

Additional Inherited Members

- Protected Attributes inherited from PlatformWindow
std::map< int, Fw::Keym_keyMap
 
std::map< Fw::Key, stdext::boolean< false > > m_keysState
 
std::map< Fw::Key, ticks_tm_firstKeysPress
 
std::map< Fw::Key, ticks_tm_lastKeysPress
 
Timer m_keyPressTimer
 
Size m_size
 
Size m_minimumSize
 
Point m_position
 
Size m_unmaximizedSize
 
Point m_unmaximizedPos
 
InputEvent m_inputEvent
 
stdext::boolean< false > m_mouseButtonStates [4]
 
stdext::boolean< false > m_created
 
stdext::boolean< false > m_visible
 
stdext::boolean< false > m_focused
 
stdext::boolean< false > m_fullscreen
 
stdext::boolean< false > m_maximized
 
std::function< void()> m_onClose
 
OnResizeCallback m_onResize
 
OnInputEventCallback m_onInputEvent
 

Detailed Description

Definition at line 41 of file win32window.h.

Constructor & Destructor Documentation

◆ WIN32Window()

WIN32Window::WIN32Window ( )

Member Function Documentation

◆ displayFatalError()

void WIN32Window::displayFatalError ( const std::string &  message)
virtual

Reimplemented from PlatformWindow.

◆ getClipboardText()

std::string WIN32Window::getClipboardText ( )
virtual

Implements PlatformWindow.

◆ getDisplaySize()

Size WIN32Window::getDisplaySize ( )
virtual

Implements PlatformWindow.

◆ getPlatformType()

std::string WIN32Window::getPlatformType ( )
virtual

Implements PlatformWindow.

◆ hide()

void WIN32Window::hide ( )
virtual

Implements PlatformWindow.

◆ hideMouse()

void WIN32Window::hideMouse ( )
virtual

Implements PlatformWindow.

◆ init()

void WIN32Window::init ( )
virtual

Implements PlatformWindow.

◆ internalLoadMouseCursor()

int WIN32Window::internalLoadMouseCursor ( const ImagePtr image,
const Point hotSpot 
)
protectedvirtual

Implements PlatformWindow.

◆ maximize()

void WIN32Window::maximize ( )
virtual

Implements PlatformWindow.

◆ move()

void WIN32Window::move ( const Point pos)
virtual

Implements PlatformWindow.

◆ poll()

void WIN32Window::poll ( )
virtual

Implements PlatformWindow.

◆ resize()

void WIN32Window::resize ( const Size size)
virtual

Implements PlatformWindow.

◆ restoreMouseCursor()

void WIN32Window::restoreMouseCursor ( )
virtual

Implements PlatformWindow.

◆ setClipboardText()

void WIN32Window::setClipboardText ( const std::string &  text)
virtual

Implements PlatformWindow.

◆ setFullscreen()

void WIN32Window::setFullscreen ( bool  fullscreen)
virtual

Implements PlatformWindow.

◆ setIcon()

void WIN32Window::setIcon ( const std::string &  file)
virtual

Implements PlatformWindow.

◆ setMinimumSize()

void WIN32Window::setMinimumSize ( const Size minimumSize)
virtual

Implements PlatformWindow.

◆ setMouseCursor()

void WIN32Window::setMouseCursor ( int  cursorId)
virtual

Implements PlatformWindow.

◆ setTitle()

void WIN32Window::setTitle ( const std::string &  title)
virtual

Implements PlatformWindow.

◆ setVerticalSync()

void WIN32Window::setVerticalSync ( bool  enable)
virtual

Implements PlatformWindow.

◆ show()

void WIN32Window::show ( )
virtual

Implements PlatformWindow.

◆ showMouse()

void WIN32Window::showMouse ( )
virtual

Implements PlatformWindow.

◆ swapBuffers()

void WIN32Window::swapBuffers ( )
virtual

Implements PlatformWindow.

◆ terminate()

void WIN32Window::terminate ( )
virtual

Implements PlatformWindow.

Friends And Related Function Documentation

◆ WindowProcProxy

friend struct WindowProcProxy
friend

Definition at line 52 of file win32window.h.


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