4 #include <Gui/CFMenuShell.h> 12 typedef sigc::slot<void, int&, int&, bool&> SlotPositionCalc;
14 CFMenu(
const Glib::RefPtr<Gio::MenuModel>& model);
18 const SlotPositionCalc& slot,
20 CFUInt32 activate_time,
21 const Glib::RefPtr<Gdk::Device>& device
22 = Glib::RefPtr<Gdk::Device>());
24 void popup(
const SlotPositionCalc& position_calc_slot,
26 CFUInt32 activate_time,
27 const Glib::RefPtr<Gdk::Device>& device
28 = Glib::RefPtr<Gdk::Device>());
30 void popup(CFUInt button,
31 CFUInt32 activate_time,
32 const Glib::RefPtr<Gdk::Device>& device
33 = Glib::RefPtr<Gdk::Device>());
36 Gdk::Gravity widget_anchor,
37 Gdk::Gravity menu_anchor,
38 const GdkEvent* trigger_event);
40 void popupAtPointer(
const GdkEvent* trigger_event);
48 void setActive(CFUInt index);
50 void setAccelPath(
const Glib::ustring& accel_path);
52 Glib::ustring getAccelPath();
58 void setTearoffState(
bool torn_off =
true);
60 bool getTearoffState();
62 void setTitle(
const Glib::ustring& title);
66 Glib::ustring getTitle();
68 void setScreen(
const Glib::RefPtr<Gdk::Screen>& screen);
74 CFUInt bottom_attach);
76 void setMonitor(
int monitor_num);
80 void reorderChild(
CFMenuItem& child,
int position);
82 void setReserveToggleSize(
bool reserve_toggle_size =
true);
84 bool getReserveToggleSize();
86 void attachToWidget(
CFWidget& attach_widget);
91 #endif // __CF_MENU_H__