Class Efl.Ui.WidgetPartShadow
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.IFilter (object still in beta stage) program to use.
Syntax
public class WidgetPartShadow : WidgetPart, IPropertyBind, IColor, IWrapper, IDisposable
Constructors
WidgetPartShadow(EoWrapper.ConstructingHandle)
Subclasses should override this constructor if they are expected to be instantiated from native code. Do not call this constructor directly.
Declaration
protected WidgetPartShadow(EoWrapper.ConstructingHandle ch)
Parameters
Type | Name | Description |
---|---|---|
Efl.Eo.EoWrapper.ConstructingHandle | ch | Tag struct storing the native handle of the object being constructed. |
WidgetPartShadow(Object)
Initializes a new instance of the Efl.Ui.WidgetPartShadow class.
Declaration
public WidgetPartShadow(Object parent = null)
Parameters
Type | Name | Description |
---|---|---|
Efl.Object | parent | Parent instance. |
WidgetPartShadow(IntPtr, Object)
Initializes a new instance of the Efl.Ui.WidgetPartShadow class. Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly.
Declaration
protected WidgetPartShadow(IntPtr baseKlass, Object parent)
Parameters
Type | Name | Description |
---|---|---|
System.IntPtr | baseKlass | The pointer to the base native Eo class. |
Efl.Object | parent | The Efl.Object parent of this instance. |
Properties
Color
The general/main color of the given Evas object. Represents the main color's RGB component (and alpha channel) values, which range from 0 to 255. For the alpha channel, which defines the object's transparency level, 0 means totally transparent, while 255 means opaque. These color values are premultiplied by the alpha value.
Usually you'll use this attribute for text and rectangle objects, where the main color is the only color. If set for objects which themselves have colors, like the images one, those colors get modulated by this one.
All newly created Evas rectangles get the default color values of 255 255 255 255 (opaque white).
When reading this property, use NULL
pointers on the components you're not interested in and they'll be ignored by the function.
(Since EFL 1.22)
Declaration
public (int, int, int, int)Color { get; set; }
Property Value
Type | Description |
---|---|
System.ValueTuple<System.Int32, System.Int32, System.Int32, System.Int32> |
ColorCode
Hexadecimal color code of given Evas object (#RRGGBBAA). (Since EFL 1.22)
Declaration
public string ColorCode { get; set; }
Property Value
Type | Description |
---|---|
System.String | the hex color code. |
Methods
GetColor(out Int32, out Int32, out Int32, out Int32)
The general/main color of the given Evas object. Represents the main color's RGB component (and alpha channel) values, which range from 0 to 255. For the alpha channel, which defines the object's transparency level, 0 means totally transparent, while 255 means opaque. These color values are premultiplied by the alpha value.
Usually you'll use this attribute for text and rectangle objects, where the main color is the only color. If set for objects which themselves have colors, like the images one, those colors get modulated by this one.
All newly created Evas rectangles get the default color values of 255 255 255 255 (opaque white).
When reading this property, use NULL
pointers on the components you're not interested in and they'll be ignored by the function.
(Since EFL 1.22)
Declaration
public virtual void GetColor(out int r, out int g, out int b, out int a)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | r | |
System.Int32 | g | |
System.Int32 | b | |
System.Int32 | a |
GetColorCode()
Hexadecimal color code of given Evas object (#RRGGBBAA). (Since EFL 1.22)
Declaration
public virtual string GetColorCode()
Returns
Type | Description |
---|---|
System.String | the hex color code. |
SetColor(Int32, Int32, Int32, Int32)
The general/main color of the given Evas object. Represents the main color's RGB component (and alpha channel) values, which range from 0 to 255. For the alpha channel, which defines the object's transparency level, 0 means totally transparent, while 255 means opaque. These color values are premultiplied by the alpha value.
Usually you'll use this attribute for text and rectangle objects, where the main color is the only color. If set for objects which themselves have colors, like the images one, those colors get modulated by this one.
All newly created Evas rectangles get the default color values of 255 255 255 255 (opaque white).
When reading this property, use NULL
pointers on the components you're not interested in and they'll be ignored by the function.
(Since EFL 1.22)
Declaration
public virtual void SetColor(int r, int g, int b, int a)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | r | |
System.Int32 | g | |
System.Int32 | b | |
System.Int32 | a |
SetColorCode(String)
Hexadecimal color code of given Evas object (#RRGGBBAA). (Since EFL 1.22)
Declaration
public virtual void SetColorCode(string colorcode)
Parameters
Type | Name | Description |
---|---|---|
System.String | colorcode | the hex color code. |