summaryrefslogtreecommitdiff
path: root/src/lib/efl/interfaces/efl_content.eo
blob: d23ac388a4ca2521d3e8db1ff2be6b4f4dbb2507 (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
interface Efl.Content
{
   [[Common interface for objects that have a single sub-object as content.

     This is used for the default content part of widgets, as well as for
     individual parts through @Efl.Part.

     @since 1.22
   ]]
   methods {
      @property content {
         [[Sub-object currently set as this object's single content.

           If it is set multiple times, previous sub-objects are removed first.
           Therefore, if an invalid $content is set the object will
           become empty (it will have no sub-object).
         ]]
         set {
            return: bool; [[$true if $content was successfully swallowed.]]
         }
         get {}
         values {
            content: Efl.Gfx.Entity; [[The sub-object.]]
         }
      }
      content_unset {
         [[Remove the sub-object currently set as content of this object and return it.
           This object becomes empty.
         ]]
         return: Efl.Gfx.Entity; [[Unswallowed object]]
      }
   }
   events {
      content,changed: Efl.Gfx.Entity;    [[Sent after the content is set or unset using the current content object.]]
   }
}