Beispiel #1
0
 public CarbonHICommand(uint commandID, HIMenuItem item)
 {
     windowRef       = controlRef = IntPtr.Zero;
     this.commandID  = commandID;
     this.menuItem   = item;
     this.attributes = CarbonHICommandAttributes.FromMenu;
 }
Beispiel #2
0
        public static uint GetMenuItemReferenceConstant(HIMenuItem item)
        {
            uint val;

            CheckResult(GetMenuItemRefCon(item.MenuRef, item.Index, out val));
            return(val);
        }
Beispiel #3
0
        public static uint GetMenuItemCommandID(HIMenuItem item)
        {
            uint id;

            CheckResult(GetMenuItemCommandID(item.MenuRef, item.Index, out id));
            return(id);
        }
Beispiel #4
0
 public static void SetMenuItemReferenceConstant(HIMenuItem item, uint value)
 {
     CheckResult(SetMenuItemRefCon(item.MenuRef, item.Index, value));
 }
Beispiel #5
0
 public static void ChangeMenuItemAttributes(HIMenuItem item, MenuItemAttributes toSet, MenuItemAttributes toClear)
 {
     CheckResult(ChangeMenuItemAttributes(item.MenuRef, item.Index, toSet, toClear));
 }
Beispiel #6
0
 public static void DisableMenuItem(HIMenuItem item)
 {
     CheckResult(DisableMenuItem(item.MenuRef, item.Index));
 }