Otclient  14/8/2020
X11Window Class Reference

#include <x11window.h>

Inheritance diagram for X11Window:
Collaboration diagram for X11Window:

Public Member Functions

 X11Window ()
 
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 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
virtual void displayFatalError (const std::string &message)
 
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 ()
 

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 38 of file x11window.h.

Constructor & Destructor Documentation

◆ X11Window()

X11Window::X11Window ( )

Definition at line 32 of file x11window.cpp.

Member Function Documentation

◆ getClipboardText()

std::string X11Window::getClipboardText ( )
virtual

Implements PlatformWindow.

Definition at line 1031 of file x11window.cpp.

Here is the call graph for this function:

◆ getDisplaySize()

Size X11Window::getDisplaySize ( )
virtual

Implements PlatformWindow.

Definition at line 1026 of file x11window.cpp.

◆ getPlatformType()

std::string X11Window::getPlatformType ( )
virtual

Implements PlatformWindow.

Definition at line 1070 of file x11window.cpp.

◆ hide()

void X11Window::hide ( )
virtual

Implements PlatformWindow.

Definition at line 553 of file x11window.cpp.

◆ hideMouse()

void X11Window::hideMouse ( )
virtual

Implements PlatformWindow.

Definition at line 855 of file x11window.cpp.

Here is the call graph for this function:

◆ init()

void X11Window::init ( )
virtual

Implements PlatformWindow.

Definition at line 211 of file x11window.cpp.

◆ internalLoadMouseCursor()

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

Implements PlatformWindow.

Definition at line 892 of file x11window.cpp.

Here is the call graph for this function:

◆ maximize()

void X11Window::maximize ( )
virtual

Implements PlatformWindow.

Definition at line 560 of file x11window.cpp.

Here is the caller graph for this function:

◆ move()

void X11Window::move ( const Point pos)
virtual

Implements PlatformWindow.

Definition at line 524 of file x11window.cpp.

◆ poll()

void X11Window::poll ( )
virtual

Implements PlatformWindow.

Definition at line 584 of file x11window.cpp.

Here is the call graph for this function:

◆ resize()

void X11Window::resize ( const Size size)
virtual

Implements PlatformWindow.

Definition at line 533 of file x11window.cpp.

Here is the call graph for this function:

◆ restoreMouseCursor()

void X11Window::restoreMouseCursor ( )
virtual

Implements PlatformWindow.

Definition at line 886 of file x11window.cpp.

Here is the caller graph for this function:

◆ setClipboardText()

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

Implements PlatformWindow.

Definition at line 1018 of file x11window.cpp.

◆ setFullscreen()

void X11Window::setFullscreen ( bool  fullscreen)
virtual

Implements PlatformWindow.

Definition at line 946 of file x11window.cpp.

Here is the caller graph for this function:

◆ setIcon()

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

Implements PlatformWindow.

Definition at line 987 of file x11window.cpp.

Here is the call graph for this function:

◆ setMinimumSize()

void X11Window::setMinimumSize ( const Size minimumSize)
virtual

Implements PlatformWindow.

Definition at line 936 of file x11window.cpp.

Here is the call graph for this function:

◆ setMouseCursor()

void X11Window::setMouseCursor ( int  cursorId)
virtual

Implements PlatformWindow.

Definition at line 874 of file x11window.cpp.

Here is the call graph for this function:

◆ setTitle()

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

Implements PlatformWindow.

Definition at line 930 of file x11window.cpp.

◆ setVerticalSync()

void X11Window::setVerticalSync ( bool  enable)
virtual

Implements PlatformWindow.

Definition at line 969 of file x11window.cpp.

◆ show()

void X11Window::show ( )
virtual

Implements PlatformWindow.

Definition at line 541 of file x11window.cpp.

Here is the call graph for this function:

◆ showMouse()

void X11Window::showMouse ( )
virtual

Implements PlatformWindow.

Definition at line 850 of file x11window.cpp.

Here is the call graph for this function:

◆ swapBuffers()

void X11Window::swapBuffers ( )
virtual

Implements PlatformWindow.

Definition at line 841 of file x11window.cpp.

◆ terminate()

void X11Window::terminate ( )
virtual

Implements PlatformWindow.

Definition at line 220 of file x11window.cpp.


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