summaryrefslogblamecommitdiff
path: root/src/lib/efl/interfaces/efl_container.eo
blob: e308e2e51f5cc3719beeaf80cb11c0adb1db74d8 (plain) (tree)
1
2
3
4
5
6
7
8
9
                       
 
                                                                                             
 
                                                                             
                           

                
     
                          
                               
            

                                                         
                                                                                                

                     

                                                         


           

                                                                                              

    
interface Efl.Container
{
   [[Common interface for objects (containers) that can have multiple contents (sub-objects).

     APIs in this interface deal with containers of multiple sub-objects, not
     with individual parts.

     @since 1.22
   ]]
   eo_prefix: efl_content;
   event_prefix: efl_container;
   methods {
      content_iterate {
         [[Begin iterating over this object's contents.]]
         return: iterator<Efl.Gfx.Entity> @owned @warn_unused; [[Iterator on object's content.]]
      }
      content_count {
         [[Returns the number of contained sub-objects.]]
         return: int; [[Number of sub-objects.]]
      }
   }
   events {
      content,added: Efl.Gfx.Entity;    [[Sent after a new sub-object was added.]]
      content,removed: Efl.Gfx.Entity;  [[Sent after a sub-object was removed, before unref.]]
   }
}