21 #ifndef GV_VIEWERWINDOW_X__H
22 #define GV_VIEWERWINDOW_X__H
36 class ViewerWindowXBase ;
63 virtual void init()
override ;
66 virtual void display(
int ,
int ,
int ,
const char * ,
size_t )
override ;
69 virtual int dx()
const override ;
72 virtual int dy()
const override ;
76 virtual void onChar(
char )
override ;
77 virtual void onLeftMouseButtonDown(
int x ,
int y ,
bool shift ,
bool control )
override ;
78 virtual void onLeftMouseButtonUp(
int x ,
int y ,
bool shift ,
bool control )
override ;
79 virtual void onMouseMove(
int x ,
int y )
override ;
80 virtual void onExpose( XExposeEvent & )
override ;
81 virtual void readEvent()
override ;
82 virtual void onException( std::exception & )
override ;
83 void update(
int ,
int ,
int ,
int ,
const unsigned char * ,
size_t ) ;
84 void update(
int ,
int ,
int ,
int ,
int ,
const unsigned char * ,
size_t ) ;
98 Gv::ViewerWindowXBase::ViewerWindowXBase() :
99 m_base_xloop(m_base_display)
A window class that is-a GX::Drawable and a GX::EventHandler.
ViewerWindowX(ViewerWindowHandler &, ViewerWindowConfig, int dx, int dy)
Constructor.
Implements a binary mask over an image that can be edited by mouse actions, and that can be stored on...
An event-loop class that delivers Xlib 'Display' events to GX::Window objects via their GX::EventHand...
An abstract base class for a viewer window.
A private base class for ViewerWindowX that initialises the display before the window is created by t...
::Window x()
Returns the X object.
A configuration structure for Gv::ViewerWindow.
A base class for classes that handle asynchronous events from the event loop.
virtual int dy() const override
Override from ViewerWindow.
A pimple-pattern implementation class for ViewerWindow that uses X11.
virtual void init() override
Override from ViewerWindow.
A drawing surface that is embedded in a window.
virtual ~ViewerWindowX()
Destructor.
virtual void display(int, int, int, const char *, size_t) override
Override from ViewerWindow.
A callback interface for Gv::ViewerWindow.
virtual int dx() const override
Override from ViewerWindow.