Enlightenment CVS committal Author : dj2 Project : e17 Module : libs/ewl
Dir : e17/libs/ewl/src/bin/tests/image Modified Files: ewl_image_test.c Log Message: - Pull the tutorials out of the src/bin/tests/*/*.c files and move them to doc/tutorials. This way we don't end up with any test structures showing up in the Ewl docs. =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/bin/tests/image/ewl_image_test.c,v retrieving revision 1.6 retrieving revision 1.7 diff -u -3 -r1.6 -r1.7 --- ewl_image_test.c 6 Feb 2008 23:09:44 -0000 1.6 +++ ewl_image_test.c 26 Feb 2008 04:24:11 -0000 1.7 @@ -12,71 +12,6 @@ #include <string.h> #include <Ecore_File.h> -/** - * @addtogroup Ewl_Image - * @section image_tut Tutorial - * - * The Ewl_Image widget provides methods for displaying an image in an EWL - * application. The image widget also supports a limited set of methods for - * manipulating the displayed image. - * - * @code - * Ewl_Widget *image; - * image = ewl_image_new(); - * ewl_image_file_path_set(EWL_IMAGE(image), "/usr/share/ewl/image.png"); - * ewl_widget_show(image); - * @endcode - * - * After creating an image widget, the most common operation is to set the - * path or key on the widget. The key is only used if an edje is loaded as the - * image, indicating the group to load. This will cause the widget to setup - * its sizing information when it is realized based on the original image - * size. It is also possible to request the current file and key set on the - * image widget. - * - * @code - * void ewl_image_file_set(Ewl_Image *i, const char *im, const char *key); - * void ewl_image_file_path_set(Ewl_Image *i, const char *im); - * const char *ewl_image_file_path_get(Ewl_Image *i); - * void ewl_image_file_key_set(Ewl_Image *i, const char *key); - * const char *ewl_image_file_key_get(Ewl_Image *i); - * @endcode - * - * Along with the image to be displayed, the basic operations of scaling - * and tiling can be applied to the displayed image. Scaling can be applied on - * either a relative or absolute scale. The functions that refer to scale are - * a multiplier of the images set size, so 2.0 would result in an image double - * the original size. The size functions force the image to be scaled to - * specified dimensions. Setting a tile on an image causes the image to repeat - * when the specified dimensions are reached, the x and y coordinates indicate - * the starting offset within the available area where tiling begins. - * - * @code - * void ewl_image_scale_set(Ewl_Image *i, double wp, double hp); - * void ewl_image_scale_get(Ewl_Image *i, double *wp, double *hp); - * void ewl_image_size_set(Ewl_Image *i, int w, int h); - * void ewl_image_size_get(Ewl_Image *i, int *w, int *h); - * void ewl_image_tile_set(Ewl_Image *i, int x, int y, int w, int h); - * @endcode - * - * Two settings also impact the sizing, but are not explicit in how they - * determine the new size. The proportional setting causes the image to be - * displayed at the original aspect ratio of the specified image, regardless - * of scaling. The constrain setting sets a maximum size on the dimensions of - * an image, but will not scale the image if it's smaller than that size. - * - * @code - * void ewl_image_proportional_set(Ewl_Image *i, char p); - * char ewl_image_proportional_get(Ewl_Image *i); - * void ewl_image_constrain_set(Ewl_Image *i, unsigned int size); - * unsigned int ewl_image_constrain_get(Ewl_Image *i); - * @endcode - * - * Since the image is inherited from the base widget class, all of the - * standard widget and object operations can be applied to the image widget. - * This includes resizing, theming, color tinting and packing in containers. - */ - static Ecore_DList *images; static Ewl_Widget *image; ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs