aboutsummaryrefslogtreecommitdiffstats
path: root/src/gwin/label.c
diff options
context:
space:
mode:
authorinmarket <andrewh@inmarket.com.au>2013-07-06 01:45:24 +1000
committerinmarket <andrewh@inmarket.com.au>2013-07-06 01:45:24 +1000
commitab44f32859ac61072a561869787089e13adaf509 (patch)
tree4a3e03305b94638d90dff64127abc6c9a1c7c4df /src/gwin/label.c
parentf3f9b7dc015b5afc82fba6682e780dcc72f9241d (diff)
downloaduGFX-ab44f32859ac61072a561869787089e13adaf509.tar.gz
uGFX-ab44f32859ac61072a561869787089e13adaf509.tar.bz2
uGFX-ab44f32859ac61072a561869787089e13adaf509.zip
Remove widget structure members when they are not needed for input tracking
Also doco update for Enabled Flag
Diffstat (limited to 'src/gwin/label.c')
-rw-r--r--src/gwin/label.c42
1 files changed, 24 insertions, 18 deletions
diff --git a/src/gwin/label.c b/src/gwin/label.c
index e757892d..cd469210 100644
--- a/src/gwin/label.c
+++ b/src/gwin/label.c
@@ -62,24 +62,30 @@ static const gwidgetVMT labelVMT = {
0, // The after-clear routine
},
gwinLabelDefaultDraw, // default drawing routine
- {
- 0, // Process mose down events (NOT USED)
- 0, // Process mouse up events (NOT USED)
- 0, // Process mouse move events (NOT USED)
- },
- {
- 0, // No toggle role
- 0, // Assign Toggles (NOT USED)
- 0, // Get Toggles (NOT USED)
- 0, // Process toggle off event (NOT USED)
- 0, // Process toggle on event (NOT USED)
- },
- {
- 0, // No dial roles
- 0, // Assign Dials (NOT USED)
- 0, // Get Dials (NOT USED)
- 0, // Procees dial move events (NOT USED)
- }
+ #if GINPUT_NEED_MOUSE
+ {
+ 0, // Process mose down events (NOT USED)
+ 0, // Process mouse up events (NOT USED)
+ 0, // Process mouse move events (NOT USED)
+ },
+ #endif
+ #if GINPUT_NEED_TOGGLE
+ {
+ 0, // No toggle role
+ 0, // Assign Toggles (NOT USED)
+ 0, // Get Toggles (NOT USED)
+ 0, // Process toggle off event (NOT USED)
+ 0, // Process toggle on event (NOT USED)
+ },
+ #endif
+ #if GINPUT_NEED_DIAL
+ {
+ 0, // No dial roles
+ 0, // Assign Dials (NOT USED)
+ 0, // Get Dials (NOT USED)
+ 0, // Procees dial move events (NOT USED)
+ },
+ #endif
};
GHandle gwinLabelCreate(GLabelWidget *widget, GWidgetInit *pInit) {