Gnash
0.8.11dev
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
gui
haiku
haikusup.h
Go to the documentation of this file.
1
//
2
// Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010,
3
// 2011 Free Software Foundation, Inc.
4
//
5
// This program is free software; you can redistribute it and/or modify
6
// it under the terms of the GNU General Public License as published by
7
// the Free Software Foundation; either version 3 of the License, or
8
// (at your option) any later version.
9
//
10
// This program is distributed in the hope that it will be useful,
11
// but WITHOUT ANY WARRANTY; without even the implied warranty of
12
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
// GNU General Public License for more details.
14
//
15
// You should have received a copy of the GNU General Public License
16
// along with this program; if not, write to the Free Software
17
// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18
19
20
#ifndef HAIKUGUI_H
21
#define HAIKUGUI_H
22
23
#ifdef HAVE_CONFIG_H
24
#include "
gnashconfig.h
"
25
#endif
26
27
#include "
gui.h
"
28
29
#ifndef RENDERER_AGG
30
#error "Haiku GUI needs AGG renderer"
31
#endif
32
33
#include "
haiku_agg_glue.h
"
34
35
#include <string>
36
37
#include "OS.h"
38
39
40
namespace
gnash
41
{
42
class
BeApp;
43
44
45
46
class
HaikuGui
:
public
Gui
47
{
48
BeApp *_app;
49
#ifdef RENDERER_AGG
50
HaikuAggGlue
_glue;
51
#endif
52
unsigned
int
_timeout;
53
std::string _sharefilename;
54
public
:
55
HaikuGui
(
unsigned
long
xid,
float
scale,
bool
loop,
RunResources
&
r
);
56
virtual
~HaikuGui
();
57
58
virtual
bool
init
(
int
argc,
char
**argv[]);
59
void
init_dumpfile
();
60
virtual
bool
createWindow
(
const
char
*title,
int
width
,
int
height
,
61
int
xPosition = 0,
int
yPosition = 0);
62
virtual
bool
run
();
63
virtual
bool
createMenu
();
64
virtual
bool
createMenuBar
();
65
virtual
bool
setupEvents
();
66
virtual
void
setFullscreen
();
67
virtual
void
unsetFullscreen
();
68
virtual
void
setFullscreenEtc
();
69
virtual
void
unsetFullscreenEtc
();
70
virtual
void
renderBuffer
();
71
virtual
void
setInterval
(
unsigned
int
interval);
72
virtual
void
setTimeout
(
unsigned
int
timeout);
73
virtual
void
error
(
const
std::string &msg);
74
virtual
bool
yesno
(
const
std::string &question);
75
76
void
GnashPulse
();
77
unsigned
int
getInterval
();
78
virtual
void
resize_view
(
int
width,
int
height);
79
void
Shown
();
80
void
Hidden
();
81
82
void
setInvalidatedRegions
(
const
InvalidatedRanges
& ranges);
83
};
84
85
86
};
87
88
#endif
89
Generated on Mon Sep 9 2013 23:08:40 for Gnash by
1.8.4