163 font =
Scr->workSpaceMgr.buttonFont;
168 bheight =
occwin->bheight;
174 bheight =
occwin->bheight;
191 hspace = (bwidth -
strWid) / 2;
194 if(hspace < (
Scr->WMgrButtonShadowDepth + 1)) {
195 hspace =
Scr->WMgrButtonShadowDepth + 1;
201 cp, state,
true,
false);
203 switch(
Scr->workSpaceMgr.buttonStyle) {
209 Scr->WMgrButtonShadowDepth - 1,
210 Scr->WMgrButtonShadowDepth - 1,
211 bwidth - 2 *
Scr->WMgrButtonShadowDepth + 2,
212 bheight - 2 *
Scr->WMgrButtonShadowDepth + 2,
213 1, cp, (state ==
on) ?
off :
on,
true,
false);
218 Scr->WMgrButtonShadowDepth / 2,
219 Scr->WMgrButtonShadowDepth / 2,
220 bwidth -
Scr->WMgrButtonShadowDepth,
221 bheight -
Scr->WMgrButtonShadowDepth,
222 1, cp, (state ==
on) ?
off :
on,
true,
false);
231 1, cp, (state ==
on) ?
off :
on,
true,
false);
236 label, strlen(label));
240 cp, state,
true,
false);
244 label, strlen(label));
249 label, strlen(label));
void Draw3DBorder(Window w, int x, int y, int width, int height, int bw, ColorPair cp, ButtonState state, bool fill, bool forcebw)
void PaintWsButton(PWBType which, VirtualScreen *vs, Window w, char *label, ColorPair cp, ButtonState state)