JWM Source Documentation

place.h File Reference

Header for client placement functions. More...

Go to the source code of this file.

Data Structures

struct  BoundingBox
 Bounding box. More...

Typedefs

typedef struct BoundingBox BoundingBox
 Bounding box.

Functions

void RemoveClientStrut (struct ClientNode *np)
 Remove struts associated with a client.
void ReadClientStrut (struct ClientNode *np)
 Read struts associated with a client.
void PlaceClient (struct ClientNode *np, int alreadyMapped)
 Place a client on the screen.
void PlaceMaximizedClient (struct ClientNode *np, int horiz, int vert)
 Place a maximized client on the screen.
void GravitateClient (struct ClientNode *np, int negate)
 Move a client window for a border.
void GetGravityDelta (const struct ClientNode *np, int *x, int *y)
 Get the x and y deltas for gravitating a client.
void ConstrainSize (struct ClientNode *np)
 Constrain the size of a client to available screen space.
void GetScreenBounds (const struct ScreenType *sp, BoundingBox *box)
 Get the bounding box for the screen.
void SubtractTrayBounds (const struct TrayType *tp, BoundingBox *box, unsigned int layer)
 Subtract bounds for the configured trays.
void InitializePlacement ()
void StartupPlacement ()
void ShutdownPlacement ()
void DestroyPlacement ()

Detailed Description

Header for client placement functions.

Author:
Joe Wingbermuehle
Date:
2004-2006

Definition in file place.h.


Typedef Documentation

typedef struct BoundingBox BoundingBox

Bounding box.


Function Documentation

void ConstrainSize ( struct ClientNode np)

Constrain the size of a client to available screen space.

Parameters:
npThe client.
void DestroyPlacement ( )
void GetGravityDelta ( const struct ClientNode np,
int *  x,
int *  y 
)

Get the x and y deltas for gravitating a client.

Parameters:
npThe client.
xLocation to store the x delta.
yLocation to store the y delta.
void GetScreenBounds ( const struct ScreenType sp,
BoundingBox box 
)

Get the bounding box for the screen.

Parameters:
spA pointer to the screen whose bounds to get.
boxThe bounding box for the screen.
void GravitateClient ( struct ClientNode np,
int  negate 
)

Move a client window for a border.

Parameters:
npThe client.
negate0 to gravitate for a border, 1 to gravitate for no border.
void InitializePlacement ( )
void PlaceClient ( struct ClientNode np,
int  alreadyMapped 
)

Place a client on the screen.

Parameters:
npThe client to place.
alreadyMapped1 if already mapped, 0 if unmapped.
void PlaceMaximizedClient ( struct ClientNode np,
int  horiz,
int  vert 
)

Place a maximized client on the screen.

Parameters:
npThe client to place.
horizSet if maximizing horizontally.
vertSet if maximizing vertically.
void ReadClientStrut ( struct ClientNode np)

Read struts associated with a client.

Parameters:
npThe client.
void RemoveClientStrut ( struct ClientNode np)

Remove struts associated with a client.

Parameters:
npThe client.
void ShutdownPlacement ( )
void StartupPlacement ( )
void SubtractTrayBounds ( const struct TrayType tp,
BoundingBox box,
unsigned int  layer 
)

Subtract bounds for the configured trays.

Parameters:
tpThe first tray to consider.
boxThe bounding box.
layerThe maximum layer of the tray bounds.