aboutsummaryrefslogblamecommitdiffstats
path: root/src/lib/elementary/efl_ui_widget_part_shadow.eo
blob: 4d611c3a04f8fac4697856c1270b0cac6f44fb56 (plain) (tree)
1
                                                                   






















                                                                             
                                       









                                                 
class Efl.Ui.Widget_Part_Shadow (Efl.Ui.Widget_Part, Efl.Gfx.Color,
                                 Efl.Gfx.Blur, Efl.Gfx.Filter)
{
   [[A drop-shadow or glow effect around any widget.

     A simple drop-shadow effect can be applied to any widget by setting the
     color and blur radius on this part.

     For instance, a blue glow can be achieved with:
      obj.shadow().color_set(0, 128, 255, 255);
      obj.shadow().grow_set(2);
      obj.shadow().radius_set(3, 3);

     As another example, here's a black drop-shadow:
      obj.shadow().color_set(0, 0, 0, 255);
      obj.shadow().grow_set(1);
      obj.shadow().radius_set(5, 5);
      obj.shadow().offset_set(5, 5);

     It is also possible to manually specify which @Efl.Gfx.Filter program to
     use.
   ]]
   data: null;
   implements {
      Efl.Gfx.Color.color { set; get; }
      Efl.Gfx.Blur.radius { set; get; }
      Efl.Gfx.Blur.offset { set; get; }
      Efl.Gfx.Blur.grow { set; get; }
      Efl.Gfx.Filter.filter_program { set; get; }
      Efl.Gfx.Filter.filter_source { set; get; }
      Efl.Gfx.Filter.filter_data { set; get; }
      Efl.Gfx.Filter.filter_padding { get; }
      Efl.Gfx.Filter.filter_state { set; get; }
   }
}