stlab.adobe.com Adobe Systems Incorporated

platform_panel.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_WIDGET_PANEL_HPP
00010 #define ADOBE_WIDGET_PANEL_HPP
00011 
00012 /****************************************************************************************************/
00013 
00014 #include <adobe/future/macintosh_events.hpp>
00015 #include <adobe/future/widgets/headers/macintosh_metric_extractor.hpp>
00016 #include <adobe/future/widgets/headers/widget_utils.hpp>
00017 #include <adobe/macintosh_carbon_safe.hpp>
00018 
00019 #include <boost/function.hpp>
00020 
00021 /****************************************************************************************************/
00022 
00023 namespace adobe {
00024 
00025 /****************************************************************************************************/
00026 
00035 struct panel_t
00036 {
00038     typedef any_regular_t model_type;
00039 
00041     panel_t(const any_regular_t& show_value,
00042             theme_t                     theme);
00043 
00050     void measure(extents_t& result);
00051 
00052     void place(const place_data_t& place_data);
00054 
00061     void display(const any_regular_t& value);
00063 
00064 #ifndef ADOBE_NO_DOCUMENTATION
00065     void set_visible(bool visible);
00066 
00067     ::ControlRef               control_m;
00068     any_regular_t       show_value_m;
00069     theme_t                    theme_m;
00070     mutable metric_extractor_t metrics_m;
00071 #endif
00072 };
00073 
00074 /****************************************************************************************************/
00075 
00076 } // namespace adobe
00077 
00078 /****************************************************************************************************/
00079 
00080 #endif
00081 
00082 /****************************************************************************************************/

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