File: WindowHelpers.h

package info (click to toggle)
psychtoolbox-3 3.0.14.20170103%2Bgit6-g605ff5c.dfsg1-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 103,044 kB
  • ctags: 69,483
  • sloc: ansic: 167,371; cpp: 11,232; objc: 4,708; sh: 1,875; python: 383; php: 344; makefile: 207; 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