|
CTWM
|
#include "ctwm.h"#include <stdlib.h>#include "list.h"#include "screen.h"#include "win_regions.h"#include "xparsegeometry.h"Go to the source code of this file.
Functions | |
| static void | splitWindowRegionEntry (WindowEntry *we, RegGravity grav1, RegGravity grav2, int w, int h) |
| static WindowEntry * | findWindowEntry (WorkSpace *wl, TwmWindow *tmp_win, WindowRegion **wrp) |
| static WindowEntry * | prevWindowEntry (WindowEntry *we, WindowRegion *wr) |
| static void | mergeWindowEntries (WindowEntry *old, WindowEntry *we) |
| name_list ** | AddWindowRegion (char *geom, RegGravity grav1, RegGravity grav2) |
| void | CreateWindowRegions (void) |
| bool | PlaceWindowInRegion (TwmWindow *tmp_win, int *final_x, int *final_y) |
| void | RemoveWindowFromRegion (TwmWindow *tmp_win) |
| name_list ** AddWindowRegion | ( | char * | geom, |
| RegGravity | grav1, | ||
| RegGravity | grav2 ) |
Definition at line 29 of file win_regions.c.
References WindowRegion::clientlist, WindowRegion::entries, WindowRegion::grav1, WindowRegion::grav2, WindowRegion::h, WindowRegion::next, RLayoutXParseGeometry(), Scr, WindowRegion::w, WindowRegion::x, and WindowRegion::y.
| void CreateWindowRegions | ( | void | ) |
Definition at line 67 of file win_regions.c.
References WindowRegion::entries, WorkSpace::FirstWindowRegion, WindowEntry::h, WindowRegion::h, WindowRegion::next, WorkSpace::next, Scr, WindowEntry::w, WindowRegion::w, WindowEntry::x, WindowRegion::x, WindowEntry::y, and WindowRegion::y.
Referenced by ctwm_main().
|
static |
Definition at line 275 of file win_regions.c.
References WindowRegion::entries, WorkSpace::FirstWindowRegion, WindowEntry::next, WindowRegion::next, and WindowEntry::twm_win.
Referenced by RemoveWindowFromRegion().
|
static |
Definition at line 308 of file win_regions.c.
References WindowEntry::h, WindowEntry::w, WindowEntry::x, and WindowEntry::y.
Referenced by RemoveWindowFromRegion().
| bool PlaceWindowInRegion | ( | TwmWindow * | tmp_win, |
| int * | final_x, | ||
| int * | final_y ) |
Definition at line 107 of file win_regions.c.
References TwmWindow::class, WindowRegion::clientlist, WindowRegion::entries, WorkSpace::FirstWindowRegion, TwmWindow::frame_height, TwmWindow::frame_width, WindowRegion::grav1, WindowRegion::grav2, WindowEntry::h, LookInList(), TwmWindow::name, WindowEntry::next, WindowRegion::next, WorkSpace::next, OCCUPY, Scr, splitWindowRegionEntry(), WindowEntry::twm_win, WindowEntry::used, WindowEntry::w, TwmWindow::wr, WindowEntry::x, and WindowEntry::y.
Referenced by AddWindow(), and ChangeOccupation().
|
static |
Definition at line 295 of file win_regions.c.
References WindowRegion::entries, and WindowEntry::next.
Referenced by RemoveWindowFromRegion().
| void RemoveWindowFromRegion | ( | TwmWindow * | tmp_win | ) |
Definition at line 164 of file win_regions.c.
References findWindowEntry(), WindowEntry::h, mergeWindowEntries(), WindowEntry::next, WorkSpace::next, prevWindowEntry(), Scr, WindowEntry::twm_win, WindowEntry::used, WindowEntry::w, WindowEntry::x, and WindowEntry::y.
Referenced by ChangeOccupation(), and HandleDestroyNotify().
|
static |
Definition at line 219 of file win_regions.c.
References GRAV_EAST, GRAV_NORTH, GRAV_SOUTH, GRAV_WEST, WindowEntry::h, WindowEntry::next, splitWindowRegionEntry(), WindowEntry::w, WindowEntry::x, and WindowEntry::y.
Referenced by PlaceWindowInRegion(), and splitWindowRegionEntry().