dw::core::Layout::LinkReceiver Class Reference

#include <layout.hh>

List of all members.

Public Member Functions

virtual bool enter (Widget *widget, int link, int img, int x, int y)
 Called, when a link is entered, left, or the position has changed.
virtual bool press (Widget *widget, int link, int img, int x, int y, EventButton *event)
 Called, when the user has pressed the mouse button on a link (but not yet released).
virtual bool release (Widget *widget, int link, int img, int x, int y, EventButton *event)
 Called, when the user has released the mouse button on a link.
virtual bool click (Widget *widget, int link, int img, int x, int y, EventButton *event)
 Called, when the user has clicked on a link.


Member Function Documentation

bool dw::core::Layout::LinkReceiver::click ( Widget widget,
int  link,
int  img,
int  x,
int  y,
EventButton event 
) [virtual]

Called, when the user has clicked on a link.

For mouse interaction, this is equivalent to "press" and "release" on the same link. In this case, event contains the "release" event.

When activating links via keyboard is supported, only a "clicked" signal will be emitted, and event will be NULL.

Referenced by dw::core::Layout::LinkEmitter::emitToReceiver().

bool dw::core::Layout::LinkReceiver::enter ( Widget widget,
int  link,
int  img,
int  x,
int  y 
) [virtual]

Called, when a link is entered, left, or the position has changed.

When a link is entered, this method is called with the respective arguments. When a link is left, this method is called with all three arguments (link, x, y) set to -1.

When coordinates are supported, a change of the coordinates also causes emitting this signal.

Referenced by dw::core::Layout::LinkEmitter::emitToReceiver().

bool dw::core::Layout::LinkReceiver::press ( Widget widget,
int  link,
int  img,
int  x,
int  y,
EventButton event 
) [virtual]

Called, when the user has pressed the mouse button on a link (but not yet released).

The causing event is passed as event.

Referenced by dw::core::Layout::LinkEmitter::emitToReceiver().

bool dw::core::Layout::LinkReceiver::release ( Widget widget,
int  link,
int  img,
int  x,
int  y,
EventButton event 
) [virtual]

Called, when the user has released the mouse button on a link.

The causing event is passed as event.

Referenced by dw::core::Layout::LinkEmitter::emitToReceiver().


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

Generated on Wed Sep 7 02:00:37 2011 for Dillo by  doxygen 1.5.9