File: gksquartz.h

package info (click to toggle)
gr-framework 0.73.14%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 11,600 kB
  • sloc: ansic: 87,413; cpp: 45,348; objc: 3,057; javascript: 2,647; makefile: 1,129; python: 1,000; sh: 991; yacc: 855; pascal: 554; fortran: 228
file content (40 lines) | stat: -rw-r--r-- 888 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
#ifndef _GKSQUARTZ_H_
#define _GKSQUARTZ_H_

#define MAX_WINDOWS 50

#define GKSTERM_FUNCTION_UNKNOWN 0
#define GKSTERM_FUNCTION_CREATE_WINDOW 1
#define GKSTERM_FUNCTION_DRAW 2
#define GKSTERM_FUNCTION_IS_ALIVE 3
#define GKSTERM_FUNCTION_CLOSE_WINDOW 4
#define GKSTERM_FUNCTION_IS_RUNNING 5
#define GKSTERM_FUNCTION_INQ_WS_STATE 6
#define GKSTERM_FUNCTION_INQ_LOCATOR 7

#include <CoreGraphics/CGGeometry.h>
#include <CoreGraphics/CGColor.h>

typedef struct
{
  int state;
  int win;
  gks_display_list_t dl;
  double width, height;
  double swidth, sheight;
  double a, b, c, d;
  double window[4], viewport[4];
  double aspect_ratio;
  double nominal_size;
  CGColorRef rgb[MAX_COLOR];
  int family, capheight;
  double angle;
  CGRect rect[MAX_TNR];
  pthread_t master_thread;
  int inactivity_counter;
  bool thread_alive;
  bool closed_by_api;
  bool empty;
} ws_state_list;

#endif