stlab.adobe.com Adobe Systems Incorporated

optional_panel_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_OPTIONAL_PANEL_FACTORY_HPP
00010 #define ADOBE_OPTIONAL_PANEL_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_optional_panel(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& optional_panel_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 = layout_attributes_t::place_column;
00043         result.vertical().alignment_m = layout_attributes_t::align_fill;
00044         result.horizontal().alignment_m = layout_attributes_t::align_fill;
00045         result.vertical().suppress_m = true;
00046     }
00047 
00048     return result;
00049 }
00050 
00051 /****************************************************************************************************/
00052 
00053 } // namespace adobe
00054 
00055 /****************************************************************************************************/
00056 
00057 #endif
00058 
00059 /****************************************************************************************************/

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