JWM Source Documentation
Functions | Variables
resize.c File Reference

Functions to handle resizing client windows. More...

#include "jwm.h"
#include "resize.h"
#include "client.h"
#include "outline.h"
#include "cursor.h"
#include "misc.h"
#include "pager.h"
#include "status.h"
#include "key.h"
#include "event.h"
#include "settings.h"

Go to the source code of this file.

Functions

static void StopResize (ClientNode *np)
 Stop a resize action.
 
static void ResizeController (int wasDestroyed)
 Callback to stop a resize.
 
static void FixWidth (ClientNode *np)
 Fix the width to match the aspect ratio.
 
static void FixHeight (ClientNode *np)
 Fix the height to match the aspect ratio.
 
void ResizeClient (ClientNode *np, BorderActionType action, int startx, int starty)
 Resize a client window (mouse initiated).
 
void ResizeClientKeyboard (ClientNode *np)
 Resize a client window (keyboard or menu initiated).
 

Variables

static char shouldStopResize
 

Detailed Description

Functions to handle resizing client windows.

Author
Joe Wingbermuehle
Date
2004-2006

Definition in file resize.c.

Function Documentation

void FixHeight ( ClientNode np)
static

Fix the height to match the aspect ratio.

Definition at line 427 of file resize.c.

References ClientNode::aspect, Assert, ClientNode::height, AspectRatio::maxx, AspectRatio::maxy, AspectRatio::minx, AspectRatio::miny, ClientNode::sizeFlags, and ClientNode::width.

Referenced by ResizeClient().

void FixWidth ( ClientNode np)
static

Fix the width to match the aspect ratio.

Definition at line 410 of file resize.c.

References ClientNode::aspect, Assert, ClientNode::height, AspectRatio::maxx, AspectRatio::maxy, AspectRatio::minx, AspectRatio::miny, ClientNode::sizeFlags, and ClientNode::width.

Referenced by ResizeClient().

void ResizeClient ( ClientNode np,
BorderActionType  action,
int  startx,
int  starty 
)
void ResizeClientKeyboard ( ClientNode np)
void ResizeController ( int  wasDestroyed)
static
void StopResize ( ClientNode np)
static

Variable Documentation

char shouldStopResize
static

Definition at line 22 of file resize.c.

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

joewing.net / Projects / JWM