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 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 |
| #define WINDOW_WIDTH 100 |
| typedef struct MotifWmHints MwmHints |
| 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] |
| int main | ( | int | argc, | |
| char ** | argv | |||
| ) |
Definition at line 117 of file test-gravity.c.
References calculate_position(), MotifWmHints::decorations, doubled, find_window(), MotifWmHints::flags, gravities, Rectangle::height, MWM_HINTS_DECORATIONS, NULL, screen, screen_height, screen_width, Rectangle::width, window_gravity_to_string(), WINDOW_HEIGHT, WINDOW_WIDTH, windows, Rectangle::x, and Rectangle::y.
| static const char* window_gravity_to_string | ( | int | gravity | ) | [static] |
int doubled[10] = { 0, } [static] |
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] |
Definition at line 36 of file test-gravity.c.
Referenced by calculate_position(), create_root_buffer(), main(), meta_frames_paint_to_drawable(), paint_all(), paint_windows(), and populate_cache().
int screen_width [static] |
Definition at line 35 of file test-gravity.c.
Referenced by calculate_position(), create_root_buffer(), main(), meta_frames_paint_to_drawable(), meta_ui_tab_popup_new(), paint_all(), paint_windows(), and populate_cache().
double screen_x_fraction[3] = { 0, 0.5, 1.0 } [static] |
double screen_y_fraction[3] = { 0, 0.5, 1.0 } [static] |
Rectangle window_rects[10] [static] |
Definition at line 26 of file test-gravity.c.
Window windows[10] [static] |
Definition at line 24 of file test-gravity.c.
Referenced by ensure_work_areas_validated(), find_window(), get_modal_transient(), main(), meta_display_queue_retheme_all_windows(), meta_invalidate_default_icons(), meta_screen_composite_all_windows(), meta_screen_manage_all_windows(), meta_screen_minimize_all_on_active_workspace_except(), meta_screen_show_desktop(), meta_select_workspace_expose_event(), meta_window_foreach_transient(), meta_window_place(), meta_window_present_delete_dialog(), meta_workspace_invalidate_work_area(), prefs_changed_callback(), queue_windows_showing(), regrab_window_bindings(), release_window_with_fd(), sanity_check_timestamps(), save_state(), search_and_destroy_window(), warn_about_lame_clients_and_finish_interact(), and window_would_be_covered().
int x_offset[3] = { 0, - WINDOW_WIDTH/2, -WINDOW_WIDTH } [static] |
int y_offset[3] = { 0, - WINDOW_HEIGHT/2, -WINDOW_HEIGHT } [static] |
1.5.5