Ginga  0.13.6
 All Classes Namespaces Functions Variables
IWindow.h
1 /******************************************************************************
2 Este arquivo eh parte da implementacao do ambiente declarativo do middleware
3 Ginga (Ginga-NCL).
4 
5 Direitos Autorais Reservados (c) 1989-2007 PUC-Rio/Laboratorio TeleMidia
6 
7 Este programa eh software livre; voce pode redistribui-lo e/ou modificah-lo sob
8 os termos da Licenca Publica Geral GNU versao 2 conforme publicada pela Free
9 Software Foundation.
10 
11 Este programa eh distribuido na expectativa de que seja util, porem, SEM
12 NENHUMA GARANTIA; nem mesmo a garantia implicita de COMERCIABILIDADE OU
13 ADEQUACAO A UMA FINALIDADE ESPECIFICA. Consulte a Licenca Publica Geral do
14 GNU versao 2 para mais detalhes.
15 
16 Voce deve ter recebido uma copia da Licenca Publica Geral do GNU versao 2 junto
17 com este programa; se nao, escreva para a Free Software Foundation, Inc., no
18 endereco 59 Temple Street, Suite 330, Boston, MA 02111-1307 USA.
19 
20 Para maiores informacoes:
21 ncl @ telemidia.puc-rio.br
22 http://www.ncl.org.br
23 http://www.ginga.org.br
24 http://www.telemidia.puc-rio.br
25 ******************************************************************************
26 This file is part of the declarative environment of middleware Ginga (Ginga-NCL)
27 
28 Copyright: 1989-2007 PUC-RIO/LABORATORIO TELEMIDIA, All Rights Reserved.
29 
30 This program is free software; you can redistribute it and/or modify it under
31 the terms of the GNU General Public License version 2 as published by
32 the Free Software Foundation.
33 
34 This program is distributed in the hope that it will be useful, but WITHOUT ANY
35 WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
36 PARTICULAR PURPOSE. See the GNU General Public License version 2 for more
37 details.
38 
39 You should have received a copy of the GNU General Public License version 2
40 along with this program; if not, write to the Free Software
41 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
42 
43 For further information contact:
44 ncl @ telemidia.puc-rio.br
45 http://www.ncl.org.br
46 http://www.ginga.org.br
47 http://www.telemidia.puc-rio.br
48 *******************************************************************************/
49 
50 #ifndef IWINDOW_H_
51 #define IWINDOW_H_
52 
53 #include "util/IColor.h"
54 using namespace ::br::pucrio::telemidia::util;
55 
56 #include "ISurface.h"
57 
58 namespace br {
59 namespace pucrio {
60 namespace telemidia {
61 namespace ginga {
62 namespace core {
63 namespace mb {
64  class IWindow {
65  public:
66  virtual ~IWindow(){};
67 
68  virtual void setBgColor(int r, int g, int b, int alpha)=0;
69  virtual IColor* getBgColor()=0;
70  virtual void setColorKey(int r, int g, int b)=0;
71  virtual IColor* getColorKey()=0;
72  virtual void setWindowColor(int r, int g, int b, int alpha)=0;
73  virtual IColor* getWindowColor()=0;
74  virtual void setBorder(
75  int r, int g, int b, int alpha=255, int bWidth=0)=0;
76 
77  virtual void getBorder(
78  int* r, int* g, int* b, int* alpha, int* bWidth)=0;
79 
80  virtual GingaScreenID getScreen()=0;
81  virtual void revertContent()=0;
82  virtual void setChildSurface(ISurface* listener)=0;
83  virtual int getCap(string capName)=0;
84  virtual void setCaps(int caps)=0;
85  virtual void addCaps(int capability)=0;
86  virtual int getCaps()=0;
87  virtual void draw()=0;
88  virtual void setBounds(int x, int y, int width, int height)=0;
89  virtual void moveTo(int x, int y)=0;
90  virtual void resize(int width, int height)=0;
91  virtual void raiseToTop()=0;
92  virtual void lowerToBottom()=0;
93  virtual void setCurrentTransparency(int alpha)=0;
94  virtual int getTransparencyValue()=0;
95  virtual GingaWindowID getId()=0;
96  virtual void show()=0;
97  virtual void hide()=0;
98 
99  virtual int getX()=0;
100  virtual int getY()=0;
101  virtual int getW()=0;
102  virtual int getH()=0;
103  virtual float getZ()=0;
104 
105  virtual void setX(int x)=0;
106  virtual void setY(int y)=0;
107  virtual void setW(int w)=0;
108  virtual void setH(int h)=0;
109  virtual void setZ(float h)=0;
110 
111  virtual void* getContent()=0;
112 
113  virtual bool isGhostWindow()=0;
114  virtual void setGhostWindow(bool ghost)=0;
115  virtual bool isVisible()=0;
116  virtual void validate()=0;
117  virtual void setStretch(bool stretchTo)=0;
118  virtual bool getStretch()=0;
119  virtual void setFit(bool fitTo)=0;
120  virtual bool getFit()=0;
121  virtual void clearContent()=0;
122  virtual void renderImgFile(string serializedImageUrl)=0;
123  virtual void renderFrom(ISurface* s)=0;
124  virtual void blit(IWindow* src)=0;
125  virtual void stretchBlit(IWindow* src)=0;
126  virtual void lock()=0;
127  virtual void unlock()=0;
128  virtual void lockChilds()=0;
129  virtual void unlockChilds()=0;
130  virtual string getDumpFileUri(int quality, int dumpW, int dumpH)=0;
131  };
132 }
133 }
134 }
135 }
136 }
137 }
138 
139 #endif /*IWINDOW_H_*/
Definition: IColor.h:64