File: WindowHelpers.h

package info (click to toggle)
psychtoolbox-3 3.0.9%2Bsvn2579.dfsg1-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 63,408 kB
  • sloc: ansic: 73,310; cpp: 11,139; objc: 3,129; sh: 1,669; python: 382; php: 272; makefile: 172; java: 113
file content (53 lines) | stat: -rw-r--r-- 1,828 bytes parent folder | download
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
/*
  PsychToolbox2/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

int				PsychGetColorSizeFromWindowRecord(PsychWindowRecordType *windowRecord);


int					PsychGetWindowDepthValueFromWindowRecord(PsychWindowRecordType *windowRecord);
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