stlab.adobe.com Adobe Systems Incorporated

separator_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_SEPARATOR_FACTORY_HPP
00010 #define ADOBE_SEPARATOR_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_separator(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& separator_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.horizontal().alignment_m = layout_attributes_t::align_fill;
00043     }
00044 
00045     return result;
00046 }
00047 
00048 /****************************************************************************************************/
00049 
00050 } // namespace adobe
00051 
00052 /****************************************************************************************************/
00053 
00054 #endif
00055 
00056 /****************************************************************************************************/

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