CTWM
|
#include "ctwm.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <X11/extensions/shape.h>
#include "gram.tab.h"
#include "image.h"
#include "iconmgr.h"
#include "screen.h"
#include "drawing.h"
#include "occupation.h"
#include "r_area.h"
#include "r_layout.h"
#include "win_utils.h"
#include "workspace_manager.h"
#include "win_decorations.h"
Go to the source code of this file.
Macros | |
#define | MARGIN (16 - 1) /* one "average" cursor width - 1 */ |
#define | MKWIN() |
#define | MKWIN() |
#define | CORNERLEN (Scr->TitleHeight + tmp_win->frame_bw3D) |
Enumerations | |
enum | CornerType { TopLeft , TopRight , BottomRight , BottomLeft } |
Functions | |
static void | ComputeWindowTitleOffsets (TwmWindow *tmp_win, unsigned int width, bool squeeze) |
static void | CreateHighlightWindows (TwmWindow *tmp_win) |
static void | CreateLowlightWindows (TwmWindow *tmp_win) |
static void | Draw3DCorner (Window w, int x, int y, int width, int height, int thick, int bw, ColorPair cp, CornerType type) |
void | SetupWindow (TwmWindow *tmp_win, int x, int y, int w, int h, int bw) |
void | SetupFrame (TwmWindow *tmp_win, int x, int y, int w, int h, int bw, bool sendEvent) |
void | SetFrameShape (TwmWindow *tmp) |
void | ComputeTitleLocation (TwmWindow *tmp) |
void | CreateWindowTitlebarButtons (TwmWindow *tmp_win) |
void | DeleteHighlightWindows (TwmWindow *tmp_win) |
void | PaintTitle (TwmWindow *tmp_win) |
void | PaintTitleButtons (TwmWindow *tmp_win) |
void | PaintTitleButton (TwmWindow *tmp_win, TBWindow *tbw) |
void | PaintBorders (TwmWindow *tmp_win, bool focus) |
void | SetBorderCursor (TwmWindow *tmp_win, int x, int y) |
#define MKWIN | ( | ) |
#define MKWIN | ( | ) |
Enumerator | |
---|---|
TopLeft | |
TopRight | |
BottomRight | |
BottomLeft |
Definition at line 34 of file win_decorations.c.
Definition at line 604 of file win_decorations.c.
References SqueezeInfo::num, PlaceX, SIJ_CENTER, SIJ_LEFT, and SIJ_RIGHT.
Referenced by AddWindow(), and SetFrameShape().
|
static |
Definition at line 828 of file win_decorations.c.
References PlaceX, Scr, TJ_CENTER, TJ_LEFT, TJ_RIGHT, and TJ_UNDEF.
Referenced by CreateWindowTitlebarButtons(), and SetupFrame().
Definition at line 967 of file win_decorations.c.
References AllocImage(), dpy, get_blackgray_size(), GetImage(), mk_blackgray_pixmap(), MKWIN, PlaceX, Scr, TJ_LEFT, TJ_RIGHT, and y.
Referenced by CreateWindowTitlebarButtons().
Definition at line 1095 of file win_decorations.c.
References dpy, GetImage(), MKWIN, PlaceX, Scr, ColorPair::shadc, ColorPair::shadd, TJ_LEFT, TJ_RIGHT, and y.
Referenced by CreateWindowTitlebarButtons().
Definition at line 661 of file win_decorations.c.
References ComputeWindowTitleOffsets(), CreateHighlightWindows(), CreateLowlightWindows(), dpy, GetImage(), PlaceX, ProgramName, Scr, TBPM_QUESTION, TBWindow::window, x, and y.
Referenced by AddWindow().
Definition at line 1075 of file win_decorations.c.
References dpy, PlaceX, and Scr.
Referenced by HandleDestroyNotify().
|
static |
Definition at line 1321 of file win_decorations.c.
References BottomLeft, BottomRight, dpy, Draw3DBorder(), off, on, PlaceX, Scr, TopLeft, TopRight, x, and y.
Referenced by PaintBorders().
Definition at line 1385 of file win_decorations.c.
References BottomLeft, BottomRight, CORNERLEN, Draw3DBorder(), Draw3DCorner(), off, on, PlaceX, Scr, TopLeft, and TopRight.
Referenced by HandleExpose(), PaintAllDecoration(), and SetFocusVisualAttributes().
Definition at line 1189 of file win_decorations.c.
References dpy, Draw3DBorder(), FB, len, off, on, PlaceX, and Scr.
Referenced by HandleExpose(), and PaintAllDecoration().
Definition at line 1297 of file win_decorations.c.
References dpy, PlaceX, and Scr.
Referenced by HandleExpose(), and PaintTitleButtons().
Definition at line 1282 of file win_decorations.c.
References PaintTitleButton(), PlaceX, and Scr.
Referenced by PaintAllDecoration().
Definition at line 1513 of file win_decorations.c.
References BottomCursor, BottomLeftCursor, BottomRightCursor, dpy, LeftCursor, PlaceX, RightCursor, Scr, TopCursor, TopLeftCursor, TopRightCursor, x, and y.
Referenced by HandleEnterNotify(), and HandleMotionNotify().
Definition at line 489 of file win_decorations.c.
References ComputeTitleLocation(), dpy, PlaceX, and Scr.
Referenced by f_movetitlebar_impl(), HandleShapeNotify(), and SetupFrame().
Definition at line 77 of file win_decorations.c.
References ComputeWindowTitleOffsets(), dpy, HasShape, MARGIN, PlaceX, RAreaNew(), ResizeOccupyWindow(), RLayoutFindBottomEdge(), RLayoutFindLeftEdge(), RLayoutFindRightEdge(), RLayoutFindTopEdge(), Scr, SetFrameShape(), visible(), WMapSetupWindow(), x, and y.
Referenced by AddWindow(), HandleConfigureRequest(), and SetupWindow().
Definition at line 71 of file win_decorations.c.
References PlaceX, SetupFrame(), x, and y.
Referenced by apply_window_name(), ChangeSize(), DoResize(), EndResize(), f_initsize_impl(), f_moveresize_impl(), fillwindow(), fittocontent(), fullzoom(), HandleButtonRelease(), jump(), MenuDoResize(), MenuEndResize(), movewindow(), PackIconManager(), packwindow(), RescueWindows(), restoregeometry(), Squeeze(), TryToPush_be(), and WMgrHandleButtonEvent().