This repository has been archived by the owner on Oct 27, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
/
FullScreenShellP.h
66 lines (55 loc) · 1.93 KB
/
FullScreenShellP.h
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
/*
* FullScreenShell
* $Id: FullScreenShellP.h,v 1.1 2001/06/09 15:20:24 go Exp $
*/
#ifndef __FullScreenShellP_h
#define __FullScreenShellP_h
#include <X11/IntrinsicP.h>
#include <X11/StringDefs.h>
#include <X11/ShellP.h>
#include <X11/extensions/xf86vmode.h>
#define MINMAJOR 0
#define MINMINOR 5
#include "FullScreenShell.h"
typedef struct {
XtPointer extension;
} FullScreenShellClassPart;
typedef struct _FullScreenShellClassRec {
CoreClassPart core_class;
CompositeClassPart composite_class;
ShellClassPart shell_class;
WMShellClassPart wm_shell_class;
VendorShellClassPart vendor_shell_class;
TopLevelShellClassPart top_level_shell_class;
ApplicationShellClassPart application_shell_class;
SessionShellClassPart session_shell_class;
FullScreenShellClassPart fullscreen_shell_class;
} FullScreenShellClassRec;
extern FullScreenShellClassRec fullScreenShellClassRec;
typedef struct _FullScreenShellPart {
Bool enable_screen_mode; /* 全画面モードが使えるか? */
int vid_count; /* モードの数 */
XF86VidModeModeInfo **modeinfos; /* モード情報 (0 が最初) */
Bool screen_mode; /* 現在の状態 */
Dimension width; /* Window に戻す時のサイズ */
Dimension height; /* Window に戻す時のサイズ */
int getsize;
} FullScreenShellPart;
typedef struct _FullScreenShellRec {
CorePart core;
CompositePart composite;
ShellPart shell;
WMShellPart wm;
VendorShellPart vendor;
TopLevelShellPart topLevel;
ApplicationShellPart application;
SessionShellPart session;
FullScreenShellPart fullscreen;
} FullScreenShellRec;
/* convinient defines */
#define COREWIDTH (fssw->core.width)
#define COREHEIGHT (fssw->core.height)
#define FSSW (fssw->fullscreen)
/* semi public functions */
void FullScreenShellRestoreMode(FullScreenShellWidget fssw);
#endif