global.h
Go to the documentation of this file.
1 /*--------------------------------------------------------------------------------------+
2 |
3 | Supplied under applicable software license agreement.
4 |
5 | Copyright (c) 2018 Bentley Systems, Incorporated. All rights reserved.
6 |
7 +---------------------------------------------------------------------------------------*/
8 #pragma once
9 
10 #include <Mstn\MstnDefs.h>
11 #include "mstypes.h"
12 #include <Mstn\MdlApi\msinputq.h>
13 
14 typedef struct msDisplayDescr
15  {
16  int id; /* card identity */
17  int xResolution; /* x resolution (pixels) */
18  int yResolution; /* y resolution (pixels) */
19  int screenWidth; /* physical size of screen used, x */
20  int screenHeight; /* physical size of screen used, y */
21  double aspect; /* aspect ratio of screen */
22  int charHeight; /* character height (pixels) */
23  int charWidth; /* width of characters (pixels) */
24  int cursorWidth; /* 1/2 of graphics cursor width */
25  int cursorHeight; /* 1/2 of graphics cursor height */
26  byte gammaTable[256]; /* gamma correction table */
27  double gammaCorrection; /* Gamma Correction (for dithering) */
28  BSIRect screenRect; /* coord's of device (truly global on Mac) */
30 
31 /*----------------------------------------------------------------------+
32 | |
33 | Graphics Configuration |
34 | |
35 +----------------------------------------------------------------------*/
36 typedef struct msGraphConfig
37  {
38  short numScreens; /* number of physical screens */
39  short currentScreen; /* displayed screen */
40  short windowBorderStyle; /* 0 normal, 1-9 = wide, 128 = none */
42  short needUpdateOnSwap; /* true if we need update on a swap */
43  BSIRect swapUpdateRect; /* Rectangle we need update for */
44  void *updateHereBack; /* frontmost wind that needs update */
45  int initialized; /* graphics initialized? */
46  } MSGraphConfig;
47 
MSDisplayDescr * displayDescrP[MAX_PHYSSCREEN]
Definition: global.h:41
int screenHeight
Definition: global.h:20
short needUpdateOnSwap
Definition: global.h:42
BSIRect swapUpdateRect
Definition: global.h:43
int cursorHeight
Definition: global.h:25
struct msGraphConfig MSGraphConfig
Definition: MstnDefs.h:24
byte gammaTable[256]
Definition: global.h:26
int initialized
Definition: global.h:45
int screenWidth
Definition: global.h:19
short numScreens
Definition: global.h:38
short currentScreen
Definition: global.h:39
struct msDisplayDescr MSDisplayDescr
Definition: global.h:36
unsigned char byte
Definition: Bentley.r.h:144
int charWidth
Definition: global.h:23
int cursorWidth
Definition: global.h:24
double gammaCorrection
Definition: global.h:27
int charHeight
Definition: global.h:22
int yResolution
Definition: global.h:18
double aspect
Definition: global.h:21
int xResolution
Definition: global.h:17
short windowBorderStyle
Definition: global.h:40
BSIRect screenRect
Definition: global.h:28
Definition: global.h:14
int id
Definition: global.h:16
void * updateHereBack
Definition: global.h:44

Copyright © 2017 Bentley Systems, Incorporated. All rights reserved.