From bc50666e86d5739ccde633eb630cc75b3e0fcb71 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Tue, 7 Oct 2008 20:35:52 +0000 Subject: libui updates --- src/ui/button.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src/ui/button.h') diff --git a/src/ui/button.h b/src/ui/button.h index bdf310b..34c3ba4 100644 --- a/src/ui/button.h +++ b/src/ui/button.h @@ -25,14 +25,15 @@ public: /// print button description virtual void print(size_t indent); - /// handle keyboard input - virtual void event_keypress(unsigned int key, unsigned int modifier); - virtual void event_keyrelease(unsigned int key, unsigned int modifier); + /// handle keyboard events + virtual void keypress(unsigned int key, unsigned int modifier); + virtual void keyrelease(unsigned int key, unsigned int modifier); protected: - virtual void draw(); + /// draw the button border + virtual void draw_border(); - /// draw the button + /// draw the button text virtual void draw_text(); private: -- cgit v1.2.3