win: Add background part to the win border
Use Efl.Part for window to manipulate the background.
Two part names are used in EDC:
- elm.rect.background
- elm.swallow.background
For apps the part name is only "background".
To set a solid color background (alpha is ok):
efl_gfx_color_set(efl_part(win, "background"), r, g, b, a);
To set an image:
efl_file_set(efl_part(win, "background"), "image.jpg", NULL);
To set an object:
efl_content_set(efl_part(win, "background"), subobj);
The solid bg is invisible by default, will become visible and use
COPY render mode if a color is set. Standard window uses the
swallow part.
@feature
2016-11-09 23:10:28 -08:00
|
|
|
class Efl.Ui.Win.Internal.Part (Efl.Object, Efl.Container, Efl.Gfx, Efl.File)
|
|
|
|
{
|
2016-11-24 06:10:46 -08:00
|
|
|
[[Efl UI window interal part class]]
|
win: Add background part to the win border
Use Efl.Part for window to manipulate the background.
Two part names are used in EDC:
- elm.rect.background
- elm.swallow.background
For apps the part name is only "background".
To set a solid color background (alpha is ok):
efl_gfx_color_set(efl_part(win, "background"), r, g, b, a);
To set an image:
efl_file_set(efl_part(win, "background"), "image.jpg", NULL);
To set an object:
efl_content_set(efl_part(win, "background"), subobj);
The solid bg is invisible by default, will become visible and use
COPY render mode if a color is set. Standard window uses the
swallow part.
@feature
2016-11-09 23:10:28 -08:00
|
|
|
data: Elm_Part_Data;
|
|
|
|
implements {
|
|
|
|
Efl.Object.destructor;
|
|
|
|
Efl.Container.content.set;
|
|
|
|
Efl.Container.content.get;
|
|
|
|
Efl.Container.content_unset;
|
|
|
|
Efl.Gfx.color.set;
|
|
|
|
Efl.Gfx.color.get;
|
|
|
|
Efl.File.file.set;
|
|
|
|
Efl.File.file.get;
|
|
|
|
}
|
|
|
|
}
|