Wt::WInteractWidget Class Reference

A widget that can receive user-interface interaction. More...

#include <WInteractWidget>

Inheritance diagram for Wt::WInteractWidget:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 WInteractWidget (WContainerWidget *parent=0)
 Create an InteractWidget with optional parent.
void setDraggable (const std::string &mimeType, WWidget *dragWidget=0, bool isDragWidgetOnly=false, WObject *sourceWidget=0)
 Configure dragging.

Public Attributes

EventSignal< WKeyEventkeyWentDown
 Event signal emitted when a keyboard key is pushed down.
EventSignal< WKeyEventkeyPressed
 Event signal emitted when a keyboard key is pressed.
EventSignal< WKeyEventkeyWentUp
 Event signal emitted when a keyboard key is released.
EventSignal
< WMouseEvent
clicked
 Event signal emitted when a mouse key was clicked on this WWidget.
EventSignal
< WMouseEvent
doubleClicked
 Event signal emitted when a mouse key was double clicked on this WWidget.
EventSignal
< WMouseEvent
mouseWentDown
 Event signal emitted when a mouse key was pushed down on this WWidget.
EventSignal
< WMouseEvent
mouseWentUp
 Event signal emitted when a mouse key was released on this WWidget.
EventSignal
< WMouseEvent
mouseWentOut
 Event signal emitted when the mouse went out of this WWidget.
EventSignal
< WMouseEvent
mouseWentOver
 Event signal emitted when the mouse entered this WWidget.
EventSignal
< WMouseEvent
mouseMoved
 Event signal emitted when the mouse moved over this WWidget.
EventSignal< void > enterPressed
 Event signal emitted when enter was pressed.
EventSignal< void > escapePressed
 Event signal emitted when escape was pressed.


Detailed Description

A widget that can receive user-interface interaction.

An InteractWidget provides various event signals that correspond to user-interface interaction.


Member Function Documentation

void Wt::WInteractWidget::setDraggable ( const std::string &  mimeType,
WWidget dragWidget = 0,
bool  isDragWidgetOnly = false,
WObject sourceWidget = 0 
)

Configure dragging.

Enable drag&drop for this widget. The mimeType is used to find a suitable drop target, which must accept dropping of this mimetype.

By default, the entire widget is dragged. One may specify another widget to be dragged (for example the parent), or a drag widget whose function is only to represent the drag visually (when isDragWidgetOnly = true).

The widget to be identified as source in the dropEvent may be given explicitly, and will default to this widget otherwise.

See also:
WWidget::dropEvent, WWidget::setAcceptDrops, WDropEvent


The documentation for this class was generated from the following files:
Generated on Mon Apr 14 15:15:01 2008 for Wt by doxygen 1.5.3