webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Public Member Functions | Protected Attributes | List of all members
OSWindow Class Referenceabstract

#include <OSWindow.h>

Inheritance diagram for OSWindow:
AndroidWindow OSXWindow OzoneWindow Win32Window WinRTWindow X11Window

Public Member Functions

 OSWindow ()
 
virtual ~OSWindow ()
 
virtual bool initialize (const std::string &name, size_t width, size_t height)=0
 
virtual void destroy ()=0
 
int getX () const
 
int getY () const
 
int getWidth () const
 
int getHeight () const
 
virtual bool takeScreenshot (uint8_t *pixelData)
 
virtual EGLNativeWindowType getNativeWindow () const =0
 
virtual EGLNativeDisplayType getNativeDisplay () const =0
 
virtual void messageLoop ()=0
 
bool popEvent (Event *event)
 
virtual void pushEvent (Event event)
 
virtual void setMousePosition (int x, int y)=0
 
virtual bool setPosition (int x, int y)=0
 
virtual bool resize (int width, int height)=0
 
virtual void setVisible (bool isVisible)=0
 
virtual void signalTestEvent ()=0
 
bool didTestEventFire ()
 

Protected Attributes

int mX
 
int mY
 
int mWidth
 
int mHeight
 
std::list< EventmEvents
 

Constructor & Destructor Documentation

◆ OSWindow()

OSWindow::OSWindow ( )

◆ ~OSWindow()

OSWindow::~OSWindow ( )
virtual

Member Function Documentation

◆ destroy()

virtual void OSWindow::destroy ( )
pure virtual

◆ didTestEventFire()

bool OSWindow::didTestEventFire ( )

◆ getHeight()

int OSWindow::getHeight ( ) const

◆ getNativeDisplay()

virtual EGLNativeDisplayType OSWindow::getNativeDisplay ( ) const
pure virtual

◆ getNativeWindow()

virtual EGLNativeWindowType OSWindow::getNativeWindow ( ) const
pure virtual

◆ getWidth()

int OSWindow::getWidth ( ) const

◆ getX()

int OSWindow::getX ( ) const

◆ getY()

int OSWindow::getY ( ) const

◆ initialize()

virtual bool OSWindow::initialize ( const std::string name,
size_t  width,
size_t  height 
)
pure virtual

◆ messageLoop()

virtual void OSWindow::messageLoop ( )
pure virtual

◆ popEvent()

bool OSWindow::popEvent ( Event event)

◆ pushEvent()

void OSWindow::pushEvent ( Event  event)
virtual

Reimplemented in Win32Window.

◆ resize()

virtual bool OSWindow::resize ( int  width,
int  height 
)
pure virtual

◆ setMousePosition()

virtual void OSWindow::setMousePosition ( int  x,
int  y 
)
pure virtual

◆ setPosition()

virtual bool OSWindow::setPosition ( int  x,
int  y 
)
pure virtual

◆ setVisible()

virtual void OSWindow::setVisible ( bool  isVisible)
pure virtual

◆ signalTestEvent()

virtual void OSWindow::signalTestEvent ( )
pure virtual

◆ takeScreenshot()

virtual bool OSWindow::takeScreenshot ( uint8_t pixelData)
inlinevirtual

Reimplemented in Win32Window.

Member Data Documentation

◆ mEvents

std::list<Event> OSWindow::mEvents
protected

◆ mHeight

int OSWindow::mHeight
protected

◆ mWidth

int OSWindow::mWidth
protected

◆ mX

int OSWindow::mX
protected

◆ mY

int OSWindow::mY
protected

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