comparison mde/gui/widget/Ifaces.d @ 166:55667d048c31

Made content displayable while being dragged.
author Diggory Hardy <diggory.hardy@gmail.com>
date Sun, 21 Jun 2009 12:19:18 +0200
parents 2476790223b8
children 7f7b2011b759
comparison
equal deleted inserted replaced
165:bb2f1a76346d 166:55667d048c31
129 * widgets), but the popup is only active if the IPPW is added as a child of 129 * widgets), but the popup is only active if the IPPW is added as a child of
130 * its parent IPPW. 130 * its parent IPPW.
131 * 131 *
132 * The widget manager is an IPPW, but unlike most IPPWs its popup(s), if 132 * The widget manager is an IPPW, but unlike most IPPWs its popup(s), if
133 * existing, probably have nothing to do with its child IPPWs. 133 * existing, probably have nothing to do with its child IPPWs.
134 *
135 * ----
136 * // No popups:
137 * WM
138 * // (IPPW) Widget X clicked on, which opens a menu:
139 * WM -> X (manages menu widget)
140 * ----
134 *****************************************************************************/ 141 *****************************************************************************/
135 interface IPopupParentWidget : IParentWidget 142 interface IPopupParentWidget : IParentWidget
136 { 143 {
137 /// menuActive's type 144 /// menuActive's type
138 enum MenuPosition { 145 enum MenuPosition {
408 * 415 *
409 * The return value has the following flags: 416 * The return value has the following flags:
410 * $(TABLE 417 * $(TABLE
411 * $(TR $(TD 1) $(TD Request keyboard input)) 418 * $(TR $(TD 1) $(TD Request keyboard input))
412 * $(TR $(TD 2) $(TD Request the functions dragMotion and dragRelease are called)) 419 * $(TR $(TD 2) $(TD Request the functions dragMotion and dragRelease are called))
420 * $(TR $(TD 4) $(TD Display the widget's content while dragging (requires 2)))
413 * ) */ 421 * ) */
414 int clickEvent (wdabs cx, wdabs cy, ubyte b, bool state); 422 int clickEvent (wdabs cx, wdabs cy, ubyte b, bool state);
415 423
416 /** Called when dragging motion occurs, originating from this widget. 424 /** Called when dragging motion occurs, originating from this widget.
417 * 425 *
418 * Params: target = The widget under the mouse when the click was released 426 * Params: target = The widget under the mouse
419 * 427 *
420 * Only called if requested by clickEvent. */ 428 * Only called if requested by clickEvent. */
421 void dragMotion (wdabs cx, wdabs cy, IChildWidget target); 429 void dragMotion (wdabs cx, wdabs cy, IChildWidget target);
422 430
423 /** Called at the end of a drag which originated from this widget. 431 /** Called at the end of a drag which originated from this widget.