]> git.lizzy.rs Git - bspwm.git/blobdiff - window.h
Mention the default reference
[bspwm.git] / window.h
index 9688ef33309f9842fadb254263ba27d7013b6cdd..ed601c99694ce85c0688c26c5d107bd7cf21cddb 100644 (file)
--- a/window.h
+++ b/window.h
@@ -1,4 +1,4 @@
-/* Copyright (c) 2012-2014, Bastien Dejean
+/* Copyright (c) 2012, Bastien Dejean
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
  * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- * The views and conclusions contained in the software and documentation are those
- * of the authors and should not be interpreted as representing official policies,
- * either expressed or implied, of the FreeBSD Project.
  */
 
 #ifndef BSPWM_WINDOW_H
 void schedule_window(xcb_window_t win);
 void manage_window(xcb_window_t win, rule_consequence_t *csq, int fd);
 void unmanage_window(xcb_window_t win);
-void window_draw_border(node_t *n, bool focused_window, bool focused_monitor);
-pointer_state_t *make_pointer_state(void);
-bool contains(xcb_rectangle_t a, xcb_rectangle_t b);
-xcb_rectangle_t get_rectangle(client_t *c);
-void get_side_handle(client_t *c, direction_t dir, xcb_point_t *pt);
+bool is_presel_window(xcb_window_t win);
+void initialize_presel_feedback(node_t *n);
+void draw_presel_feedback(monitor_t *m, desktop_t *d, node_t *n);
+void refresh_presel_feebacks_in(node_t *n, desktop_t *d, monitor_t *m);
+void update_colors(void);
+void update_colors_in(node_t *n, desktop_t *d, monitor_t *m);
+void draw_border(node_t *n, bool focused_node, bool focused_monitor);
+void window_draw_border(xcb_window_t win, uint32_t border_color_pxl);
 void adopt_orphans(void);
-void window_close(node_t *n);
-void window_kill(monitor_t *m, desktop_t *d, node_t *n);
-void set_fullscreen(node_t *n, bool value);
-void set_pseudo_tiled(node_t *n, bool value);
-void set_floating(node_t *n, bool value);
-void set_locked(monitor_t *m, desktop_t *d, node_t *n, bool value);
-void set_sticky(monitor_t *m, desktop_t *d, node_t *n, bool value);
-void set_private(monitor_t *m, desktop_t *d, node_t *n, bool value);
-void set_urgency(monitor_t *m, desktop_t *d, node_t *n, bool value);
-void set_floating_atom(xcb_window_t win, uint32_t value);
-void enable_floating_atom(xcb_window_t win);
-void disable_floating_atom(xcb_window_t win);
-uint32_t get_border_color(client_t *c, bool focused_window, bool focused_monitor);
-void update_floating_rectangle(client_t *c);
-void restrain_floating_width(client_t *c, int *width);
-void restrain_floating_height(client_t *c, int *height);
-void restrain_floating_size(client_t *c, int *width, int *height);
+uint32_t get_border_color(bool focused_node, bool focused_monitor);
+void initialize_floating_rectangle(node_t *n);
+xcb_rectangle_t get_window_rectangle(node_t *n);
+bool move_client(coordinates_t *loc, int dx, int dy);
+bool resize_client(coordinates_t *loc, resize_handle_t rh, int dx, int dy);
+void apply_size_hints(client_t *c, uint16_t *width, uint16_t *height);
 void query_pointer(xcb_window_t *win, xcb_point_t *pt);
-bool window_focus(xcb_window_t win);
 void window_border_width(xcb_window_t win, uint32_t bw);
 void window_move(xcb_window_t win, int16_t x, int16_t y);
 void window_resize(xcb_window_t win, uint16_t w, uint16_t h);
 void window_move_resize(xcb_window_t win, int16_t x, int16_t y, uint16_t w, uint16_t h);
-void window_raise(xcb_window_t win);
 void window_center(monitor_t *m, client_t *c);
 void window_stack(xcb_window_t w1, xcb_window_t w2, uint32_t mode);
 void window_above(xcb_window_t w1, xcb_window_t w2);
@@ -76,14 +62,10 @@ void window_lower(xcb_window_t win);
 void window_set_visibility(xcb_window_t win, bool visible);
 void window_hide(xcb_window_t win);
 void window_show(xcb_window_t win);
-void toggle_visibility(void);
-void enable_motion_recorder(void);
-void disable_motion_recorder(void);
-void update_motion_recorder(void);
 void update_input_focus(void);
 void set_input_focus(node_t *n);
 void clear_input_focus(void);
-void center_pointer(monitor_t *m);
+void center_pointer(xcb_rectangle_t r);
 void get_atom(char *name, xcb_atom_t *atom);
 void set_atom(xcb_window_t win, xcb_atom_t atom, uint32_t value);
 bool has_proto(xcb_atom_t atom, xcb_icccm_get_wm_protocols_reply_t *protocols);