Advertisement
Guest User

Untitled

a guest
Nov 17th, 2013
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 8.96 KB | None | 0 0
  1. Evas_Image =
  2. {
  3.      inherit
  4.      {
  5.           Evas_Object;
  6.      }
  7.      properties
  8.      {
  9.            /* Set the DPI resolution of an image object's source image. */
  10.            rw load_dpi(
  11.                double dpi /* in */
  12.           );
  13.            /* Apply the source object's clip to the proxy */
  14.            rw source_clip(
  15.                Eina_Bool source_clip /* in */
  16.           );
  17.            /* Set whether the image object's fill property should track the object's size. */
  18.            rw filled(
  19.                Eina_Bool filled /* in */
  20.           );
  21.            /* Set the content hint setting of a given image object of the canvas. */
  22.            rw content_hint(
  23.                Evas_Image_Content_Hint hint /* in */
  24.           );
  25.            /* Inform a given image object to load a selective region of its source image. */
  26.            rw load_region(
  27.                int x /* in */,
  28.                int y /* in */,
  29.                int w /* in */,
  30.                int h /* in */
  31.           );
  32.            /* Enable or disable alpha channel usage on the given image object. */
  33.            rw alpha(
  34.                Eina_Bool alpha /* in */
  35.           );
  36.            /* Set the size of a given image object's source image, when loading it. */
  37.            rw load_size(
  38.                int w /* in */,
  39.                int h /* in */
  40.           );
  41.            /* Set the dimensions for an image object's border, a region which won't ever be scaled together with its center. */
  42.            rw border(
  43.                int l /* in */,
  44.                int r /* in */,
  45.                int t /* in */,
  46.                int b /* in */
  47.           );
  48.            /* Sets whether to use high-quality image scaling algorithm on the given image object. */
  49.            rw smooth_scale(
  50.                Eina_Bool smooth_scale /* in */
  51.           );
  52.            /* Sets the scaling factor (multiplier) for the borders of an image object. */
  53.            rw border_scale(
  54.                double scale /* in */
  55.           );
  56.            /* Mark whether the given image object is dirty (needs to be redrawn). */
  57.            rw pixels_dirty(
  58.                Eina_Bool dirty /* in */
  59.           );
  60.            /* Set the video surface linked to a given image of the canvas */
  61.            rw video_surface(
  62.                Evas_Video_Surface* surf /* in */
  63.           );
  64.            /* Set the video surface capabilities to a given image of the canvas */
  65.            rw video_surface_caps(
  66.                unsigned int caps /* in */
  67.           );
  68.            /* Define if the orientation information in the image file should be honored. */
  69.            rw load_orientation(
  70.                Eina_Bool enable /* in */
  71.           );
  72.            /* Sets the tiling mode for the given evas image object's fill. */
  73.            rw fill_spread(
  74.                Evas_Fill_Spread spread /* in */
  75.           );
  76.            /* Set the source file from where an image object must fetch the real image data (it may be an Eet file, besides pure image ones). */
  77.            rw file(
  78.                char* file /* The image file path */,
  79.                char* key /* The image key in @p file (if its an Eet one), or @c */
  80.           );
  81.            /* Sets borders) should be drawn when Evas is rendering it. */
  82.            rw border_center_fill(
  83.                Evas_Border_Fill_Mode fill /* in */
  84.           );
  85.            /* Sets the size of the given image object. */
  86.            rw size(
  87.                int w /* in */,
  88.                int h /* in */
  89.           );
  90.            /* Set the source object to be shown or hidden. */
  91.            rw source_visible(
  92.                Eina_Bool visible /* in */
  93.           );
  94.            /* Set how to fill an image object's drawing rectangle given the (real) image bound to it. */
  95.            rw fill(
  96.                Evas_Coord x /* in */,
  97.                Evas_Coord y /* in */,
  98.                Evas_Coord w /* in */,
  99.                Evas_Coord h /* in */
  100.           );
  101.            /* Set the native surface of a given image of the canvas */
  102.            rw native_surface(
  103.                Evas_Native_Surface* surf /* in */
  104.           );
  105.            /* Set the scale down factor of a given image object's source image, when loading it. */
  106.            rw load_scale_down(
  107.                int scale_down /* in */
  108.           );
  109.            /* Set the scale hint of a given image of the canvas. */
  110.            rw scale_hint(
  111.                Evas_Image_Scale_Hint hint /* in */
  112.           );
  113.            /* Set events to be repeated to the source object. */
  114.            rw source_events(
  115.                Eina_Bool source /* in */
  116.           );
  117.            /* Set the colorspace of a given image of the canvas. */
  118.            rw colorspace(
  119.                Evas_Colorspace cspace /* in */
  120.           );
  121.            /* Set the callback function to get pixels from a canvas' image. */
  122.            wo pixels_get_callback_set(
  123.                Evas_Object_Image_Pixels_Get_Cb func /* in */,
  124.                void* data /* in */
  125.           );
  126.            /* Set the source mmaped file from where an image object must fetch the real image data (it may be any Eina_File). */
  127.            wo mmap_set(
  128.                Eina_File* f /* in */,
  129.                char* key /* in */
  130.           );
  131.            /* Replaces the raw image data of the given image object. */
  132.            wo data_copy_set(
  133.                void* data /* in */
  134.           );
  135.            /* Set the frame to current frame of an image object */
  136.            wo animated_frame_set(
  137.                int frame_index /* in */
  138.           );
  139.            /* Get the support state of a given image */
  140.            ro region_support_get(
  141.                Eina_Bool* region /* out */
  142.           );
  143.            /* Retrieves a number representing any error that occurred during the last loading of the given image object's source image. */
  144.            ro load_error_get(
  145.                Evas_Load_Error* load_error /*  */
  146.           );
  147.            /* Get the total number of frames of the image object. */
  148.            ro animated_frame_count_get(
  149.                int* frame_count /* out */
  150.           );
  151.            /* Retrieves the row stride of the given image object. */
  152.            ro stride_get(
  153.                int* stride /* out */
  154.           );
  155.            /* Check if an image object can be animated (have multiple frames) */
  156.            ro animated_get(
  157.                Eina_Bool* animated /* out */
  158.           );
  159.            /* Get the kind of looping the image object does. */
  160.            ro animated_loop_type_get(
  161.                Evas_Image_Animated_Loop_Hint* hint /* out */
  162.           );
  163.            /* Get the number times the animation of the object loops. */
  164.            ro animated_loop_count_get(
  165.                int* loop_count /* out */
  166.           );
  167.      }
  168.      methods
  169.      {
  170.            /* Set the source object on an image object to used as a */
  171.           source_set(
  172.                in Evas_Object* src /* in */,
  173.                out Eina_Bool* result /* out */
  174.           );
  175.            /* Get the current source object of an image object. */
  176.           source_get(
  177.                out Evas_Object** src /* out */
  178.           );
  179.            /* Begin preloading an image object's image data in the background */
  180.           preload_begin(
  181.           );
  182.            /* Mark a sub-region of the given image object to be redrawn. */
  183.           data_update_add(
  184.                in int x /* in */,
  185.                in int y /* in */,
  186.                in int w /* in */,
  187.                in int h /* in */
  188.           );
  189.            /* Get the duration of a sequence of frames. */
  190.           animated_frame_duration_get(
  191.                in int start_frame /* in */,
  192.                in int frame_num /* in */,
  193.                out double* frame_duration /* out */
  194.           );
  195.            /* Save the given image object's contents to an (image) file. */
  196.           save(
  197.                in char* file /* in */,
  198.                in char* key /* in */,
  199.                in char* flags /* in */,
  200.                out Eina_Bool* result /* out */
  201.           );
  202.            /* Sets the raw image data of the given image object. */
  203.           data_set(
  204.                in void* data /* in */
  205.           );
  206.            /* Get a pointer to the raw image data of the given image object. */
  207.           data_get(
  208.                in Eina_Bool for_writing /* in */,
  209.                out void** data /* out */
  210.           );
  211.            /* Cancel preloading an image object's image data in the background */
  212.           preload_cancel(
  213.           );
  214.            /* Converts the raw image data of the given image object to the specified colorspace. */
  215.           data_convert(
  216.                in Evas_Colorspace to_cspace /* in */,
  217.                out void** data /* out */
  218.           );
  219.            /* Import pixels from given source to a given canvas image object. */
  220.           pixels_import(
  221.                in Evas_Pixel_Import_Source* pixels /* in */,
  222.                out Eina_Bool* result /* out */
  223.           );
  224.            /* Reload an image object's image data. */
  225.           reload(
  226.           );
  227.      }
  228.  
  229. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement