JWM Source Documentation
Data Structures | Macros | Typedefs | Functions | Variables
settings.h File Reference

JWM settings. More...

Go to the source code of this file.

Data Structures

struct  Settings
 Settings. More...
 

Macros

#define SNAP_NONE   0
 Don't snap.
 
#define SNAP_SCREEN   1
 Snap to the edges of the screen.
 
#define SNAP_BORDER   2
 Snap to all borders.
 
#define MOVE_OPAQUE   0
 Show window contents while moving.
 
#define MOVE_OUTLINE   1
 Show an outline while moving.
 
#define RESIZE_OPAQUE   0
 Show window contents while resizing.
 
#define RESIZE_OUTLINE   1
 Show an outline while resizing.
 
#define SW_OFF   0
 No status window.
 
#define SW_SCREEN   1
 Centered on screen.
 
#define SW_WINDOW   2
 Centered on window.
 
#define SW_CORNER   3
 Upper-left corner.
 
#define FOCUS_SLOPPY   0
 
#define FOCUS_CLICK   1
 
#define DECO_UNSET   0
 
#define DECO_FLAT   1
 
#define DECO_MOTIF   2
 
#define POPUP_NONE   0
 
#define POPUP_TASK   1
 
#define POPUP_PAGER   2
 
#define POPUP_BUTTON   4
 
#define POPUP_CLOCK   8
 
#define POPUP_MENU   16
 
#define POPUP_ALL   255
 
#define ALIGN_LEFT   0
 
#define ALIGN_CENTER   1
 
#define ALIGN_RIGHT   2
 

Typedefs

typedef unsigned char SnapModeType
 Window snap modes.
 
typedef unsigned char MoveModeType
 Window move modes.
 
typedef unsigned char ResizeModeType
 Window resize modes.
 
typedef unsigned char StatusWindowType
 Status window types.
 
typedef unsigned char FocusModelType
 Focus models.
 
typedef unsigned char DecorationsType
 Decorations.
 
typedef unsigned char PopupMaskType
 Popup mask.
 
typedef unsigned char AlignmentType
 Text alignment.
 

Functions

void SetPathString (char **dest, const char *src)
 Update a string setting.
 

Variables

Settings settings
 
#define ShutdownSettings()   (void)(0)
 
#define DestroySettings()   (void)(0)
 
void InitializeSettings (void)
 Initialize settings.
 
void StartupSettings (void)
 Make sure settings are reasonable.
 

Detailed Description

JWM settings.

Author
Joe Wingbermuehle
Date
2012

Definition in file settings.h.

Macro Definition Documentation

#define ALIGN_CENTER   1
#define ALIGN_LEFT   0

Definition at line 59 of file settings.h.

Referenced by InitializeSettings(), ParseTextAlignment(), and ResetButton().

#define ALIGN_RIGHT   2

Definition at line 61 of file settings.h.

Referenced by DrawBorderHelper(), and ParseTextAlignment().

#define DECO_FLAT   1

Definition at line 44 of file settings.h.

Referenced by InitializeSettings(), and ParseDecorations().

#define DECO_MOTIF   2
#define DECO_UNSET   0

Definition at line 43 of file settings.h.

Referenced by InitializeSettings(), and StartupSettings().

#define DestroySettings ( )    (void)(0)

Definition at line 103 of file settings.h.

Referenced by Destroy().

#define FOCUS_CLICK   1

Definition at line 39 of file settings.h.

Referenced by ParseFocusModel().

#define FOCUS_SLOPPY   0

Definition at line 38 of file settings.h.

Referenced by HandleEnterNotify(), InitializeSettings(), and ParseFocusModel().

#define MOVE_OPAQUE   0

Show window contents while moving.

Definition at line 21 of file settings.h.

Referenced by InitializeSettings(), and ParseMoveMode().

#define MOVE_OUTLINE   1

Show an outline while moving.

Definition at line 22 of file settings.h.

Referenced by MoveClient(), MoveClientKeyboard(), MoveController(), and ParseMoveMode().

#define POPUP_ALL   255

Definition at line 55 of file settings.h.

Referenced by InitializeSettings(), and ParsePopupStyle().

#define POPUP_BUTTON   4

Definition at line 52 of file settings.h.

Referenced by ParsePopupStyle(), and SignalTrayButton().

#define POPUP_CLOCK   8

Definition at line 53 of file settings.h.

Referenced by ParsePopupStyle(), and SignalClock().

#define POPUP_MENU   16

Definition at line 54 of file settings.h.

Referenced by MenuCallback(), and ParsePopupStyle().

#define POPUP_NONE   0

Definition at line 49 of file settings.h.

Referenced by ParsePopupStyle().

#define POPUP_PAGER   2

Definition at line 51 of file settings.h.

Referenced by ParsePopupStyle(), and SignalPager().

#define POPUP_TASK   1

Definition at line 50 of file settings.h.

Referenced by ParsePopupStyle(), and SignalTaskbar().

#define RESIZE_OPAQUE   0

Show window contents while resizing.

Definition at line 26 of file settings.h.

Referenced by InitializeSettings(), and ParseResizeMode().

#define RESIZE_OUTLINE   1

Show an outline while resizing.

Definition at line 27 of file settings.h.

Referenced by ParseResizeMode(), ResizeClient(), ResizeClientKeyboard(), ResizeController(), and StopResize().

#define ShutdownSettings ( )    (void)(0)

Definition at line 102 of file settings.h.

Referenced by Shutdown().

#define SNAP_BORDER   2

Snap to all borders.

Definition at line 17 of file settings.h.

Referenced by DoSnap(), InitializeSettings(), and ParseSnapMode().

#define SNAP_NONE   0

Don't snap.

Definition at line 15 of file settings.h.

Referenced by ParseSnapMode().

#define SNAP_SCREEN   1

Snap to the edges of the screen.

Definition at line 16 of file settings.h.

Referenced by DoSnap(), and ParseSnapMode().

#define SW_CORNER   3

Upper-left corner.

Definition at line 34 of file settings.h.

Referenced by GetMoveResizeCoordinates(), and ParseStatusWindowType().

#define SW_OFF   0

No status window.

Definition at line 31 of file settings.h.

Referenced by CreateMoveResizeWindow(), ParseStatusWindowType(), UpdateMoveWindow(), and UpdateResizeWindow().

#define SW_SCREEN   1

Centered on screen.

Definition at line 32 of file settings.h.

Referenced by InitializeSettings(), and ParseStatusWindowType().

#define SW_WINDOW   2

Centered on window.

Definition at line 33 of file settings.h.

Referenced by GetMoveResizeCoordinates(), and ParseStatusWindowType().

Typedef Documentation

typedef unsigned char AlignmentType

Text alignment.

Definition at line 58 of file settings.h.

typedef unsigned char DecorationsType

Decorations.

Definition at line 42 of file settings.h.

typedef unsigned char FocusModelType

Focus models.

Definition at line 37 of file settings.h.

typedef unsigned char MoveModeType

Window move modes.

Definition at line 20 of file settings.h.

typedef unsigned char PopupMaskType

Popup mask.

Definition at line 48 of file settings.h.

typedef unsigned char ResizeModeType

Window resize modes.

Definition at line 25 of file settings.h.

typedef unsigned char SnapModeType

Window snap modes.

Definition at line 14 of file settings.h.

typedef unsigned char StatusWindowType

Status window types.

Definition at line 30 of file settings.h.

Function Documentation

void InitializeSettings ( void  )
void SetPathString ( char **  dest,
const char *  src 
)

Update a string setting.

Definition at line 78 of file settings.c.

References CopyString(), ExpandPath(), JLIKELY, and Release.

void StartupSettings ( void  )

Variable Documentation

Settings settings

Definition at line 14 of file settings.c.

Referenced by AboveDesktop(), AddClientToTaskBar(), AddClientWindow(), ApplyGroup(), BelowDesktop(), CascadeClient(), ChangeDesktop(), ComputeDimensions(), CreateClock(), CreateDesktopMenu(), CreateMoveWindow(), CreatePager(), CreateResizeWindow(), CreateSendtoMenu(), CreateTaskBar(), CreateTrayButton(), CreateWindowMenu(), CreateWindowSendToMenu(), DestroyDesktops(), DispatchBorderButtonEvent(), DoSnap(), DoSnapBorder(), DoSnapScreen(), Draw(), DrawBorderButtons(), DrawBorderHandles(), DrawBorderHelper(), DrawButton(), DrawMenu(), DrawMenuItem(), DrawMoveResizeWindow(), DrawPager(), DrawPagerClient(), DrawSpecificTray(), FocusClient(), FocusGroup(), GetAboveDesktop(), GetBelowDesktop(), GetBorderActionType(), GetBorderIconSize(), GetBorderSize(), GetButtonCount(), GetDesktopName(), GetLeftDesktop(), GetPagerDesktop(), GetRightDesktop(), GetTitleHeight(), HandleButtonEvent(), HandleClientMessage(), HandleEnterNotify(), LeftDesktop(), MapMenu(), MenuCallback(), MenuLoop(), MoveClient(), MoveClientKeyboard(), MoveController(), Parse(), ParseActiveWindowStyle(), ParseDesktops(), ParseFocusModel(), ParseMenuStyle(), ParseMoveMode(), ParsePopupStyle(), ParseResizeMode(), ParseSnapMode(), ParseTrayStyle(), ParseWindowStyle(), ProcessTaskButtonEvent(), ReadWindowState(), Render(), ResetBorder(), ResizeClient(), ResizeClientKeyboard(), ResizeController(), RightDesktop(), SetClientDesktop(), SetDesktopName(), SetSize(), SetWorkarea(), ShouldFocus(), ShowClientList(), ShowPopup(), SignalClock(), SignalPager(), SignalTaskbar(), SignalTrayButton(), StartPagerMove(), StartupDesktops(), StartupHints(), StartupPlacement(), StartupTray(), StopResize(), UpdateDesktop(), UpdateMotion(), UpdateMoveWindow(), and UpdateResizeWindow().

joewing.net / Projects / JWM