Lines Matching refs:Scr
103 limit = RLayoutFindBottomEdge(Scr->Layout, &area);
108 limit = RLayoutFindTopEdge(Scr->Layout, &area);
115 limit = RLayoutFindRightEdge(Scr->Layout, &area);
120 limit = RLayoutFindLeftEdge(Scr->Layout, &area);
149 OccupyWindow *occwin = Scr->workSpaceMgr.occupyWindow;
215 title_width = tmp_win->rightx + Scr->TBInfo.rightoff;
253 tmp_win->title_height = Scr->TitleHeight + bw;
324 frame_wc.x = Scr->rootw + 1;
325 frame_wc.y = Scr->rooth + 1;
384 if(Scr->use3Dtitles) {
385 xwc.width -= Scr->TitleButtonShadowDepth;
390 xwc.x = Scr->rootw; /* move offscreen */
416 if(Scr->TBInfo.nright > 0) {
417 xwc.width -= 2 * Scr->TitlePadding;
421 if(Scr->use3Dtitles) {
422 xwc.width -= Scr->TitleButtonShadowDepth;
427 xwc.x = Scr->rootw;
556 newBounding[1].y = Scr->TitleHeight;
565 newClip[0].height = Scr->TitleHeight + tmp->frame_bw3D;
685 leftx = y = Scr->TBInfo.leftx;
697 attributes.cursor = Scr->ButtonCursor;
705 nb = Scr->TBInfo.nleft + Scr->TBInfo.nright;
720 int boxwidth = (Scr->TBInfo.width + Scr->TBInfo.pad);
721 unsigned int h = (Scr->TBInfo.width - Scr->TBInfo.border * 2);
723 for(tb = Scr->TBInfo.head, tbw = tmp_win->titlebuttons; tb;
737 Scr->TBInfo.border,
741 if(Scr->NameDecorations) {
834 const int titlew = width - Scr->TBInfo.titlex - Scr->TBInfo.rightoff;
842 ? TJ_LEFT : Scr->TitleJustification;
859 fprintf(stderr, "%s(): Unexpected Scr->TitleJustification %d, "
860 "treating as left\n", __func__, Scr->TitleJustification);
862 tmp_win->name_x = Scr->TBInfo.titlex;
863 if(Scr->use3Dtitles) {
864 tmp_win->name_x += Scr->TitleShadowDepth + 2;
868 tmp_win->name_x = Scr->TBInfo.titlex + (titlew - tmp_win->name_width) / 2;
878 tmp_win->name_x = Scr->TBInfo.titlex + titlew - tmp_win->name_width;
879 if(Scr->use3Dtitles) {
880 tmp_win->name_x -= Scr->TitleShadowDepth - 2;
893 if(Scr->use3Dtitles) {
894 if(tmp_win->name_x < (Scr->TBInfo.titlex + 2 * Scr->TitleShadowDepth)) {
895 tmp_win->name_x = Scr->TBInfo.titlex + 2 * Scr->TitleShadowDepth;
898 else if(tmp_win->name_x < Scr->TBInfo.titlex) {
899 tmp_win->name_x = Scr->TBInfo.titlex;
907 tmp_win->highlightxl = Scr->TBInfo.titlex;
908 if(Scr->use3Dtitles) {
909 tmp_win->highlightxl += Scr->TitleShadowDepth;
928 if(Scr->use3Dtitles) {
931 if(tmp_win->hilite_wr || Scr->TBInfo.nright > 0) {
932 tmp_win->highlightxr += Scr->TitlePadding;
948 tmp_win->rightx = width - Scr->TBInfo.rightoff;
951 + (tmp_win->hilite_wr ? Scr->TBInfo.width * 2 : 0)
952 + (Scr->TBInfo.nright > 0 ? Scr->TitlePadding : 0)
953 + Scr->FramePadding);
971 int h = (Scr->TitleHeight - 2 * Scr->FramePadding);
972 int y = Scr->FramePadding;
996 if(Scr->HighlightPixmapName) {
997 tmp_win->HiliteImage = GetImage(Scr->HighlightPixmapName, tmp_win->title);
1005 if(Scr->use3Dtitles && (Scr->Monochrome != COLOR)) {
1038 if(Scr->use3Dtitles) {
1039 y += Scr->TitleShadowDepth;
1040 h -= 2 * Scr->TitleShadowDepth;
1048 Scr->TBInfo.width, h, \
1049 0, Scr->d_depth, CopyFromParent, \
1050 Scr->d_visual, valuemask, &attributes)
1051 if(Scr->TitleJustification != TJ_LEFT) {
1053 if(Scr->NameDecorations) {
1057 if(Scr->TitleJustification != TJ_RIGHT) {
1059 if(Scr->NameDecorations) {
1078 if(Scr->HighlightPixmapName) {
1099 int h = (Scr->TitleHeight - 2 * Scr->FramePadding);
1100 int y = Scr->FramePadding;
1111 if(!Scr->UseSunkTitlePixmap || ! tmp_win->titlehighlight) {
1120 if(Scr->HighlightPixmapName) {
1124 tmp_win->LoliteImage = GetImage(Scr->HighlightPixmapName, cp);
1139 if(Scr->use3Dtitles) {
1140 y += Scr->TitleShadowDepth;
1141 h -= 2 * Scr->TitleShadowDepth;
1149 Scr->TBInfo.width, h, \
1150 0, Scr->d_depth, CopyFromParent, \
1151 Scr->d_visual, valuemask, &attributes)
1152 if(Scr->TitleJustification != TJ_LEFT) {
1154 if(Scr->NameDecorations) {
1158 if(Scr->TitleJustification != TJ_RIGHT) {
1160 if(Scr->NameDecorations) {
1192 if(Scr->use3Dtitles) {
1197 int wid = tmp_win->title_width - Scr->TBInfo.titlex
1198 - Scr->TBInfo.rightoff - Scr->TitlePadding;
1206 if(Scr->SunkFocusWindowTitle && (Scr->Focus == tmp_win) &&
1211 Draw3DBorder(tmp_win->title_w, Scr->TBInfo.titlex, 0, wid,
1212 Scr->TitleHeight, Scr->TitleShadowDepth,
1220 if(Scr->use3Dtitles) {
1232 XmbTextExtents(Scr->TitleBarFont.font_set,
1236 mwidth = tmp_win->title_width - Scr->TBInfo.titlex -
1237 Scr->TBInfo.rightoff - Scr->TitlePadding -
1238 Scr->TitleShadowDepth - 4;
1241 XmbTextExtents(Scr->TitleBarFont.font_set,
1252 ((Scr->Monochrome != COLOR) ? XmbDrawImageString : XmbDrawString)
1253 (dpy, tmp_win->title_w, Scr->TitleBarFont.font_set,
1254 Scr->NormalGC,
1256 (Scr->TitleHeight - logical_rect.height) / 2 + (- logical_rect.y),
1269 XmbDrawString(dpy, tmp_win->title_w, Scr->TitleBarFont.font_set,
1270 Scr->NormalGC,
1271 tmp_win->name_x, Scr->TitleBarFont.y,
1286 int nb = Scr->TBInfo.nleft + Scr->TBInfo.nright;
1301 XCopyArea(dpy, tbw->image->pixmap, tbw->window, Scr->NormalGC,
1348 XSetClipRectangles(dpy, Scr->BorderGC, 0, 0, rects, 2, Unsorted);
1353 XSetClipMask(dpy, Scr->BorderGC, None);
1364 XSetClipRectangles(dpy, Scr->BorderGC, 0, 0, rects, 2, Unsorted);
1369 XSetClipMask(dpy, Scr->BorderGC, None);
1403 Scr->BorderShadowDepth, cp, off, true, false);
1405 tmp_win->frame_bw3D - Scr->BorderShadowDepth,
1406 tmp_win->frame_bw3D - Scr->BorderShadowDepth,
1407 tmp_win->frame_width - 2 * tmp_win->frame_bw3D + 2 * Scr->BorderShadowDepth,
1408 tmp_win->frame_height - 2 * tmp_win->frame_bw3D + 2 * Scr->BorderShadowDepth,
1409 Scr->BorderShadowDepth, cp, on, true, false);
1421 #define CORNERLEN (Scr->TitleHeight + tmp_win->frame_bw3D)
1427 tmp_win->frame_bw3D, Scr->BorderShadowDepth, cp, TopLeft);
1429 tmp_win->title_x + tmp_win->title_width - Scr->TitleHeight,
1432 tmp_win->frame_bw3D, Scr->BorderShadowDepth, cp, TopRight);
1437 tmp_win->frame_bw3D, Scr->BorderShadowDepth, cp, BottomRight);
1442 tmp_win->frame_bw3D, Scr->BorderShadowDepth, cp, BottomLeft);
1450 tmp_win->title_x + Scr->TitleHeight,
1452 tmp_win->title_width - 2 * Scr->TitleHeight,
1454 Scr->BorderShadowDepth, cp, off, true, false);
1457 tmp_win->frame_bw3D + Scr->TitleHeight,
1461 Scr->BorderShadowDepth, cp, off, true, false);
1465 Scr->TitleHeight + tmp_win->frame_bw3D,
1468 Scr->BorderShadowDepth, cp, off, true, false);
1472 Scr->TitleHeight + tmp_win->frame_bw3D,
1475 Scr->BorderShadowDepth, cp, off, true, false);
1491 Scr->TitleHeight,
1494 Scr->BorderShadowDepth, cp, off, true, false);
1498 Scr->TitleHeight,
1501 Scr->BorderShadowDepth, cp, off, true, false);
1525 h = Scr->TitleHeight + wd;
1551 cursor = Scr->FrameCursor;
1582 cursor = Scr->FrameCursor;
1607 * : : | | | | : : ||-Scr->TitleHeight
1626 * | | | | |-Scr->TitleHeight
1647 * title window height Scr->TitleHeight
1649 * client origin (0, Scr->TitleHeight + tmp->frame_bw)