2018-04-05 01:47:26 -07:00
|
|
|
class Efl.Ui.Win.Part (Efl.Ui.Widget.Part, Efl.Content, Efl.Gfx.Entity, Efl.Gfx.Color,
|
2017-12-19 23:34:01 -08:00
|
|
|
Efl.File)
|
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
|
|
|
{
|
2016-11-24 06:10:46 -08:00
|
|
|
[[Efl UI window interal part class]]
|
2017-09-19 04:02:26 -07:00
|
|
|
data: null;
|
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
|
|
|
implements {
|
2017-11-19 22:41:07 -08:00
|
|
|
Efl.Content.content { get; set; }
|
|
|
|
Efl.Content.content_unset;
|
2017-12-19 23:34:01 -08:00
|
|
|
Efl.Gfx.Color.color { get; set; }
|
2016-12-27 10:15:41 -08:00
|
|
|
Efl.File.file { get; set; }
|
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
|
|
|
}
|
|
|
|
}
|