Efl.Ui.Widget.Part_Shadow (class)

Description

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.

Inheritance

Efl.Ui.Widget.Part (class)Efl.Object (class)

Full hierarchy

Members

color (get, set) [Overridden from Efl.Gfx.Color]

void efl_gfx_color_get(const Eo *obj, int *r, int *g, int *b, int *a);
void efl_gfx_color_set(Eo *obj, int r, int g, int b, int a);


filter_data (get, set) [Overridden from Efl.Gfx.Filter]

Extra data used by the filter program.
void efl_gfx_filter_data_get(const Eo *obj, const char *name, const char **value, Eina_Bool *execute);
void efl_gfx_filter_data_set(Eo *obj, const char *name, const char *value, Eina_Bool execute);


filter_padding (get) [Overridden from Efl.Gfx.Filter]

Required padding to apply this filter without cropping.
void efl_gfx_filter_padding_get(const Eo *obj, int *l, int *r, int *t, int *b);


filter_program (get, set) [Overridden from Efl.Gfx.Filter]

void efl_gfx_filter_program_get(const Eo *obj, const char **code, const char **name);
void efl_gfx_filter_program_set(Eo *obj, const char *code, const char *name);


filter_source (get, set) [Overridden from Efl.Gfx.Filter]

Bind an object to use as a mask or texture in a filter program.
Efl_Gfx *efl_gfx_filter_source_get(const Eo *obj, const char *name);
void efl_gfx_filter_source_set(Eo *obj, const char *name, Efl_Gfx *source);


filter_state (get, set) [Overridden from Efl.Gfx.Filter]

Set the current state of the filter.
void efl_gfx_filter_state_get(const Eo *obj, const char **cur_state, double *cur_val, const char **next_state, double *next_val, double *pos);
void efl_gfx_filter_state_set(Eo *obj, const char *cur_state, double cur_val, const char *next_state, double next_val, double pos);


grow (get, set) [Overridden from Efl.Gfx.Blur]

How much the original image should be "grown" before blurring.
double efl_gfx_blur_grow_get(const Eo *obj);
void efl_gfx_blur_grow_set(Eo *obj, double radius);


offset (get, set) [Overridden from Efl.Gfx.Blur]

An offset relative to the original pixels.
void efl_gfx_blur_offset_get(const Eo *obj, double *ox, double *oy);
void efl_gfx_blur_offset_set(Eo *obj, double ox, double oy);


radius (get, set) [Overridden from Efl.Gfx.Blur]

The blur radius in pixels.
void efl_gfx_blur_radius_get(const Eo *obj, double *rx, double *ry);
void efl_gfx_blur_radius_set(Eo *obj, double rx, double ry);


Inherited

Efl.Gfx
geometry (get, set) Rectangular geometry that combines both position and size.
position (get, set) The 2D position of a canvas object.
scale (get, set) The scaling factor of an object.
size (get, set) The 2D size of a canvas object.
visible (get, set) The visibility of a canvas object.
Efl.Gfx.Color
color_class_code (get, set)
color_code (get, set)
Efl.Object
allow_parent_unref (get, set) Allow an object to be deleted by unref even if it has a parent.
children_iterator_new Get an iterator on all childrens
comment (get, set) A human readable comment for the object
composite_attach Make an object a composite object of another.
composite_detach Detach a composite object from another object.
composite_part_is Check if an object is part of a composite object.
constructor Call the object's constructor.
debug_name_override Build a read-only name for this object used for debugging.
del Unrefs the object and reparents it to NULL.
event_callback_forwarder_add Add an event callback forwarder for an event and an object.
event_callback_forwarder_del Remove an event callback forwarder for an event and an object.
event_callback_stop Stop the current callback call.
event_freeze Freeze events of object.
event_freeze_count (get) Return freeze events of object.
class event_global_freeze Freeze events of object.
class event_global_freeze_count (get) Return freeze events of object.
class event_global_thaw Thaw events of object.
event_thaw Thaw events of object.
finalize Called at the end of efl_add. Should not be called, just overridden.
finalized (get) True if the object is already finalized, otherwise false.
name (get, set) The name of the object.
name_find Find a child object with the given name and return it.
parent (get, set) The parent of an object.
provider_find Searches upwards in the object tree for a provider which knows the given class/interface.
Efl.Ui.Widget.Part
destructor Call the object's destructor.

Events

Inherited

Efl.Gfx
hide Object just became invisible.
move Object was moved, its position during the event is the new one.
resize Object was resized, its size during the event is the new one.
show Object just became visible.
Efl.Object
callback,add A callback was added.
callback,del A callback was deleted.
del Object is being deleted.
destruct Object has been fully destroyed. It can not be used beyond this point. This event should only serve to clean up any dangling pointer.