aboutsummaryrefslogtreecommitdiffstats
path: root/src/base_client.h
blob: efae47adc0e218fd14ff9cbbffc71f64aa900301 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
/* 
 *  Matchbox Window Manager - A lightweight window manager not for the
 *                            desktop.
 *
 *  Authored By Matthew Allum <mallum@o-hand.com>
 *
 *  Copyright (c) 2002, 2004 OpenedHand Ltd - http://o-hand.com
 *
 *  SPDX-License-Identifier: GPL-2.0-or-later
 *
 */

#define _GNU_SOURCE

#ifndef _BASE_CLIENT_H_
#define _BASE_CLIENT_H_

#include <stdio.h>
#include <stdlib.h>
#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include <X11/Xatom.h>

#include "structs.h"
#include "wm.h"

Client* 
base_client_new (Wm *w, Window win);

void 
base_client_process_name (Client *c);

/* This will set the window attributes to what _we_ want */
void 
base_client_configure (Client *c);

/* sets inital 'object methods' */
void 
base_client_set_funcs (Client *c);

/* Frame the window if needed */
void 
base_client_reparent (Client *c);

/* redraw the clients frame */
void 
base_client_redraw (Client *c, Bool use_cache);

/* Hide any transients */
void 
base_client_hide_transients (Client *c);

/* button press on frame */
void 
base_client_button_press (Client *c, XButtonEvent *e);

/* move and resize the window */
void 
base_client_move_resize (Client *c);

/* iconize client */
void 
base_client_iconize (Client *c);

/* return the 'area' covered by the window. Including the frame
   Would return 0 for an unmapped window
*/
void 
base_client_get_coverage (Client *c, int *x, int *y, int *w, int *h);

void 
base_client_hide (Client *c);

void 
base_client_show (Client *c);

void 
base_client_destroy (Client *c);

#endif