File: WindowHelpers.h

package info (click to toggle)
psychtoolbox-3 3.0.17.9.dfsg1-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 84,408 kB
  • sloc: ansic: 171,572; cpp: 20,885; objc: 5,164; sh: 1,878; python: 1,366; php: 384; makefile: 193; java: 113
file content (41 lines) | stat: -rw-r--r-- 1,661 bytes parent folder | download | duplicates (5)
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
/*
  PsychToolbox3/Source/Common/WindowHelpers.h

  AUTHORS:
  Allen.Ingling@nyu.edu     awi

  PLATFORMS: This file is included for all targets.

  PROJECTS:
  12/20/02  awi     Screen

  HISTORY:
  12/20/02  awi     Wrote it.

  DESCRIPTION:

  Convenience functions for extracting properties of windows from a window index or from a window record pointer.
  Sometimes doing that is a hassle because the properties of the window are actually properties of the associeate screen
  structure, hence we provide these conveience functions.

*/

//begin include once 
#ifndef PSYCH_IS_INCLUDED_WindowHelpers
#define PSYCH_IS_INCLUDED_WindowHelpers

void        PsychSetTextColorInWindowRecord(PsychColorType *textColor,  PsychWindowRecordType *winRec);
void        PsychSetTextBackgroundColorInWindowRecord(PsychColorType *textColor,  PsychWindowRecordType *winRec);
int         PsychGetDepthFromWindowRecord(PsychWindowRecordType *winRec);
void        PsychGetRectFromWindowRecord(double *rect, PsychWindowRecordType *windowRecord);
int         PsychGetNumBuffersFromWindowRecord(PsychWindowRecordType *windowRecord);
int         PsychGetNumPlanesFromWindowRecord(PsychWindowRecordType *windowRecord);
void        PsychSetWindowRecordValid(PsychWindowRecordType *winRec);
void        PsychCheckIfWindowRecordIsValid(PsychWindowRecordType *winRec);
psych_bool  PsychIsOnscreenWindow(PsychWindowRecordType *windowRecord);
psych_bool  PsychIsOffscreenWindow(PsychWindowRecordType *windowRecord);
psych_bool  PsychIsTexture(PsychWindowRecordType *windowRecord);
psych_bool  PsychIsMatlabOnscreenWindow(PsychWindowRecordType *windowRecord);

//end include once
#endif