stlab.adobe.com Adobe Systems Incorporated

platform_radio_button.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_RADIO_BUTTON_HPP
00010 #define ADOBE_WIDGET_RADIO_BUTTON_HPP
00011 
00012 /****************************************************************************************************/
00013 
00014 #include <adobe/config.hpp>
00015 
00016 #define WINDOWS_LEAN_AND_MEAN 1
00017 #include <windows.h>
00018 
00019 #include <adobe/any_regular.hpp>
00020 #include <adobe/extents.hpp>
00021 #include <adobe/layout_attributes.hpp>
00022 #include <adobe/widget_attributes.hpp>
00023 
00024 #include <boost/function.hpp>
00025 
00026 #include <string>
00027 
00028 /****************************************************************************************************/
00029 
00030 namespace adobe {
00031 
00032 /****************************************************************************************************/
00033 
00034 struct radio_button_t
00035 {
00036     typedef any_regular_t                      model_type;
00037     typedef boost::function<void (const model_type&)> setter_type;
00038 
00039     radio_button_t(const std::string&          name,
00040                    const std::string&          alt_text,
00041                    const any_regular_t& set_value,
00042                    theme_t              theme);
00043 
00044     void measure(extents_t& result);
00045 
00046     void place(const place_data_t& place_data);
00047 
00048     void enable(bool make_enabled);
00049 
00050     void display(const any_regular_t& value);
00051 
00052     void monitor(const setter_type& proc);
00053 
00054     HWND                 control_m;
00055     std::string          name_m;
00056     std::string          alt_text_m;
00057     any_regular_t set_value_m;
00058     theme_t       theme_m;
00059     setter_type          hit_proc_m;
00060     any_regular_t last_m;
00061 };
00062 
00063 /****************************************************************************************************/
00064 
00065 } // namespace adobe
00066 
00067 /****************************************************************************************************/
00068 
00069 #endif
00070 
00071 /****************************************************************************************************/

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