17 #ifndef _upiemenu_hpp_ 18 #define _upiemenu_hpp_ 1 19 #include <ubit/uboxgeom.hpp> 20 #include <ubit/umenu.hpp> 75 static UStyle* createStyle();
128 bool isSpringMode()
const {
return spring_mode;}
129 void setSpringMode(
bool state =
true) {spring_mode = state;}
133 UColor& pieColor() {
return *ppie_color;}
134 UColor& pieBorderColor() {
return *ppie_border_color;}
135 UColor& sliceColor() {
return *pslice_color;}
136 UColor& centerColor() {
return *pcenter_color;}
137 UColor& centerBorderColor() {
return *pcenter_border_color;}
139 ULength& pieRadius() {
return pie_radius;}
140 ULength& centerRadius() {
return center_radius;}
141 ULength& itemRadius() {
return item_radius;}
172 enum MenuType {CONCENTRIC, COMPOUND, MULTISTROKE};
174 void setMenuType(
int);
175 MenuType getMenuType(
int) {
return MenuType(menu_style);}
178 float getScaleValue();
189 virtual short getItemFromPos(
const UPoint&)
const;
207 unsigned char menu_style;
208 unsigned char spring_mode:1, ctlmenu_mode:1, novice_mode:1, in_show_function:1;
210 unsigned long show_delay;
218 ULength pie_radius, center_radius, item_radius;
219 uptr<UColor> ppie_color, pcenter_color, pslice_color, ppie_border_color, pcenter_border_color;
Box container.
Definition: ubox.hpp:64
2D Point.
Definition: ugeom.hpp:25
Length of positions (UPos), sizes (USize) and padding (UPadding)
Definition: ulength.hpp:59
Ubit Event class.
Definition: uevent.hpp:30
Display Context.
Definition: udisp.hpp:44
Color attribute of an element or a widget.
Definition: ucolor.hpp:73
Paint event.
Definition: uevent.hpp:377
lightweight general purpose container.
Definition: uelem.hpp:44
Smart Pointer for UObject instances (.
Definition: uobject.hpp:365
Definition: uhardfont.hpp:31
Widget scale.
Definition: uboxgeom.hpp:31
Base class for windows and menus.
Definition: uwin.hpp:47
Widget Size.
Definition: uboxgeom.hpp:228
Resize event.
Definition: uevent.hpp:418
Compiled Object Style.
Definition: ustyle.hpp:44
mouse events
Definition: uevent.hpp:172