Add support for the zoomed state to managed windows.
[gwm.git] / frame.h
blob75fcd258b073afed9ef337f99d3e020195e1db57
1 #ifndef FRAME_H
2 #define FRAME_H
4 extern struct gwm_window *focus_frame; /* the WINDOW_FRAME which has the
5 focus, if any */
7 extern int frame_t( struct gwm_window *window, int include_x_border );
8 extern int frame_b( struct gwm_window *window, int include_x_border );
9 extern int frame_l( struct gwm_window *window, int include_x_border );
10 extern int frame_r( struct gwm_window *window, int include_x_border );
11 extern int frame_xb( struct gwm_window *window );
13 /* Change the _NET_FRAME_EXTENTS property on the client. */
14 extern void update_frame_extents( struct gwm_window *window );
16 extern void translate_child_to_frame( struct gwm_window *frame,
17 int *fx, int *fy, int *fwidth,
18 int *fheight, int cx, int cy,
19 int cwidth, int cheight,
20 int cborder, int win_gravity );
22 extern void translate_frame_to_child( struct gwm_window *frame,
23 int *cx, int *cy, int fx, int fy,
24 int cborder, int win_gravity );
26 extern void apply_size_constraints( struct gwm_window *window, int *width,
27 int *height );
29 extern void activate_focus_frame( xcb_timestamp_t time );
30 extern void deactivate_focus_frame( void );
32 extern void synthetic_configure_notify( struct gwm_window *window );
34 extern const event_handler frame_handlers[], childless_handlers[];
36 #endif