10 #include <gwindow.hpp>
21 BelowParent, AboveParent, BelowMouse, AroundMouse
24 GMenu(GString
const& css =
"");
27 GMenu* toMenu()
override {
return this;}
30 GMenu&
show(
bool state =
true)
override;
35 virtual void show(GEvent&,
bool autoplace);
38 float x()
const override {
return frame_.x;}
39 float y()
const override {
return frame_.y;}
42 void setPseudoParent(
Gadget* parent) {parent_ = parent;}
43 void setPlacement(
MenuPlacement placement) {place_ = placement;}
45 using GType = GadgetType_<GMenu,GBox>;
47 GType& type()
const override {
return Type();}
51 Gadget& createDefaultItem(GString
const& arg)
override;
59 GMenu& Menu(GString
const& css =
"");
73 void show(
GEvent&,
bool autoplace)
override;
77 GType& type()
const override {
return Type();}
81 GPieMenu& PieMenu(GString
const& css =
"");