ReactOS
0.4.16-dev-306-g647d351
matrix.h
Go to the documentation of this file.
1
#ifndef MATRIX_INCLUDED
2
#define MATRIX_INCLUDED
3
4
#ifdef __cplusplus
5
extern
"C"
{
6
#endif
7
8
//
9
// Top BYTE of each glyph is used as flags
10
// (redraw state, intensity etc)
11
//
12
// Bottom BYTE of each glyph is the character value
13
//
14
// Bit: 15 14 13-8 | 7-0
15
//
16
// [Redraw][Blank][Intensity] [Glyph]
17
//
18
typedef
unsigned
short
GLYPH
;
19
20
#define GLYPH_REDRAW 0x8000
21
#define GLYPH_BLANK 0x4000
22
23
//
24
// The "matrix" is basically an array of these
25
// column structures, positioned side-by-side
26
//
27
typedef
struct
28
{
29
BOOL
state
;
30
int
countdown
;
31
32
BOOL
started
;
33
int
runlen
;
34
35
int
blippos
;
36
int
bliplen
;
37
38
int
length
;
39
GLYPH
*
glyph
;
40
41
}
MATRIX_COLUMN
;
42
43
typedef
struct
44
{
45
int
width
;
46
int
height
;
47
int
numcols
;
48
int
numrows
;
49
50
// bitmap containing glyphs.
51
HDC
hdcBitmap
;
52
HBITMAP
hbmBitmap
;
53
54
MATRIX_MESSAGE
*
message
;
55
56
MATRIX_COLUMN
column
[1];
57
58
}
MATRIX
;
59
60
GLYPH
RandomGlyph
(
int
intensity);
61
void
DrawGlyph
(
MATRIX
*
matrix
,
HDC
hdc
,
int
xpos,
int
ypos,
GLYPH
glyph);
62
63
HWND
CreateScreenSaveWnd
(
HWND
hwndParent
,
RECT
*
rect
);
64
void
InitScreenSaveClass
();
65
66
#ifdef __cplusplus
67
}
68
#endif
69
70
#endif
hwndParent
static HWND hwndParent
Definition:
cryptui.c:300
BOOL
unsigned int BOOL
Definition:
ntddk_ex.h:94
matrix
GLuint GLenum matrix
Definition:
glext.h:9407
void
Definition:
nsiface.idl:2307
GLYPH
unsigned short GLYPH
Definition:
matrix.h:18
CreateScreenSaveWnd
HWND CreateScreenSaveWnd(HWND hwndParent, RECT *rect)
Definition:
matrix.c:390
RandomGlyph
GLYPH RandomGlyph(int intensity)
Definition:
matrix.c:45
DrawGlyph
void DrawGlyph(MATRIX *matrix, HDC hdc, int xpos, int ypos, GLYPH glyph)
Definition:
matrix.c:167
InitScreenSaveClass
void InitScreenSaveClass()
hdc
HDC hdc
Definition:
main.c:9
HBITMAP
static HBITMAP
Definition:
button.c:44
HDC
static HDC
Definition:
imagelist.c:88
rect
& rect
Definition:
startmenu.cpp:1413
MATRIX_COLUMN
Definition:
matrix.h:28
MATRIX_COLUMN::countdown
int countdown
Definition:
matrix.h:30
MATRIX_COLUMN::blippos
int blippos
Definition:
matrix.h:35
MATRIX_COLUMN::glyph
GLYPH * glyph
Definition:
matrix.h:39
MATRIX_COLUMN::state
BOOL state
Definition:
matrix.h:29
MATRIX_COLUMN::runlen
int runlen
Definition:
matrix.h:33
MATRIX_COLUMN::bliplen
int bliplen
Definition:
matrix.h:36
MATRIX_COLUMN::length
int length
Definition:
matrix.h:38
MATRIX_COLUMN::started
BOOL started
Definition:
matrix.h:32
MATRIX_MESSAGE
Definition:
message.h:13
MATRIX
Definition:
matrix.h:44
MATRIX::hdcBitmap
HDC hdcBitmap
Definition:
matrix.h:51
MATRIX::numcols
int numcols
Definition:
matrix.h:47
MATRIX::height
int height
Definition:
matrix.h:46
MATRIX::numrows
int numrows
Definition:
matrix.h:48
MATRIX::message
MATRIX_MESSAGE * message
Definition:
matrix.h:54
MATRIX::width
int width
Definition:
matrix.h:45
MATRIX::hbmBitmap
HBITMAP hbmBitmap
Definition:
matrix.h:52
column
Definition:
wbemprox_private.h:94
tagRECT
Definition:
windef.h:305
modules
rosapps
applications
screensavers
matrix
matrix.h
Generated on Mon Dec 2 2024 06:08:38 for ReactOS by
1.9.6