forked from enlightenment/efl
Add setting background color of an Ecore_X_Window
SVN revision: 11685
This commit is contained in:
parent
ca528cec70
commit
e6ac57ddb6
|
@ -790,6 +790,9 @@ int ecore_x_window_visible_get(Ecore_X_Window win);
|
|||
Ecore_X_Window ecore_x_window_at_xy_get(int x, int y);
|
||||
Ecore_X_Window ecore_x_window_parent_get(Ecore_X_Window win);
|
||||
|
||||
void ecore_x_window_background_color_set(Ecore_X_Window win,
|
||||
unsigned long color);
|
||||
|
||||
Ecore_X_Atom ecore_x_window_prop_any_type(void);
|
||||
void ecore_x_window_prop_property_set(Ecore_X_Window win, Ecore_X_Atom type, Ecore_X_Atom format, int size, void *data, int number);
|
||||
int ecore_x_window_prop_property_get(Ecore_X_Window win, Ecore_X_Atom property, Ecore_X_Atom type, int size, unsigned char **data, int *num);
|
||||
|
|
|
@ -688,3 +688,16 @@ ecore_x_window_parent_get(Ecore_X_Window win)
|
|||
return parent;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the background color of the given window.
|
||||
* @param win The given window
|
||||
* @param color The color to set to (i.e. 0xff0000)
|
||||
*/
|
||||
void
|
||||
ecore_x_window_background_color_set(Ecore_X_Window win, unsigned long color)
|
||||
{
|
||||
XSetWindowAttributes attr;
|
||||
|
||||
attr.background_pixel = color;
|
||||
XChangeWindowAttributes(_ecore_x_disp, win, CWBackPixel, &attr);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue