JWM Source Documentation
Functions | Variables
status.c File Reference

Functions for display window move/resize status. More...

#include "jwm.h"
#include "status.h"
#include "font.h"
#include "screen.h"
#include "main.h"
#include "client.h"
#include "settings.h"
#include "hint.h"

Go to the source code of this file.

Functions

static void CreateMoveResizeWindow (const ClientNode *np, StatusWindowType type)
 Create the status window.
 
static void DrawMoveResizeWindow (const ClientNode *np, StatusWindowType type)
 Draw the status window.
 
static void DestroyMoveResizeWindow (void)
 Destroy the status window.
 
static void GetMoveResizeCoordinates (const ClientNode *np, StatusWindowType type, int *x, int *y)
 Get the location to place the status window.
 
void CreateMoveWindow (ClientNode *np)
 Create a move status window.
 
void UpdateMoveWindow (ClientNode *np)
 Update the move status window.
 
void DestroyMoveWindow (void)
 Destroy the move status window.
 
void CreateResizeWindow (ClientNode *np)
 Create a resize status window.
 
void UpdateResizeWindow (ClientNode *np, int gwidth, int gheight)
 Update the resize status window.
 
void DestroyResizeWindow (void)
 Destroy the resize status window.
 

Variables

static Window statusWindow
 
static unsigned int statusWindowHeight
 
static unsigned int statusWindowWidth
 
static int statusWindowX
 
static int statusWindowY
 

Detailed Description

Functions for display window move/resize status.

Author
Joe Wingbermuehle
Date
2004-2006

Definition in file status.c.

Function Documentation

void CreateMoveResizeWindow ( const ClientNode np,
StatusWindowType  type 
)
static
void CreateMoveWindow ( ClientNode np)

Create a move status window.

Definition at line 144 of file status.c.

References CreateMoveResizeWindow(), Settings::moveStatusType, and settings.

Referenced by MoveClient(), and MoveClientKeyboard().

void CreateResizeWindow ( ClientNode np)

Create a resize status window.

Definition at line 174 of file status.c.

References CreateMoveResizeWindow(), Settings::resizeStatusType, and settings.

Referenced by ResizeClient(), and ResizeClientKeyboard().

void DestroyMoveResizeWindow ( void  )
static

Destroy the status window.

Definition at line 135 of file status.c.

References display, JXDestroyWindow, and statusWindow.

Referenced by DestroyMoveWindow(), and DestroyResizeWindow().

void DestroyMoveWindow ( void  )

Destroy the move status window.

Destroy a move status window.

Definition at line 168 of file status.c.

References DestroyMoveResizeWindow().

Referenced by MoveController().

void DestroyResizeWindow ( void  )

Destroy the resize status window.

Destroy a resize status window.

Definition at line 200 of file status.c.

References DestroyMoveResizeWindow().

Referenced by ResizeController(), and StopResize().

void DrawMoveResizeWindow ( const ClientNode np,
StatusWindowType  type 
)
static
void GetMoveResizeCoordinates ( const ClientNode np,
StatusWindowType  type,
int *  x,
int *  y 
)
static
void UpdateMoveWindow ( ClientNode np)
void UpdateResizeWindow ( ClientNode np,
int  gwidth,
int  gheight 
)

Update the resize status window.

Update a resize status window.

Definition at line 180 of file status.c.

References COLOR_MENU_FG, DrawMoveResizeWindow(), FONT_MENU, GetStringWidth(), RenderString(), Settings::resizeStatusType, rootWidth, settings, statusWindow, statusWindowWidth, and SW_OFF.

Referenced by ResizeClient(), and ResizeClientKeyboard().

Variable Documentation

Window statusWindow
static
unsigned int statusWindowHeight
static

Definition at line 20 of file status.c.

Referenced by CreateMoveResizeWindow(), DrawMoveResizeWindow(), and GetMoveResizeCoordinates().

unsigned int statusWindowWidth
static
int statusWindowX
static

Definition at line 22 of file status.c.

Referenced by CreateMoveResizeWindow(), and DrawMoveResizeWindow().

int statusWindowY
static

Definition at line 22 of file status.c.

Referenced by CreateMoveResizeWindow(), and DrawMoveResizeWindow().

joewing.net / Projects / JWM