stlab.adobe.com Adobe Systems Incorporated

window_helper.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_WINDOW_HELPER_HPP
00010 #define ADOBE_WINDOW_HELPER_HPP
00011 
00012 /****************************************************************************************************/
00013 
00014 #include <adobe/config.hpp>
00015 
00016 #include <adobe/enum_ops.hpp>
00017 
00018 #include <boost/function.hpp>
00019 
00020 /****************************************************************************************************/
00021 
00022 namespace adobe {
00023 
00024 /****************************************************************************************************/
00025 
00038 enum window_style_t
00039 {
00043     window_style_moveable_modal_s,
00044 
00049     window_style_floating_s
00050 };
00051 
00052 /****************************************************************************************************/
00053 
00071 enum window_modality_t
00072 {
00075     window_modality_none_s,
00076 
00081     window_modality_system_s,
00082 
00085     window_modality_app_s,
00086 
00090     window_modality_window_s
00091 };
00092 
00093 /****************************************************************************************************/
00094 
00106 enum window_attributes_t
00107 {
00109     window_attributes_none_s                = 0,
00110 
00112     window_attributes_standard_handler_s    = 1 << 0,
00113 
00115     window_attributes_resizeable_s          = 1 << 1,
00116 
00118     window_attributes_live_resizeable_s     = 1 << 2,
00119 
00121     window_attributes_metal_s               = 1 << 3
00122 };
00123 
00124 /****************************************************************************************************/
00125 
00137 enum window_reposition_t
00138 {
00140     window_reposition_center_s,
00141 
00144     window_reposition_alert_s
00145 };
00146 
00147 /****************************************************************************************************/
00148 
00149 typedef boost::function<void (long, long)> window_resize_proc_t;
00150 typedef boost::function<bool ()>           window_close_proc_t;
00151 
00152 /****************************************************************************************************/
00153 
00154 ADOBE_DEFINE_BITSET_OPS(window_attributes_t)
00155 
00156 /****************************************************************************************************/
00157 
00158 } // namespace adobe
00159 
00160 /****************************************************************************************************/
00161 
00162 #endif
00163 
00164 /****************************************************************************************************/

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