Wt::WInteractWidget Class Reference

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

#include <WInteractWidget>

Inherits Wt::WWebWidget.

Inherited by Wt::WAnchor, Wt::WContainerWidget, Wt::WFormWidget, Wt::WImage, Wt::WLabel, Wt::WTable, Wt::WText, and Wt::WTimerWidget.

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< WMouseEventclicked
 Event signal emitted when a mouse key was clicked on this WWidget.
EventSignal< WMouseEventdoubleClicked
 Event signal emitted when a mouse key was double clicked on this WWidget.
EventSignal< WMouseEventmouseWentDown
 Event signal emitted when a mouse key was pushed down on this WWidget.
EventSignal< WMouseEventmouseWentUp
 Event signal emitted when a mouse key was released on this WWidget.
EventSignal< WMouseEventmouseWentOut
 Event signal emitted when the mouse went out of this WWidget.
EventSignal< WMouseEventmouseWentOver
 Event signal emitted when the mouse entered this WWidget.
EventSignal< WMouseEventmouseMoved
 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 WWidget 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 Sun Jul 1 19:37:18 2007 for Wt by doxygen 1.4.7