The Gnome Chemistry Utils 0.13.3
|
The document associated with the canvas. More...
#include <client.h>
Public Member Functions | |
Client () | |
virtual | ~Client () |
virtual bool | OnButtonPressed (ItemClient *client, unsigned button, double x, double y, unsigned state) |
virtual bool | OnButtonReleased (ItemClient *client, unsigned button, double x, double y, unsigned state) |
virtual bool | OnMotion (ItemClient *client, double x, double y, unsigned state) |
virtual bool | OnDrag (ItemClient *client, double x, double y, unsigned state) |
virtual bool | OnLeaveNotify (unsigned state) |
Canvas * | GetCanvas (void) |
Protected Attributes | |
Canvas * | m_Canvas |
The document associated with the canvas.
The Client object might represent the document or its view. This class is used to propagate mouse events to the document.
gccv::Client::Client | ( | ) |
The standard constructor.
virtual gccv::Client::~Client | ( | ) | [virtual] |
The destructor.
gccv::Client::GetCanvas | ( | void | ) | [inline] |
virtual bool gccv::Client::OnButtonPressed | ( | ItemClient * | client, |
unsigned | button, | ||
double | x, | ||
double | y, | ||
unsigned | state | ||
) | [virtual] |
client | the ItemClient for the Item at the event position if any. |
button | the mouse button. |
x | horizontal event position. |
y | vertical event position. |
state | the GdkModifierType value for the event. |
Called when a mouse button is pressed. client is NULL when there is no Item at the event position, or the Item does not have an associated ItemClient.
Reimplemented in gcp::View.
virtual bool gccv::Client::OnButtonReleased | ( | ItemClient * | client, |
unsigned | button, | ||
double | x, | ||
double | y, | ||
unsigned | state | ||
) | [virtual] |
client | the ItemClient for the Item at the event position if any. |
button | the mouse button. |
x | horizontal event position. |
y | vertical event position. |
state | the GdkModifierType value for the event. |
Called when a mouse button is released. client is NULL when there is no Item at the event position, or the Item does not have an associated ItemClient.
Reimplemented in gcp::View.
virtual bool gccv::Client::OnDrag | ( | ItemClient * | client, |
double | x, | ||
double | y, | ||
unsigned | state | ||
) | [virtual] |
client | the ItemClient for the Item at the event position if any. |
x | horizontal event position. |
y | vertical event position. |
state | the GdkModifierType value for the event. |
Called when the mouse moves over the canvas, with at least one button pressed. client is NULL when there is no Item at the event position, or the Item does not have an associated ItemClient.
Reimplemented in gcp::View.
virtual bool gccv::Client::OnLeaveNotify | ( | unsigned | state | ) | [virtual] |
virtual bool gccv::Client::OnMotion | ( | ItemClient * | client, |
double | x, | ||
double | y, | ||
unsigned | state | ||
) | [virtual] |
client | the ItemClient for the Item at the event position if any. |
x | horizontal event position. |
y | vertical event position. |
state | the GdkModifierType value for the event. |
Called when the mouse moves over the canvas, with no button pressed. client is NULL when there is no Item at the event position, or the Item does not have an associated ItemClient. @return true to stop other handlers from being invoked for the event. false to propagate the event further.
Reimplemented in gcp::View.
gccv::Client::m_Canvas [protected] |