public static uint GetMenuItemReferenceConstant(HIMenuItem item) { uint val; CheckResult(GetMenuItemRefCon(item.MenuRef, item.Index, out val)); return(val); }
public static uint GetMenuItemCommandID(HIMenuItem item) { uint id; CheckResult(GetMenuItemCommandID(item.MenuRef, item.Index, out id)); return(id); }
public CarbonHICommand(uint commandID, HIMenuItem item) { windowRef = controlRef = IntPtr.Zero; this.commandID = commandID; this.menuItem = item; this.attributes = CarbonHICommandAttributes.FromMenu; }
public static void SetMenuItemReferenceConstant(HIMenuItem item, uint value) { CheckResult(SetMenuItemRefCon(item.MenuRef, item.Index, value)); }
public static void ChangeMenuItemAttributes(HIMenuItem item, MenuItemAttributes toSet, MenuItemAttributes toClear) { CheckResult(ChangeMenuItemAttributes(item.MenuRef, item.Index, toSet, toClear)); }
public static void DisableMenuItem(HIMenuItem item) { CheckResult(DisableMenuItem(item.MenuRef, item.Index)); }