1
0
mirror of https://github.com/gryf/wmaker.git synced 2026-02-13 04:15:50 +01:00

WINGs: add functions to set widget background image

With this patch we can set widget background image.
As now, only background color was available.
This commit is contained in:
David Maciejak
2014-12-04 13:25:55 +07:00
committed by Carlos R. Mafra
parent 47ac986b53
commit c10469264d
5 changed files with 50 additions and 4 deletions

View File

@@ -960,6 +960,21 @@ WMColor *WMGetWidgetBackgroundColor(WMWidget * w)
return W_VIEW(w)->backColor;
}
void WMSetWidgetBackgroundPixmap(WMWidget *w, WMPixmap *pix)
{
if (!pix)
return;
W_SetViewBackgroundPixmap(W_VIEW(w), pix);
if (W_VIEW(w)->flags.mapped)
WMRedisplayWidget(w);
}
WMPixmap *WMGetWidgetBackgroundPixmap(WMWidget *w)
{
return W_VIEW(w)->backImage;
}
void WMRaiseWidget(WMWidget * w)
{
W_RaiseView(W_VIEW(w));