Gnash  0.8.11dev
aqua_glue.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 AQUA_GLUE_H
21 #define AQUA_GLUE_H
22 
23 #ifdef HAVE_CONFIG_H
24 #include "gnashconfig.h"
25 #endif
26 
27 
28 #include "gnash.h"
29 #include "snappingrange.h"
30 #include <AGL/agl.h>
31 
32 namespace gnash
33 {
34 
35 class AquaGlue
36 {
37  public:
38  virtual ~AquaGlue() { }
39  virtual bool init(int argc, char **argv[]) = 0;
40  virtual bool prepDrawingArea(int width, int height, AGLDrawable drawable) = 0;
41  virtual Renderer* createRenderHandler() = 0;
42  virtual void render() = 0;
43  protected:
44  int _bpp;
45 };
46 
47 }
48 
49 #endif /* AQUA_GLUE_H */
gnash::myWindow
WindowRef myWindow
Definition: aqua.cpp:48
gnash::gnash_cursor_type
gnash_cursor_type
Enumerates mouse cursor types.
Definition: gui.h:81
gnash::AquaGlue::init
virtual bool init(int argc, char **argv[])=0
gnash::Gui::_renderer
std::shared_ptr< Renderer > _renderer
The handler which is called to update the client area of our window.
Definition: gui.h:506
movie_root.h
gnash::AquaGui::setCursor
virtual void setCursor(gnash_cursor_type newcursor)
Sets the current mouse cursor for the Gui window.
Definition: aqua.cpp:143
gnash::CURSOR_INPUT
@ CURSOR_INPUT
Definition: gui.h:84
height
@ height
Definition: klash_part.cpp:329
gnash::AquaGui::renderBuffer
virtual void renderBuffer()
Definition: aqua.cpp:98
aquasup.h
gnash::AquaGui::setupEvents
virtual bool setupEvents()
Definition: aqua.cpp:213
gnash::AquaGui::createMenu
virtual bool createMenu()
Definition: aqua.cpp:196
getopt
int getopt(int, char *const *, const char *)
Renderer.h
gnash
Anonymous namespace for callbacks, local functions, event handlers etc.
Definition: dbus_ext.cpp:41
gnash::Gui
Parent class from which all GUI implementations will depend.
Definition: gui.h:88
gnash::AquaGui::createWindow
virtual bool createWindow(const char *title, int width, int height, int xPosition=0, int yPosition=0)
Create and display our window.
Definition: aqua.cpp:159
gnash::AquaGlue::~AquaGlue
virtual ~AquaGlue()
Definition: aqua_glue.h:38
gnash::Renderer
Base class for render handlers.
Definition: Renderer.h:189
gnash::AquaGlue
Definition: aqua_glue.h:36
gnash::AquaGui::setTimeout
virtual void setTimeout(unsigned int timeout)
Set the time in milliseconds after which the programme should exit.
Definition: aqua.cpp:134
gnash::Gui::_runResources
RunResources & _runResources
Per-run resources.
Definition: gui.h:500
gnash::RunResources::setRenderer
void setRenderer(std::shared_ptr< Renderer > r)
Definition: RunResources.h:108
gnash::DoWindowClose
pascal OSStatus DoWindowClose(EventHandlerCallRef nextHandler, EventRef theEvent, void *userData)
Definition: aqua.cpp:50
gnash::key::r
@ r
Definition: GnashKey.h:164
gnash::AquaGui::run
virtual bool run()
Start main rendering loop.
Definition: aqua.cpp:79
gnash::Gui::_width
int _width
Desired window width.
Definition: gui.h:494
gnash::RunResources
Class to group together per-run and external resources for Gnash.
Definition: RunResources.h:54
gnash::DoAdvanceMovie
void DoAdvanceMovie(EventLoopTimerRef inTimer, void *data)
Definition: aqua.cpp:58
gnash::CURSOR_HAND
@ CURSOR_HAND
Definition: gui.h:82
gnash::AquaGlue::createRenderHandler
virtual Renderer * createRenderHandler()=0
gnash::AquaGlue::_bpp
int _bpp
Definition: aqua_glue.h:44
log.h
gnashconfig.h
RunResources.h
gnash::Gui::_interval
unsigned int _interval
Main loop interval: the time between successive advance_movie calls.
Definition: gui.h:503
gnash::AquaGlue::render
virtual void render()=0
gnash::AquaGui::init
virtual bool init(int argc, char **argv[])
/ Initialise the gui and the associated renderer.
Definition: aqua.cpp:107
gnash::AquaGlue::prepDrawingArea
virtual bool prepDrawingArea(int width, int height, AGLDrawable drawable)=0
width
@ width
Definition: klash_part.cpp:329
snappingrange.h
data
SimpleBuffer data
Definition: LocalConnection_as.cpp:151
gnash::AquaGui
Definition: aquasup.h:38
gnash::Gui::_height
int _height
Desired window height.
Definition: gui.h:497
gnash::AquaGui::~AquaGui
virtual ~AquaGui()
Definition: aqua.cpp:71