X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=src%2Futil%2Fwindow.h;h=074079eed9db6b3f301f7801e476301b67c92171;hb=a72ae04bf96477f11d8bf24baea54596f6d3356b;hp=fd596c06e795bed023f84cede9202474ff5b76b4;hpb=d1123a0ede12eb1126eb5eb932d9177de67d46c5;p=chaz%2Ftint2 diff --git a/src/util/window.h b/src/util/window.h index fd596c0..074079e 100644 --- a/src/util/window.h +++ b/src/util/window.h @@ -1,6 +1,6 @@ /************************************************************************** -* window : -* - +* window : +* - * * Check COPYING file for Copyright * @@ -9,37 +9,28 @@ #ifndef WINDOW_H #define WINDOW_H -#include -#include #include -typedef struct window_global -{ - Window main_win; -} window_global; - -window_global window; - void set_active (Window win); void set_desktop (int desktop); void set_close (Window win); int server_get_current_desktop (); int server_get_number_of_desktop (); int window_is_iconified (Window win); +int window_is_urgent (Window win); int window_is_hidden (Window win); int window_is_active (Window win); -int get_icon_count (long *data, int num); -long *get_best_icon (long *data, int icon_count, int num, int *iw, int *ih, int best_icon_size); +int window_is_skip_taskbar (Window win); +int get_icon_count (gulong *data, int num); +gulong *get_best_icon (gulong *data, int icon_count, int num, int *iw, int *ih, int best_icon_size); +void window_maximize_restore (Window win); void window_toggle_shade (Window win); int window_get_desktop (Window win); void windows_set_desktop (Window win, int desktop); int window_get_monitor (Window win); Window window_get_active (); -// draw rounded rectangle -void draw_rect(cairo_t *c, double x, double y, double w, double h, double r); - void get_text_size(PangoFontDescription *font, int *height_ink, int *height, int panel_height, char *text, int len);