ubit
Classes | Public Member Functions | Protected Member Functions | Friends | List of all members
ubit::UEventFlow Class Reference

Event Flow. More...

#include <ueventflow.hpp>

Public Member Functions

 UEventFlow (UDisp &, int channel)
 creates a new Event Flow on this Display. More...
 
int getID () const
 returns the global ID of this Event Flow. More...
 
int getChannel () const
 returns the channel of this Event Flow relatively to its Display. More...
 
UDispgetDisp () const
 returns the display that controls this event flow.
 
void setFocus (UView *)
 gives the input focus to this view. More...
 
USelectiongetSelection ()
 returns the text selection of this event flow.
 
UMenuManagergetMenuManager () const
 
UObjectgetUserData ()
 gets a handle to user data.
 
void setUserData (UObject *obj)
 sets a handle to user data.
 
void closeAllMenus ()
 close all menus related to this eventflow.
 
void deleteNotify (UView *deleted_view)
 
void deleteNotify (UElem *deleted_group)
 
void redirectMousePress (UMouseEvent &, UView *winview)
 
void mousePress (UView *win_view, unsigned long time, int state, const UPoint &win_pos, const UPoint &abs_pos, int btn)
 
void mouseRelease (UView *win_view, unsigned long time, int state, const UPoint &win_pos, const UPoint &abs_pos, int btn)
 
void mouseMotion (UView *win_view, unsigned long time, int state, const UPoint &win_pos, const UPoint &abs_pos)
 
void wheelMotion (UView *win_view, unsigned long time, int state, const UPoint &win_pos, const UPoint &abs_pos, int type, int delta)
 
void keyPress (UView *win_view, unsigned long time, int state, int keycode, short keychar)
 
void keyRelease (UView *win_view, unsigned long time, int state, int keycode, short keychar)
 
void winEnter (UView *win_view, unsigned long time)
 
void winLeave (UView *win_view, unsigned long time)
 
void setCursor (UEvent &, const UCursor *)
 
void startAutoRepeat (UEvent &)
 
void stopAutoRepeat (UEvent &)
 

Protected Member Functions

void boxCross (UView *box_view, unsigned long time, int state, const UCursor *, bool is_browsing)
 
bool mustCloseMenus (UView *source_view)
 
void autoRepeatCB (UTimerEvent &)
 
void openTipCB (UTimerEvent &)
 
void openTipRequest (UEvent &)
 
void closeTipRequest (UEvent &)
 
UWinretrieveTelePointer (UDisp *)
 
void showTelePointers (UMouseEvent &, int mode=0)
 

Friends

class UAppli
 
class UEvent
 
class UElem
 

Detailed Description

Event Flow.

a Ubit application can manage 1 or several Event Flows that are comptelety separated. This is useful for Two-handed interaction or groupware (each user controlling his own pointer on the screen(s)). See class UAppli and UAppli::getFlow().

Note: the ID of the native Event Flow is 0 on all Displays.

Constructor & Destructor Documentation

§ UEventFlow()

UEventFlow::UEventFlow ( UDisp _d,
int  channel 
)

creates a new Event Flow on this Display.

the ID of the native Event Flow is 0 on all Displays.

Member Function Documentation

§ getChannel()

int ubit::UEventFlow::getChannel ( ) const
inline

returns the channel of this Event Flow relatively to its Display.

this value is NOT unique for the whole application but depends on the display that this event flow id connected to. Remarks:

  • returns 0 for the native Event Flow
  • several Event Flows can have the same channel but on different displays (for instance, each Display have an Event Flow on channel 0)
    See also
    also: getID()

§ getID()

int ubit::UEventFlow::getID ( ) const
inline

returns the global ID of this Event Flow.

this is a unique ID for the whole application. returns 0 for the native Event Flow on the Default Display.

See also
also: getChannel()

§ setFocus()

void UEventFlow::setFocus ( UView v)

gives the input focus to this view.

no object gets the focus if argument is null. The focus is reset when the user clicks on a the view of widget that can handle input from the keyboard

§ winEnter()

void UEventFlow::winEnter ( UView win_view,
unsigned long  time 
)

!! should be the entered box PAS WINVIEW !!!@@


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