summaryrefslogtreecommitdiff
path: root/src/lib/elm_plug.eo
blob: a6ab59ed1165d3c7eedf8c7c16b871b120dca10c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
class Elm_Plug (Elm_Widget)
{
   eo_prefix: elm_obj_plug;
   data: null;
   properties {
      image_object {
         get {
            /*@
            Get the basic Evas_Image object from this object (widget).

            @return The inlined image object, or NULL if none exists

            This function allows one to get the underlying @c Evas_Object of type
            Image from this elementary widget. It can be useful to do things like get
            the pixel data, save the image to a file, etc.

            @note Be careful to not manipulate it, as it is under control of
            elementary.

            @ingroup Plug */
            return Evas_Object *;
         }
      }
   }
   methods {
      connect {
         /*@
         Connect a plug widget to service provided by socket image.

         @return (@c EINA_TRUE = success, @c EINA_FALSE = error)

         @ingroup Plug */

         return Eina_Bool;
         params {
            @in const char *svcname; /*@ The service name to connect to set up by the socket. */
            @in int svcnum; /*@ The service number to connect to (set up by socket). */
            @in Eina_Bool svcsys; /*@ Boolean to set if the service is a system one or not (set up by socket). */
         }
      }
   }
   implements {
      class.constructor;
      Eo_Base.constructor;
      Evas_Object_Smart.add;
      Elm_Widget.theme_apply;
      Elm_Widget.on_focus;
   }
   events {
      clicked;
      image,deleted;
      image,resized; /*@ ii */
   }

}