BC_Menu Class Reference

#include <bcmenu.h>

Collaboration diagram for BC_Menu:

Collaboration graph
[legend]

Public Member Functions

 BC_Menu (char *text)
virtual ~BC_Menu ()
int add_item (BC_MenuItem *menuitem)
int remove_item (BC_MenuItem *item=0)
int total_menuitems ()
int set_text (char *text)
int initialize (BC_WindowBase *top_level, BC_MenuBar *menu_bar, int x, int y, int w, int h)
int dispatch_button_press ()
int dispatch_button_release ()
int dispatch_keypress ()
int dispatch_motion_event ()
int dispatch_cursor_leave ()
int dispatch_translation_event ()
int deactivate_menu ()
int activate_menu ()
int unhighlight ()
void draw_items ()

Private Member Functions

int draw_title ()

Private Attributes

int active
char text [1024]
BC_WindowBasetop_level
BC_MenuBarmenu_bar
BC_MenuPopupmenu_popup
int highlighted
int x
int y
int w
int h

Friends

class BC_MenuBar

Detailed Description

Definition at line 21 of file bcmenu.h.


Constructor & Destructor Documentation

BC_Menu::BC_Menu ( char *  text  ) 

Definition at line 14 of file bcmenu.C.

References active, highlighted, and menu_bar.

BC_Menu::~BC_Menu (  )  [virtual]

Definition at line 22 of file bcmenu.C.

References menu_popup.


Member Function Documentation

int BC_Menu::add_item ( BC_MenuItem menuitem  ) 

int BC_Menu::remove_item ( BC_MenuItem item = 0  ) 

Definition at line 52 of file bcmenu.C.

References menu_popup, and BC_MenuPopup::remove_item().

Here is the call graph for this function:

int BC_Menu::total_menuitems (  ) 

Definition at line 58 of file bcmenu.C.

References menu_popup, and BC_MenuPopup::total_menuitems().

Here is the call graph for this function:

int BC_Menu::set_text ( char *  text  ) 

Definition at line 224 of file bcmenu.C.

References draw_title().

Here is the call graph for this function:

int BC_Menu::initialize ( BC_WindowBase top_level,
BC_MenuBar menu_bar,
int  x,
int  y,
int  w,
int  h 
)

Definition at line 27 of file bcmenu.C.

References draw_title(), BC_MenuPopup::initialize(), and menu_popup.

Referenced by BC_MenuBar::add_menu().

Here is the call graph for this function:

int BC_Menu::dispatch_button_press (  ) 

int BC_Menu::dispatch_button_release (  ) 

int BC_Menu::dispatch_keypress (  ) 

Definition at line 115 of file bcmenu.C.

References BC_MenuPopup::dispatch_key_press(), and menu_popup.

Referenced by BC_MenuBar::keypress_event().

Here is the call graph for this function:

int BC_Menu::dispatch_motion_event (  ) 

int BC_Menu::dispatch_cursor_leave (  ) 

Definition at line 176 of file bcmenu.C.

References active, BC_MenuPopup::dispatch_cursor_leave(), menu_popup, and unhighlight().

Referenced by BC_MenuBar::cursor_leave_event().

Here is the call graph for this function:

int BC_Menu::dispatch_translation_event (  ) 

Definition at line 186 of file bcmenu.C.

References active, BC_MenuPopup::dispatch_translation_event(), and menu_popup.

Referenced by BC_MenuBar::translation_event().

Here is the call graph for this function:

int BC_Menu::deactivate_menu (  ) 

Definition at line 298 of file bcmenu.C.

References active, BC_MenuPopup::deactivate_menu(), draw_title(), and menu_popup.

Referenced by BC_MenuBar::deactivate().

Here is the call graph for this function:

int BC_Menu::activate_menu (  ) 

Definition at line 195 of file bcmenu.C.

References BC_MenuPopup::activate_menu(), active, BC_WindowBase::display, draw_title(), h, menu_bar, menu_popup, BC_WindowBase::rootwin, top_level, w, x, and y.

Referenced by dispatch_button_press(), and dispatch_motion_event().

Here is the call graph for this function:

int BC_Menu::unhighlight (  ) 

Definition at line 309 of file bcmenu.C.

References draw_title(), and highlighted.

Referenced by dispatch_cursor_leave(), and BC_MenuBar::unhighlight().

Here is the call graph for this function:

void BC_Menu::draw_items (  ) 

Definition at line 219 of file bcmenu.C.

References active, BC_MenuPopup::draw_items(), and menu_popup.

Referenced by BC_MenuBar::draw_items().

Here is the call graph for this function:

int BC_Menu::draw_title (  )  [private]


Friends And Related Function Documentation

friend class BC_MenuBar [friend]

Definition at line 27 of file bcmenu.h.


Field Documentation

int BC_Menu::active [private]

char BC_Menu::text[1024] [private]

Definition at line 53 of file bcmenu.h.

Referenced by BC_MenuBar::add_menu(), and draw_title().

int BC_Menu::highlighted [private]

int BC_Menu::x [private]

int BC_Menu::y [private]

int BC_Menu::w [private]

int BC_Menu::h [private]


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

Generated on Mon Apr 28 14:14:18 2008 for Cinelerra by  doxygen 1.5.5