stlab.adobe.com Adobe Systems Incorporated

display.hpp

Go to the documentation of this file.
00001 /*
00002     Copyright 2005-2007 Adobe Systems Incorporated
00003     Distributed under the MIT License (see accompanying file LICENSE_1_0_0.txt
00004     or a copy at http://stlab.adobe.com/licenses.html)
00005 */
00006 
00007 /****************************************************************************************************/
00008 
00009 #ifndef ADOBE_DISPLAY_HPP
00010 #define ADOBE_DISPLAY_HPP
00011 
00012 /****************************************************************************************************/
00013 
00014 #include <adobe/config.hpp>
00015 
00016 #include <adobe/future/platform_primitives.hpp>
00017 
00018 /****************************************************************************************************/
00019 
00020 namespace adobe {
00021 
00022 /****************************************************************************************************/
00023 
00024 struct display_t
00025 {
00026     display_t() :
00027         root_m(platform_display_type())
00028     { }
00029 
00030     void set_root(platform_display_type element)
00031         { root_m = element; }
00032 
00033     platform_display_type root()
00034         { return root_m; }
00035 
00036     template <typename DisplayElement>
00037     platform_display_type insert(platform_display_type& parent, const DisplayElement& element);
00038 
00039 private:
00040     platform_display_type root_m;
00041 };
00042 
00043 /****************************************************************************************************/
00044 
00045 display_t& get_main_display();
00046 
00047 /****************************************************************************************************/
00048 
00049 template <typename DisplayElement>
00050 platform_display_type insert(display_t& display, platform_display_type& parent, DisplayElement& element);
00051 
00052 /****************************************************************************************************/
00053 
00054 } // namespace adobe
00055 
00056 /****************************************************************************************************/
00057 
00058 #endif // ADOBE_DISPLAY_HPP
00059 
00060 /****************************************************************************************************/

Copyright © 2006-2007 Adobe Systems Incorporated.

Use of this website signifies your agreement to the Terms of Use and Online Privacy Policy.

Search powered by Google