place.c File Reference

Go to the source code of this file.

Defines

#define CASCADE_FUZZ   15
#define CASCADE_INTERVAL   50

Enumerations

enum  MetaWindowDirection { META_LEFT, META_RIGHT, META_TOP, META_BOTTOM }

Functions

static gint northwestcmp (gconstpointer a, gconstpointer b)
static void find_next_cascade (MetaWindow *window, MetaFrameGeometry *fgeom, GList *windows, int x, int y, int *new_x, int *new_y)
static void find_most_freespace (MetaWindow *window, MetaFrameGeometry *fgeom, MetaWindow *focus_window, int x, int y, int *new_x, int *new_y)
static void avoid_being_obscured_as_second_modal_dialog (MetaWindow *window, MetaFrameGeometry *fgeom, int *x, int *y)
static gboolean rectangle_overlaps_some_window (MetaRectangle *rect, GList *windows)
static gint leftmost_cmp (gconstpointer a, gconstpointer b)
static gint topmost_cmp (gconstpointer a, gconstpointer b)
static void center_tile_rect_in_area (MetaRectangle *rect, MetaRectangle *work_area)
static gboolean find_first_fit (MetaWindow *window, MetaFrameGeometry *fgeom, GList *windows, int xinerama, int x, int y, int *new_x, int *new_y)
void meta_window_place (MetaWindow *window, MetaFrameGeometry *fgeom, int x, int y, int *new_x, int *new_y)


Define Documentation

#define CASCADE_FUZZ   15

Referenced by find_next_cascade().

#define CASCADE_INTERVAL   50

Referenced by find_next_cascade().


Enumeration Type Documentation

Enumerator:
META_LEFT 
META_RIGHT 
META_TOP 
META_BOTTOM 

Definition at line 36 of file place.c.


Function Documentation

static void avoid_being_obscured_as_second_modal_dialog ( MetaWindow window,
MetaFrameGeometry fgeom,
int *  x,
int *  y 
) [static]

static void center_tile_rect_in_area ( MetaRectangle rect,
MetaRectangle work_area 
) [static]

Definition at line 473 of file place.c.

References _MetaRectangle::height, _MetaRectangle::width, _MetaRectangle::x, and _MetaRectangle::y.

Referenced by find_first_fit().

static gboolean find_first_fit ( MetaWindow window,
MetaFrameGeometry fgeom,
GList *  windows,
int  xinerama,
int  x,
int  y,
int *  new_x,
int *  new_y 
) [static]

static void find_most_freespace ( MetaWindow window,
MetaFrameGeometry fgeom,
MetaWindow focus_window,
int  x,
int  y,
int *  new_x,
int *  new_y 
) [static]

static void find_next_cascade ( MetaWindow window,
MetaFrameGeometry fgeom,
GList *  windows,
int  x,
int  y,
int *  new_x,
int *  new_y 
) [static]

static gint leftmost_cmp ( gconstpointer  a,
gconstpointer  b 
) [static]

Definition at line 417 of file place.c.

References _MetaWindow::frame, _MetaWindow::rect, _MetaFrame::rect, and _MetaRectangle::x.

Referenced by find_first_fit().

void meta_window_place ( MetaWindow window,
MetaFrameGeometry fgeom,
int  x,
int  y,
int *  new_x,
int *  new_y 
)

static gint northwestcmp ( gconstpointer  a,
gconstpointer  b 
) [static]

static gboolean rectangle_overlaps_some_window ( MetaRectangle rect,
GList *  windows 
) [static]

static gint topmost_cmp ( gconstpointer  a,
gconstpointer  b 
) [static]

Definition at line 445 of file place.c.

References _MetaWindow::frame, _MetaWindow::rect, _MetaFrame::rect, and _MetaRectangle::y.

Referenced by find_first_fit().


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