code: func (i *MenuItem) SetVisible(visible bool) (err error) {
  	if err = i.isActionable(); err != nil {
  		return
  	}
  	i.o.Visible = PtrBool(visible)
  	_, err = synchronousEvent(i.c, i, i.w, Event{Name: EventNameMenuItemCmdSetVisible, TargetID: i.id, MenuItemOptions: &MenuItemOptions{Visible: i.o.Visible}}, EventNameMenuItemEventVisibleSet)
  	return
  }
docs: // SetVisible sets the visible attribute