test-gravity.c File Reference

Go to the source code of this file.

Data Structures

struct  Rectangle
struct  MotifWmHints

Defines

#define WINDOW_WIDTH   100
#define WINDOW_HEIGHT   100
#define MWM_HINTS_FUNCTIONS   (1L << 0)
#define MWM_HINTS_DECORATIONS   (1L << 1)
#define MWM_HINTS_INPUT_MODE   (1L << 2)
#define MWM_HINTS_STATUS   (1L << 3)

Typedefs

typedef struct MotifWmHints MwmHints

Functions

static const char * window_gravity_to_string (int gravity)
static void calculate_position (int i, int doubled, int *x, int *y)
static int find_window (Window window)
int main (int argc, char **argv)

Variables

static int gravities [10]
static Window windows [10]
static int doubled [10] = { 0, }
static Rectangle window_rects [10]
static int x_offset [3] = { 0, - WINDOW_WIDTH/2, -WINDOW_WIDTH }
static int y_offset [3] = { 0, - WINDOW_HEIGHT/2, -WINDOW_HEIGHT }
static double screen_x_fraction [3] = { 0, 0.5, 1.0 }
static double screen_y_fraction [3] = { 0, 0.5, 1.0 }
static int screen_width
static int screen_height


Define Documentation

#define MWM_HINTS_DECORATIONS   (1L << 1)

Definition at line 113 of file test-gravity.c.

#define MWM_HINTS_FUNCTIONS   (1L << 0)

Definition at line 112 of file test-gravity.c.

#define MWM_HINTS_INPUT_MODE   (1L << 2)

Definition at line 114 of file test-gravity.c.

#define MWM_HINTS_STATUS   (1L << 3)

Definition at line 115 of file test-gravity.c.

#define WINDOW_HEIGHT   100

Definition at line 29 of file test-gravity.c.

Referenced by main().

#define WINDOW_WIDTH   100

Definition at line 28 of file test-gravity.c.

Referenced by main().


Typedef Documentation

typedef struct MotifWmHints MwmHints


Function Documentation

static void calculate_position ( int  i,
int  doubled,
int *  x,
int *  y 
) [static]

Definition at line 69 of file test-gravity.c.

References screen_height, screen_width, screen_x_fraction, screen_y_fraction, x_offset, and y_offset.

Referenced by main().

static int find_window ( Window  window  )  [static]

Definition at line 92 of file test-gravity.c.

References windows.

Referenced by main().

int main ( int  argc,
char **  argv 
)

static const char* window_gravity_to_string ( int  gravity  )  [static]

Definition at line 39 of file test-gravity.c.

Referenced by main().


Variable Documentation

int doubled[10] = { 0, } [static]

Definition at line 25 of file test-gravity.c.

Referenced by main().

int gravities[10] [static]

Initial value:

 {
  NorthWestGravity, 
  NorthGravity,  
  NorthEastGravity,
  WestGravity,      
  CenterGravity, 
  EastGravity,
  SouthWestGravity,
  SouthGravity,
  SouthEastGravity,
  StaticGravity
}

Definition at line 6 of file test-gravity.c.

Referenced by main().

int screen_height [static]

int screen_width [static]

double screen_x_fraction[3] = { 0, 0.5, 1.0 } [static]

Definition at line 33 of file test-gravity.c.

Referenced by calculate_position().

double screen_y_fraction[3] = { 0, 0.5, 1.0 } [static]

Definition at line 34 of file test-gravity.c.

Referenced by calculate_position().

Rectangle window_rects[10] [static]

Definition at line 26 of file test-gravity.c.

Window windows[10] [static]

int x_offset[3] = { 0, - WINDOW_WIDTH/2, -WINDOW_WIDTH } [static]

Definition at line 31 of file test-gravity.c.

Referenced by calculate_position().

int y_offset[3] = { 0, - WINDOW_HEIGHT/2, -WINDOW_HEIGHT } [static]

Definition at line 32 of file test-gravity.c.

Referenced by calculate_position().


Generated on Sat Aug 23 22:04:23 2008 for metacity by  doxygen 1.5.5