summaryrefslogtreecommitdiffstats
path: root/Master/Real-Time Systems/RTS_A8/src/ApplicationWindow.h
diff options
context:
space:
mode:
authorSven Eisenhauer <sven@sven-eisenhauer.net>2023-11-10 15:11:48 +0100
committerSven Eisenhauer <sven@sven-eisenhauer.net>2023-11-10 15:11:48 +0100
commit33613a85afc4b1481367fbe92a17ee59c240250b (patch)
tree670b842326116b376b505ec2263878912fca97e2 /Master/Real-Time Systems/RTS_A8/src/ApplicationWindow.h
downloadStudium-master.tar.gz
Studium-master.tar.bz2
add new repoHEADmaster
Diffstat (limited to 'Master/Real-Time Systems/RTS_A8/src/ApplicationWindow.h')
-rw-r--r--Master/Real-Time Systems/RTS_A8/src/ApplicationWindow.h45
1 files changed, 45 insertions, 0 deletions
diff --git a/Master/Real-Time Systems/RTS_A8/src/ApplicationWindow.h b/Master/Real-Time Systems/RTS_A8/src/ApplicationWindow.h
new file mode 100644
index 0000000..e747e2b
--- /dev/null
+++ b/Master/Real-Time Systems/RTS_A8/src/ApplicationWindow.h
@@ -0,0 +1,45 @@
+/*
+ * ApplicationWindow.h
+ *
+ * Created on: 01.12.2010
+ * Author: sven
+ */
+
+#ifndef APPLICATIONWINDOW_H_
+#define APPLICATIONWINDOW_H_
+
+#include <string>
+
+class ApplicationWindow {
+public:
+ ApplicationWindow(int width,int height,int bpp);
+ virtual ~ApplicationWindow();
+ bool create();
+ bool destroy();
+ void setResolution( int width, int height );
+ void setColorDepth( int bpp );
+ void setCaption( const std::string& caption );
+ void setFullscreen( bool enable = true );
+
+ enum
+ {
+ OPENED_WINDOW = 0x0001,
+ FULL_SCREEN = 0x0002
+ };
+private:
+ int mWidth;
+ int mHeight;
+ int mBpp;
+
+ std::string mCaption;
+ char mState;
+
+ //----------------------------------------------------------------
+ ///
+ /// copy constructor and assign operator
+ /// set private
+ ApplicationWindow(const ApplicationWindow& src);
+ ApplicationWindow& operator=(const ApplicationWindow& src);
+};
+
+#endif /* APPLICATIONWINDOW_H_ */