Beispiel #1
0
// 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)
	}
}
Beispiel #2
0
func (item *Item) OptsOff(opt ItemOptions) bool {
	return isOk(C.item_opts_off((*C.ITEM)(item), (C.Item_Options)(opt)))
}
Beispiel #3
0
func (i *Item) OptsOff(opt ItemOptions) error {
	if C.item_opts_off(i.item, opt.itemOptions) == ERR {
		return Error
	}
	return nil
}