cvsimport
[fvwm.git] / fvwm / geometry.h
bloba20899b53696dcebf1b4dd2cc25fa8f3f67ea8cd
1 /* -*-c-*- */
3 #ifndef GEOMETRY_H
4 #define GEOMETRY_H
6 #define CS_ROUND_UP 0x01
7 #define CS_UPDATE_MAX_DEFECT 0x02
9 void gravity_get_naked_geometry(
10 int gravity, FvwmWindow *t, rectangle *dest_g, rectangle *orig_g);
11 void gravity_add_decoration(
12 int gravity, FvwmWindow *t, rectangle *dest_g, rectangle *orig_g);
13 void get_relative_geometry(rectangle *rel_g, rectangle *abs_g);
14 void get_absolute_geometry(rectangle *abs_g, rectangle *rel_g);
15 void gravity_translate_to_northwest_geometry(
16 int gravity, FvwmWindow *t, rectangle *dest_g, rectangle *orig_g);
17 void gravity_translate_to_northwest_geometry_no_bw(
18 int gravity, FvwmWindow *t, rectangle *dest_g, rectangle *orig_g);
19 void get_title_geometry(
20 FvwmWindow *fw, rectangle *ret_g);
21 int get_title_gravity(
22 FvwmWindow *fw);
23 void get_title_gravity_factors(
24 FvwmWindow *fw, int *ret_fx, int *ret_fy);
25 Bool get_title_button_geometry(
26 FvwmWindow *fw, rectangle *ret_g, int context);
27 void get_title_font_size_and_offset(
28 FvwmWindow *fw, direction_t title_dir,
29 Bool is_left_title_rotated_cw, Bool is_right_title_rotated_cw,
30 Bool is_top_title_rotated, Bool is_bottom_title_rotated,
31 int *size, int *offset);
32 void get_icon_corner(
33 FvwmWindow *fw, rectangle *ret_g);
34 void get_shaded_geometry(
35 FvwmWindow *fw, rectangle *small_g, rectangle *big_g);
36 void get_shaded_geometry_with_dir(
37 FvwmWindow *fw, rectangle *small_g, rectangle *big_g,
38 direction_t shade_dir);
39 void get_unshaded_geometry(
40 FvwmWindow *fw, rectangle *ret_g);
41 void get_shaded_client_window_pos(
42 FvwmWindow *fw, rectangle *ret_g);
43 void get_client_geometry(
44 FvwmWindow *fw, rectangle *ret_g);
45 void get_window_borders(
46 const FvwmWindow *fw, size_borders *borders);
47 void get_window_borders_no_title(
48 const FvwmWindow *fw, size_borders *borders);
49 void set_window_border_size(
50 FvwmWindow *fw, int used_width);
51 Bool is_window_border_minimal(
52 FvwmWindow *fw);
53 void update_relative_geometry(FvwmWindow *fw);
54 void update_absolute_geometry(FvwmWindow *fw);
55 void maximize_adjust_offset(FvwmWindow *fw);
56 void constrain_size(
57 FvwmWindow *fw, const XEvent *e, int *widthp,
58 int *heightp, int xmotion, int ymotion, int flags);
59 void gravity_constrain_size(
60 int gravity, FvwmWindow *t, rectangle *rect, int flags);
61 Bool get_visible_window_or_icon_geometry(
62 FvwmWindow *fw, rectangle *ret_g);
63 Bool get_visible_icon_geometry(
64 FvwmWindow *fw, rectangle *ret_g);
65 void get_icon_geometry(
66 FvwmWindow *fw, rectangle *ret_g);
67 Bool get_visible_icon_title_geometry(
68 FvwmWindow *fw, rectangle *ret_g);
69 Bool get_icon_title_geometry(
70 FvwmWindow *fw, rectangle *ret_g);
71 Bool get_visible_icon_picture_geometry(
72 FvwmWindow *fw, rectangle *ret_g);
73 Bool get_icon_picture_geometry(
74 FvwmWindow *fw, rectangle *ret_g);
75 void broadcast_icon_geometry(FvwmWindow *fw, Bool do_force);
76 void move_icon_to_position(FvwmWindow *fw);
77 void modify_icon_position(FvwmWindow *fw, int dx, int dy);
78 void set_icon_position(FvwmWindow *fw, int x, int y);
79 void set_icon_picture_size(FvwmWindow *fw, int w, int h);
80 void resize_icon_title_height(FvwmWindow *fw, int dh);
81 void get_page_offset_rectangle(
82 int *ret_page_x, int *ret_page_y, rectangle *r);
83 void get_page_offset(
84 int *ret_page_x, int *ret_page_y, FvwmWindow *fw);
85 void get_page_offset_check_visible(
86 int *ret_page_x, int *ret_page_y, FvwmWindow *fw);
88 #endif