summaryrefslogtreecommitdiffstats
path: root/tkmacosx/macosxlib.h
blob: 22d71dbeee63c7ce631a12218e5a4fb1d430a1db (plain)
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
// Copyright (C) 1999-2016
// Smithsonian Astrophysical Observatory, Cambridge, MA, USA
// For conditions of distribution and use, see copyright notice in "copyright"

#ifndef __macosxlib_h__
#define __macosxlib_h__

#include <X11/Xlib.h>
#include <X11/Xutil.h>

#include "vector.h"

void macosxBegin();
void macosxEnd();

void macosxColor(XColor*);
void macosxWidth(float);
void macosxDash(float*,int);
void macosxFont(const char*, float);
void macosxClip(Vector, Vector);

void macosxDrawText(Vector, float, const char*);
void macosxDrawLine(Vector, Vector);
void macosxDrawLines(Vector*, int);
void macosxDrawRect(Vector, Vector);
void macosxDrawArc(Vector, float, float, float);
void macosxDrawCurve(Vector, Vector, Vector, Vector);

void macosxFillPolygon(Vector*, int);

void macosxBitmapCreate(void*, int, int, const Vector&, const Vector&);

#endif