image.hpp00001
00002
00003
00004
00005
00006
00007
00008
00009 #ifndef ADOBE_IMAGE_T_HPP
00010 #define ADOBE_IMAGE_T_HPP
00011
00012
00013
00014 #include <adobe/future/widgets/headers/widget_utils.hpp>
00015 #include "metric_extractor.hpp"
00016
00017 #include <adobe/eve.hpp>
00018 #include <adobe/future/carbon/carbon_safe.hpp>
00019 #include <adobe/future/image_slurp.hpp>
00020 #include <adobe/future/widgets/headers/widget_factory.hpp>
00021
00022
00023
00024 namespace adobe {
00025
00026
00027 #ifndef ADOBE_NO_DOCUMENTATION
00028 struct basic_sheet_t;
00029 struct sheet_t;
00030 struct assemblage_t;
00031 #endif
00032
00033
00043 struct image_t
00044 {
00045 typedef boost::gil::rgba8_image_t model_type;
00046
00048 image_t(const model_type& image);
00049
00050 void display(const model_type& value);
00051
00052 #ifndef ADOBE_NO_DOCUMENTATION
00053 auto_control_t control_m;
00054 mutable metric_extractor_t metrics_m;
00055 model_type image_m;
00056 #endif
00057 };
00058
00059
00060
00069 void measure(image_t& value, extents_t& result);
00070
00071 void measure_vertical(image_t& value, extents_t& calculated_horizontal,
00072 const place_data_t& placed_horizontal);
00073
00074 void place(image_t& value, const place_data_t& place_data);
00076
00077
00078 #ifndef ADOBE_NO_DOCUMENTATION
00079
00080
00081
00082 void enable(image_t& value, bool make_enabled);
00083 void set(image_t& value, boost::gil::rgba8_image_t& image);
00084 #endif
00085
00086
00087 }
00088
00089
00090
00091 #endif
00092
00093
|