|
From: Foster B. <fos...@us...> - 2005-04-13 16:21:58
|
Update of /cvsroot/adobe-source/sandbox/adobe-source/adobe/test/visual/headers/mac In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2921/adobe-source/adobe/test/visual/headers/mac Modified Files: metrics.hpp ui_core_implementation.hpp Log Message: Beginning widget library documenation; more config.hpp options (thanks Boost!) Index: metrics.hpp =================================================================== RCS file: /cvsroot/adobe-source/sandbox/adobe-source/adobe/test/visual/headers/mac/metrics.hpp,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** metrics.hpp 12 Apr 2005 17:24:46 -0000 1.1 --- metrics.hpp 13 Apr 2005 16:21:15 -0000 1.2 *************** *** 13,16 **** --- 13,18 ---- #include <adobe/dictionary_fwd.hpp> + #include <adobe/name_fwd.hpp> + #include <string> /****************************************************************************************************/ *************** *** 20,24 **** /****************************************************************************************************/ ! dictionary_t widget_metrics(const dictionary_t& context); /****************************************************************************************************/ --- 22,26 ---- /****************************************************************************************************/ ! dictionary_t widget_metrics(const std::string& xstr, const dictionary_t& context); /****************************************************************************************************/ Index: ui_core_implementation.hpp =================================================================== RCS file: /cvsroot/adobe-source/sandbox/adobe-source/adobe/test/visual/headers/mac/ui_core_implementation.hpp,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** ui_core_implementation.hpp 12 Apr 2005 17:24:46 -0000 1.4 --- ui_core_implementation.hpp 13 Apr 2005 16:21:16 -0000 1.5 *************** *** 17,21 **** #include <adobe/future/memory.hpp> #include <adobe/rectangle.hpp> ! #include <adobe/dictionary_fwd.hpp> /****************************************************************************************************/ --- 17,22 ---- #include <adobe/future/memory.hpp> #include <adobe/rectangle.hpp> ! #include <adobe/dictionary.hpp> ! #include <adobe/array.hpp> /****************************************************************************************************/ *************** *** 52,57 **** --- 53,75 ---- /****************************************************************************************************/ + /*! + \defgroup widget_metrics_mac Mac Widget Metrics + \ingroup widget_lib + + This describes the widget metric system for the Mac. Wooo-ha! + */ + struct metric_extractor_t { + enum array_index_t + { + index_left = 0, + index_top = 1, + index_right = 2, + index_bottom = 3, + index_width = index_left, + index_height = index_top + }; + explicit metric_extractor_t(const dictionary_t& dictionary) : dictionary_m(dictionary) *************** *** 67,70 **** --- 85,100 ---- } + long operator () (const name_t& tag, array_index_t index) const + { + adobe::array_t array_result; + long result(0); + + dictionary_m.get(tag, array_result); + + array_result.get(std::size_t(index), result); + + return result; + } + private: dictionary_t dictionary_m; |