Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r51832 - sandbox-branches/andreo/guigl/libs/guigl/example
From: andreytorba_at_[hidden]
Date: 2009-03-18 07:52:33


Author: andreo
Date: 2009-03-18 07:52:32 EDT (Wed, 18 Mar 2009)
New Revision: 51832
URL: http://svn.boost.org/trac/boost/changeset/51832

Log:
modified event propagation order so the events are processed in the reverse order of the child widgets being drawn
Added:
   sandbox-branches/andreo/guigl/libs/guigl/example/overlapping_example.cpp (contents, props changed)

Added: sandbox-branches/andreo/guigl/libs/guigl/example/overlapping_example.cpp
==============================================================================
--- (empty file)
+++ sandbox-branches/andreo/guigl/libs/guigl/example/overlapping_example.cpp 2009-03-18 07:52:32 EDT (Wed, 18 Mar 2009)
@@ -0,0 +1,27 @@
+/*=================================---------------------------------------------
+ Copyright 2009 Stjepan Rajko
+
+ Distributed under the Boost Software License, Version 1.0.
+ (See accompanying file LICENSE_1_0.txt or copy at
+ http://www.boost.org/LICENSE_1_0.txt)
+-----------------------------------------------===============================*/
+
+
+#include <boost/guigl/application.hpp>
+#include <boost/guigl/window.hpp>
+
+#include <boost/guigl/widget/labeled_button.hpp>
+
+using namespace boost::guigl;
+
+window example_window(( _label = "overlapping example", _size=size_type(300,300) ));
+
+int main()
+{
+ example_window << new widget::labeled_button(( _label = "Bottom", _position=position_type(0,0), _size=size_type(200,200) ));
+ example_window << new widget::labeled_button(( _label = "Top", _position=position_type(100,100), _size=size_type(200,200) ));
+
+ application::run();
+
+ return 0;
+}


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk