aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/elementary/elm_plug.eo
blob: 9e3a60ff80a2e6aca69918d3f1290c3bd225f34e (plain) (blame)
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
class Elm.Plug (Elm.Widget, Efl.Ui.Clickable)
{
   legacy_prefix: elm_plug;
   eo_prefix: elm_obj_plug;
   event_prefix: elm_plug;
   data: null;
   methods {
      @property image_object {
         get {
            [[Get the basic Evas_Image object from this object (widget).

              This function allows one to get the underlying 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.
            ]]
            return: Evas.Object; [[The inlined image object or $null.]]
         }
      }
      connect {
         [[Connect a plug widget to service provided by socket image.]]
         return: bool; [[$true on success, $false on error.]]
         params {
            @in svcname: string; [[The service name to connect to set up by the socket.]]
            @in svcnum: int; [[The service number to connect to (set up by socket).]]
            @in svcsys: bool; [[Boolean to set if the service is a system one or not (set up by socket).]]
         }
      }
   }
   implements {
      class.constructor;
      Eo.Base.constructor;
      Efl.Canvas.Group.group_add;
      Elm.Widget.theme_apply;
      Elm.Widget.on_focus;
   }
   events {
      image,deleted;
      image,resized; [[ii]]
   }

}