diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2017-06-21 17:39:00 +0200 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2017-06-21 17:39:00 +0200 |
commit | f05524445914e31891ec227520d9bb3fe5857e2c (patch) | |
tree | 219f38ac0d3be60dda3613b892b51cae0fee9ec9 /src/gui/composite_widget.c | |
parent | e158c4832aa1d5dc8603fb9c33cac3f7cc19abc9 (diff) | |
download | abaos-f05524445914e31891ec227520d9bb3fe5857e2c.tar.gz abaos-f05524445914e31891ec227520d9bb3fe5857e2c.tar.bz2 |
improved VGA colors
added basics of a desktop widget class
Diffstat (limited to 'src/gui/composite_widget.c')
-rw-r--r-- | src/gui/composite_widget.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/composite_widget.c b/src/gui/composite_widget.c index e9cc166..afef28c 100644 --- a/src/gui/composite_widget.c +++ b/src/gui/composite_widget.c @@ -98,6 +98,8 @@ void composite_widget_on_mouse_move( void *obj, const int old_x, const int old_y composite_widget_t *widget = obj; widget_t *moved_out_from = NULL; + // TODO: have a mouse leave and mouse enter event instead + for( int i = 0; i < widget->nof_children; i++ ) { widget_t *child = widget->children[i]; if( child->vtable->contains_coordinate( child, old_x - widget->base.x, old_y - widget->base.y ) ) { |