Wt::FocusEvent Class Reference

#include <event.h>

Inheritance diagram for Wt::FocusEvent:

Inheritance graph
[legend]
Collaboration diagram for Wt::FocusEvent:

Collaboration graph
[legend]
List of all members.

Public Types

 Mouse
 Tab
 Backtab
 ActiveWindow
 Popup
 Shortcut
 Other
enum  Reason {
  Mouse, Tab, Backtab, ActiveWindow,
  Popup, Shortcut, Other
}
 Nope
 Timer
 MouseButtonPress
 MouseButtonRelease
 MouseButtonDblClick
 MouseMove
 KeyPress
 KeyRelease
 FocusIn
 FocusOut
 Enter
 Leave
 Paint
 Move
 Resize
 Wheel
 ChildInserted
 ChildRemoved
 LayoutHint
 Show
 Hide
 Close
 User
 MaxEvent
enum  Type {
  Nope, Timer, MouseButtonPress, MouseButtonRelease,
  MouseButtonDblClick, MouseMove, KeyPress, KeyRelease,
  FocusIn, FocusOut, Enter, Leave,
  Paint, Move, Resize, Wheel,
  ChildInserted, ChildRemoved, LayoutHint, Show,
  Hide, Close, User, MaxEvent
}
 events that are delivered per widget More...

Public Member Functions

 FocusEvent (int type, int reason=Other)
bool gotFocus () const
bool lostFocus () const
int reason ()
int type () const

Private Attributes

int reason_

Detailed Description

Definition at line 332 of file event.h.


Member Enumeration Documentation

enum Wt::FocusEvent::Reason

Enumerator:
Mouse 
Tab 
Backtab 
ActiveWindow 
Popup 
Shortcut 
Other 

Definition at line 334 of file event.h.

00334                  {
00335         Mouse,
00336         Tab,
00337         Backtab,
00338         ActiveWindow,
00339         Popup,
00340         Shortcut,
00341         Other
00342     } Reason;

enum Wt::Event::Type [inherited]

events that are delivered per widget

Enumerator:
Nope 
Timer 
MouseButtonPress 
MouseButtonRelease 
MouseButtonDblClick 
MouseMove 
KeyPress 
KeyRelease 
FocusIn 
FocusOut 
Enter 
Leave 
Paint 
Move 
Resize 
Wheel 
ChildInserted 
ChildRemoved 
LayoutHint 
Show 
Hide 
Close 
User 
MaxEvent 

Definition at line 34 of file event.h.

00034                  {
00035         Nope,
00036         Timer,
00037         MouseButtonPress,
00038         MouseButtonRelease,
00039         MouseButtonDblClick,
00040         MouseMove,
00041         KeyPress,   //6
00042         KeyRelease,
00043         FocusIn,
00044         FocusOut,
00045         Enter,
00046         Leave,      //11
00047         Paint,
00048         Move,
00049         Resize,     //14
00050         Wheel,
00051         ChildInserted,  //16
00052         ChildRemoved,
00053         LayoutHint, //18
00054         Show,
00055         Hide,
00056         Close,
00057         User,
00058         MaxEvent
00059     } Type;


Constructor & Destructor Documentation

Wt::FocusEvent::FocusEvent ( int  type,
int  reason = Other 
) [inline]

Definition at line 344 of file event.h.

00344                                              :
00345             Event(type),
00346     reason_(reason) {}


Member Function Documentation

bool Wt::FocusEvent::gotFocus (  )  const [inline]

Definition at line 348 of file event.h.

References Wt::Event::FocusIn, and Wt::Event::type().

00348                           {
00349         return type() == FocusIn;
00350     }

Here is the call graph for this function:

bool Wt::FocusEvent::lostFocus (  )  const [inline]

Definition at line 352 of file event.h.

References Wt::Event::FocusOut, and Wt::Event::type().

00352                            {
00353         return type() == FocusOut;
00354     }

Here is the call graph for this function:

int Wt::FocusEvent::reason (  )  [inline]

Definition at line 356 of file event.h.

References reason_.

00356                  {
00357         return reason_;
00358     }

int Wt::Event::type (  )  const [inline, inherited]

Definition at line 71 of file event.h.

References Wt::Event::type_.

Referenced by Wt::Window::Frame::childEvent(), Wt::Object::event(), Wt::Layout::eventFilter(), gotFocus(), lostFocus(), Wt::operator<<(), and Wt::Application::EventQueueItem::operator==().

00071                      {
00072         return type_;
00073     }


Member Data Documentation

int Wt::FocusEvent::reason_ [private]

Definition at line 361 of file event.h.

Referenced by reason().


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

Generated Fri Jul 28 19:28:34 2006.
Copyright © 1998-2003 by the respective authors.

This document is licensed under the terms of the GNU Free Documentation License and may be freely distributed under the conditions given by this license.