This repository was archived by the owner on Aug 31, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 226
Expand file tree
/
Copy patheps.h
More file actions
72 lines (62 loc) · 2.13 KB
/
eps.h
File metadata and controls
72 lines (62 loc) · 2.13 KB
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
/* Copyright (C) 2003-2015 LiveCode Ltd.
This file is part of LiveCode.
LiveCode is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License v3 as published by the Free
Software Foundation.
LiveCode is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
for more details.
You should have received a copy of the GNU General Public License
along with LiveCode. If not see <http://www.gnu.org/licenses/>. */
//
// Eps class declarations
//
#ifndef MCEPS_H
#define MCEPS_H
#include "mccontrol.h"
class MCEPS : public MCControl
{
uint4 size;
char *postscript;
char *prolog;
real8 xscale;
real8 yscale;
int2 angle;
int2 tx;
int2 ty;
uint2 ex;
uint2 ey;
uint2 curpage;
uint2 pagecount;
uint4 *pageIndex;
MCImage *image;
static real8 xf;
static real8 yf;
static char defs[];
public:
MCEPS();
MCEPS(const MCEPS &sref);
// virtual functions from MCObject
virtual ~MCEPS();
virtual Chunk_term gettype() const;
virtual const char *gettypestring();
virtual Boolean mdown(uint2 which);
virtual Boolean mup(uint2 which, bool p_release);
virtual void setrect(const MCRectangle &nrect);
virtual Exec_stat getprop(uint4 parid, Properties which, MCExecPoint &, Boolean effective);
virtual Exec_stat setprop(uint4 parid, Properties which, MCExecPoint &, Boolean effective);
// virtual functions from MCControl
IO_stat load(IO_handle stream, const char *version);
IO_stat extendedload(MCObjectInputStream& p_stream, const char *p_version, uint4 p_length);
IO_stat save(IO_handle stream, uint4 p_part, bool p_force_ext);
IO_stat extendedsave(MCObjectOutputStream& p_stream, uint4 p_part);
virtual MCControl *clone(Boolean attach, Object_pos p, bool invisible);
// MW-2011-09-06: [[ Redraw ]] Added 'sprite' option - if true, ink and opacity are not set.
virtual void draw(MCDC *dc, const MCRectangle &dirty, bool p_isolated, bool p_sprite);
// Eps functions
void setextents();
void resetscale();
Boolean import(char *fname, IO_handle stream);
};
#endif