fltk 1.3.0rc3
About: FLTK (Fast Light Tool Kit) is a cross-platform C++ GUI toolkit for UNIX/Linux (X11), Microsoft Windows, and MacOS X. Release candidate.
  SfR Fresh Dox: fltk-1.3.0rc3-source.tar.gz ("inofficial" and yet experimental doxygen-generated source code documentation)  

menuwindow Class Reference

Inheritance diagram for menuwindow:
Collaboration diagram for menuwindow:

List of all members.

Public Member Functions

int handle (int)
 menuwindow (const Fl_Menu_Item *m, int X, int Y, int W, int H, const Fl_Menu_Item *picked, const Fl_Menu_Item *title, int menubar=0, int menubar_title=0, int right_edge=0)
 ~menuwindow ()
void set_selected (int)
int find_selected (int mx, int my)
int titlex (int)
void autoscroll (int)
void position (int x, int y)
int is_inside (int x, int y)

Public Attributes

menutitletitle
int itemheight
int numitems
int selected
int drawn_selected
int shortcutWidth
const Fl_Menu_Itemmenu

Detailed Description

Definition at line 93 of file Fl_Menu.cxx.


Constructor & Destructor Documentation

menuwindow::~menuwindow ( )

Definition at line 399 of file Fl_Menu.cxx.

References Fl_Menu_Window::hide(), and title.


Member Function Documentation

void menuwindow::autoscroll ( int  n)
int menuwindow::handle ( int  event) [virtual]

Handles the specified event. You normally don't call this method directly, but instead let FLTK do it when the user interacts with the widget.

When implemented in a widget, this function must return 0 if the widget does not use the event or 1 otherwise.

Most of the time, you want to call the inherited handle() method in your overridden method so that you don't short-circuit events that you don't handle. In this last case you should return the callee retval.

Parameters:
[in]eventthe kind of event received
Return values:
0if the event was not used or understood
1if the event was used and can be deleted
See also:
Fl_Event

Reimplemented from Fl_Window.

Definition at line 625 of file Fl_Menu.cxx.

References DONE_STATE, menustate::fakemenu, Fl_Menu_Window::hide(), i, menustate::nummenus, menustate::p, menustate::state, and title.

Referenced by Fl_Menu_Item::pulldown().

int menuwindow::is_inside ( int  x,
int  y 
)

Definition at line 533 of file Fl_Menu.cxx.

References Fl_Widget::h(), Fl_Widget::w(), Fl_Window::x_root(), and Fl_Window::y_root().

void menuwindow::position ( int  X,
int  Y 
)

Repositions the window or widget.

position(X, Y) is a shortcut for resize(X, Y, w(), h()).

Parameters:
[in]X,Ynew position relative to the parent window
See also:
resize(int,int,int,int), size(int,int)

Reimplemented from Fl_Widget.

Definition at line 404 of file Fl_Menu.cxx.

References Fl_Widget::position(), title, and Fl_Widget::y().

Referenced by autoscroll(), and Fl_Menu_Item::pulldown().

void menuwindow::set_selected ( int  n)

Definition at line 497 of file Fl_Menu.cxx.

References Fl_Widget::damage(), FL_DAMAGE_CHILD, and selected.

Referenced by Fl_Menu_Item::pulldown().

int menuwindow::titlex ( int  n)

Definition at line 525 of file Fl_Menu.cxx.

References Fl_Menu_Item::first(), m, Fl_Menu_Item::measure(), menu, and Fl_Menu_Item::next().

Referenced by Fl_Menu_Item::pulldown().


Member Data Documentation

Definition at line 105 of file Fl_Menu.cxx.

Referenced by menuwindow().

Definition at line 102 of file Fl_Menu.cxx.

Referenced by autoscroll(), menuwindow(), and Fl_Menu_Item::pulldown().

Definition at line 103 of file Fl_Menu.cxx.

Referenced by find_selected(), and menuwindow().

Definition at line 104 of file Fl_Menu.cxx.

Referenced by menuwindow(), Fl_Menu_Item::pulldown(), and set_selected().

Definition at line 106 of file Fl_Menu.cxx.

Referenced by menuwindow().


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