File awful/placement.lua
Author:
Julien Danjou <julien@danjou.info> |
Copyright ©2008 Julien Danjou
Release: v3.1.2
Functions
area_intersect_area (a, b) | Check if an area intersect another area. |
area_intersect_area_get (a, b) | Get the intersect area between a and b. |
area_remove (areas, elem) | Remove an area from a list, splitting the space between several area that can overlap. |
no_offscreen (c) | Place the client without it being outside the screen. |
no_overlap (c) | Place the client where there's place available with minimum overlap. |
under_mouse (c) | Place the client under the mouse. |
Functions
- area_intersect_area (a, b)
-
Check if an area intersect another area.
Parameters
- a: The area.
- b: The other area.
Return value:
True if they intersect, false otherwise. - area_intersect_area_get (a, b)
-
Get the intersect area between a and b.
Parameters
- a: The area.
- b: The other area.
Return value:
The intersect area. - area_remove (areas, elem)
-
Remove an area from a list, splitting the space between several area that can overlap.
Parameters
- areas: Table of areas.
- elem: Area to remove.
Return value:
The new area list. - no_offscreen (c)
-
Place the client without it being outside the screen.
Parameters
- c: The client.
- no_overlap (c)
-
Place the client where there's place available with minimum overlap.
Parameters
- c: The client.
- under_mouse (c)
-
Place the client under the mouse.
Parameters
- c: The client.