Logo Search packages:      
Sourcecode: blender version File versions

bool GHOST_SystemCarbon::handleMenuCommand ( GHOST_TInt32  menuResult  )  [protected]

Handles a Mac menu command.

Parameters:
menuResult A Mac menu/item identifier.
Returns:
Indication whether the event was handled.

Definition at line 928 of file GHOST_SystemCarbon.cpp.

Referenced by handleMouseDown().

{
      short       menuID;
      short       menuItem;
      UInt32            command;
      bool        handled;
      OSErr       err;
      
      menuID = HiWord(menuResult);
      menuItem = LoWord(menuResult);

      err = ::GetMenuItemCommandID(::GetMenuHandle(menuID), menuItem, &command);

      handled = false;
      
      if (err || command == 0) {
      }
      else {
            switch(command) {
            }
      }

      ::HiliteMenu(0);
    return handled;
}


Generated by  Doxygen 1.6.0   Back to index