efl/src/lib/efl/interfaces/efl_gfx_color_class.eo

111 lines
4.1 KiB
Plaintext

import efl_gfx_types;
mixin @beta Efl.Gfx.Color_Class
{
[[Efl Gfx Color Class mixin class]]
data: null;
methods {
@property color_class @pure_virtual {
[[Color for the color class.
This property sets the color values for a color class. This will
cause all edje parts in the specified object that have the specified
color class to have their colors multiplied by these values.
The first color is the object, the second is the text outline, and
the third is the text shadow. (Note that the last two only apply
to text parts).
Setting color emits a signal "color_class,set" with source being
the given color.
When retrieving the color of an object, if no explicit
object color is set, then global values will be used.
Note: These color values are expected to be premultiplied by $a.]]
set {
return: bool; [[$true if setting the color succeeded, $false otherwise]]
}
get {
return: bool; [[$true if getting the color succeeded, $false otherwise]]
}
keys {
color_class: string; [[The name of color class]]
layer: Efl.Gfx.Color_Class_Layer @optional; [[The layer to set the color]]
}
values {
r: int; [[The intensity of the red color]]
g: int; [[The intensity of the green color]]
b: int; [[The intensity of the blue color]]
a: int; [[The alpha value]]
}
}
@property color_class_code {
[[Hexadecimal color code string of the color class.
This property sets the color values for a color class. This will
cause all edje parts in the specified object that have the specified
color class to have their colors multiplied by these values.
The first color is the object, the second is the text outline, and
the third is the text shadow. (Note that the last two only apply
to text parts).
Setting color emits a signal "color_class,set" with source being
the given color.
When retrieving the color of an object, if no explicit
object color is set, then global values will be used.
Note: These color values are expected to be premultiplied by the alpha.]]
set {
return: bool; [[$true if setting the color succeeded, $false otherwise]]
}
get {
}
keys {
color_class: string; [[The name of color class]]
layer: Efl.Gfx.Color_Class_Layer @optional; [[The layer to set the color]]
}
values {
colorcode: string; [[the hex color code.]]
}
}
@property color_class_description @pure_virtual {
[[Get the description of a color class.
This function gets the description of a color class in use by an object.]]
get {
}
keys {
color_class: string; [[The name of color class]]
}
values {
description: string; [[The description of the target color class or $null if not found]]
}
}
color_class_del @pure_virtual {
[[Delete the color class.
This function deletes any values for the specified color class.
Deleting the color class will revert it to the values defined
by @.color_class.set() or the color class defined in the theme file.
Deleting the color class will emit the signal "color_class,del"
for the given Edje object.]]
params {
@in color_class: string; [[The name of color_class]]
}
}
color_class_clear @pure_virtual {
[[Delete all color classes defined in object level.
This function deletes any color classes defined in object level.
Clearing color classes will revert the color of all edje parts to
the values defined in global level or theme file.
]]
}
}
}