aboutsummaryrefslogblamecommitdiffstats
path: root/src/lib/elementary/efl_ui_spin.eo
blob: 7bb4fa5728f1c273c0ad5275ca3deb40600ada40 (plain) (tree)
1
2
3
4
5
6
7
8






                                       
                                                              




                                                                                  
                                                                                             


                

















                                                                                                                  

                             
                            
                                 





                                              


                                                               

    
struct Efl.Ui.Spin_Special_Value
{
   [[Special value]]
   value: double; [[Target value]]
   label: string; [[String to replace]]
}

class Efl.Ui.Spin (Efl.Ui.Layout, Efl.Ui.Range, Efl.Ui.Format,
                   Efl.Access.Value, Efl.Access.Widget.Action)
{
   [[A Spin.

     This is a widget which allows the user to increase or decrease numeric values
     using user interactions. It's a basic type of widget for choosing and displaying values.

     @since 1.21
   ]]
   methods {
      @property special_value {
         [[Control special string to display in the place of the numerical value.

           It's useful for cases when a user should select an item that is
           better indicated by a label than a value. For example, weekdays or months.

           Note: If another label was previously set to $value, it will be replaced
           by the new label.]]
         set {
         }
         get {
         }
         values {
            values: const(array<ptr(Efl.Ui.Spin_Special_Value)>); [[The array of special values, or NULL if none]]
         }
      }
   }
   implements {
      Efl.Object.constructor;
      Efl.Object.destructor;
      Efl.Ui.Widget.widget_event;
      Efl.Ui.Range.range_min_max { get; set; }
      Efl.Ui.Range.range_step { get; set; }
      Efl.Ui.Range.range_value { get; set; }
      Efl.Ui.Format.format_cb { set; }
   }
   events {
      changed: void; [[Called when spin changed]]
      min,reached: void; [[Called when spin value reached min]]
      max,reached: void; [[Called when spin value reached max]]
   }
}