summaryrefslogblamecommitdiff
path: root/src/lib/edje/efl_canvas_layout_part.eo
blob: 927e70ac9a2e375445d03763113810a18bc66277 (plain) (tree)
1
2
3
4
5
6
7
8
9

                  
                                                                                      
 
                                                                



                                                                              
                                                     








                                                                            

                                                                         


                 

                                                         

          





                                             
                                                                                


                                                                     
    
               
                          
                                      







                                          
 
import edje_types;

class Efl.Canvas.Layout_Part extends Efl.Object implements Efl.Gfx.Entity, Efl.Ui.Drag
{
   [[Common class for part proxy objects for @Efl.Canvas.Layout.

     As an @Efl.Part implementation class, all objects of this class are meant
     to be used for one and only one function call. In pseudo-code, the use
     of object of this type looks like the following:
       rect = layout.part("somepart").geometry_get();

     @since 1.20
   ]]
   methods {
      @property state {
         [[The name and value of the current state of this part (read-only).

           This is the state name as it appears in EDC description blocks. A
           state has both a name and a value (double). The default state is
           "default" 0.0, but this function will return "" if the part is
           invalid.
         ]]
         get {}
         values {
            state: string(""); [[The name of the state.]]
            val: double(0.0); [[The value of the state.]]
         }
      }
      @property part_type {
         [[Type of this part in the layout.]]
         get {
            [[Returns the type of the part.]]
         }
         values {
            type: Efl.Canvas.Layout_Part_Type(Efl.Canvas.Layout_Part_Type.none);
               [[One of the types or $none if not an existing part.]]
         }
      }
   }
   implements {
      Efl.Object.finalize;
      Efl.Gfx.Entity.geometry { get; }
      Efl.Ui.Drag.drag_value { set; get; }
      Efl.Ui.Drag.drag_size { set; get; }
      Efl.Ui.Drag.drag_dir { get; }
      Efl.Ui.Drag.drag_step { set; get; }
      Efl.Ui.Drag.drag_step_move;
      Efl.Ui.Drag.drag_page { set; get; }
      Efl.Ui.Drag.drag_page_move;
   }
}