19 #ifndef OPENXCOM_WINDOW_H
20 #define OPENXCOM_WINDOW_H
22 #include "../Engine/Surface.h"
34 enum WindowPopup { POPUP_NONE, POPUP_HORIZONTAL, POPUP_VERTICAL, POPUP_BOTH };
45 static const double POPUP_SPEED;
53 bool _contrast, _screen, _thinBorder;
55 static Sound *soundPopup[3];
A game state that receives user input and reacts accordingly.
Definition: State.h:44
Box with a coloured border and custom background.
Definition: Window.h:42
Window(State *state, int width, int height, int x=0, int y=0, WindowPopup popup=POPUP_NONE)
Creates a new window with the specified size and position.
Definition: Window.cpp:42
Timer used to run code in fixed intervals.
Definition: Timer.h:37
void setColor(Uint8 color)
Sets the border color.
Definition: Window.cpp:86
Container for sound effects.
Definition: Sound.h:32
void setDY(int dy)
sets the Y delta.
Definition: Window.cpp:277
void draw()
Draws the window.
Definition: Window.cpp:162
void think()
Handles the timers.
Definition: Window.cpp:115
void setBackground(Surface *bg)
Sets the background surface.
Definition: Window.cpp:76
WindowPopup
Enumeration for the type of animation when a window pops up.
Definition: Window.h:34
Element that is blit (rendered) onto the screen.
Definition: Surface.h:39
void popup()
Popups the window.
Definition: Window.cpp:129
~Window()
Cleans up the window.
Definition: Window.cpp:67
void setHighContrast(bool contrast)
Sets the high contrast color setting.
Definition: Window.cpp:106
void setDX(int dx)
sets the X delta.
Definition: Window.cpp:268
Uint8 getColor() const
Gets the border color.
Definition: Window.cpp:96
void setThinBorder()
Give this window a thin border.
Definition: Window.cpp:285