stlab.adobe.com Adobe Systems Incorporated

group_factory.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_GROUP_FACTORY_HPP
00010 #define ADOBE_GROUP_FACTORY_HPP
00011 
00012 #include <adobe/dictionary.hpp>
00013 
00014 /****************************************************************************************************/
00015 
00016 namespace adobe {
00017 
00018 /****************************************************************************************************/
00019 
00020 struct widget_node_t;
00021 struct factory_token_t;
00022 class widget_factory_t;
00023 
00024 /****************************************************************************************************/
00025 
00026 widget_node_t make_group(const dictionary_t&     parameters, 
00027                          const widget_node_t&    parent, 
00028                          const factory_token_t&  token,
00029                          const widget_factory_t& factory);
00030 
00031 /****************************************************************************************************/
00032 
00033 inline const layout_attributes_t& group_layout_attributes()
00034 {
00035     static layout_attributes_t result;
00036     static bool                       inited(false);
00037 
00038     if (!inited)
00039     {
00040         inited = true;
00041 
00042         result.placement_m = eve_t::place_column;
00043         set_margin(result, 10); /* REVISIT FIXED VALUE */
00044     }
00045 
00046     return result;
00047 }
00048 
00049 /****************************************************************************************************/
00050 
00051 } // namespace adobe
00052 
00053 /****************************************************************************************************/
00054 
00055 #endif
00056 
00057 /****************************************************************************************************/

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