Next: Virtual member functions
Up: Mouse
Previous: Internal data structures
- int mouse_moved(int b1Down, int b2Down) - performs the
necessary action when the mouse is moved while a button is pressed. The
arguments indicate which buttons are currently down.
- void create_popup_menu(void) - goes through the definitions
of the pop-up menu, and creates a PopupMenu object to store this
data in the proper order and format.
- void create_key_commands(void) - creates the initial
list of keyboard shortcuts; this is only done when the Mouse is
initialized.
- void stop_rotation(void) - sets the current angular velocity
to zero.
- int x(void) - returns the current x position of the
Mouse, as measured from the lower-left corner. This just calls a
similar (but virtual) function in DisplayDevice.
- int y(void) - as as x(), but for the vertical position.
- int button_down(int) - returns the current state of the
given button.
- int move_mode(MoveMode, int = 0) - sets the current mouse
mode. If the new mode is PICKING or LIGHT, the second argument
must be given to indicate which picking mode or light. Otherwise, the
second argument is ignored.
- MoveMode curr_move_mode(void) - returns current mode.
- char *move_mode_name(MoveMode) - returns a string describing
the specified mode.
- int curr_pick_mode(void) - returns current picking mode, or
-1 if the current mouse mode is not PICKING.
- int picking(void) - returns TRUE if somthing is being
pickied, or FALSE otherwise.
- int create_user_menu(char *label) - indicates that a new
user-customizable submenu should be added to the main menu, with the
given label. The new menu will be initially empty.
- int add_user_menu_item(char *text, char *txtcmd) - adds
a new user menu item to the main user submenu ... the name in the menu will
be `text', and the command executed when that menu option is
chosen is `txtcmd'.
- int add_user_menu_separator(void) - puts in a separator at the current end of the main user submenu.
- int add_user_submenu_item(char *submenu, char *text, char *txtcmd) - adds the command `txtcmd' to the submenu `submenu', under the
name of `text' in that submenu.
- int add_user_submenu_separator(char *submenu) - adds a
separator to the end of the given submenu.
- int add_user_key_command(char, const char *) - adds a new
keyboard shortcut (or replaces a previous one), for the given key.
Next: Virtual member functions
Up: Mouse
Previous: Internal data structures
Justin Gullingsrud
Tue Apr 6 09:26:48 CDT 1999