// Selectable turns on/off whether a menu option is "greyed out" func (mi *MenuItem) Selectable(on bool) { if on { C.item_opts_on(mi.item, O_SELECTABLE) } else { C.item_opts_off(mi.item, O_SELECTABLE) } }
func (item *Item) OptsOff(opt ItemOptions) bool { return isOk(C.item_opts_off((*C.ITEM)(item), (C.Item_Options)(opt))) }
func (i *Item) OptsOff(opt ItemOptions) error { if C.item_opts_off(i.item, opt.itemOptions) == ERR { return Error } return nil }