aboutsummaryrefslogtreecommitdiff
path: root/Gem/develop/include/Gem/Base/GemWindow.h
diff options
context:
space:
mode:
authorTravis CI <zmoelnig@travis-ci.umlaeute.mur.at>2017-12-07 00:27:44 +0000
committerTravis CI <zmoelnig@travis-ci.umlaeute.mur.at>2017-12-07 00:27:44 +0000
commit438e4a09d30cbeb2b11dbeba04a72142ad4f71c4 (patch)
tree8287c9605e2d645c1d659f553c2bcc40609135d1 /Gem/develop/include/Gem/Base/GemWindow.h
parent8288fd4a0fc18e468bed3dd1420454da275cc6c5 (diff)
Gem 427a3d0e61d61e64e76facfa905c120356383bab osx/i386
built 'master:427a3d0e61d61e64e76facfa905c120356383bab' for osx/i386
Diffstat (limited to 'Gem/develop/include/Gem/Base/GemWindow.h')
-rw-r--r--Gem/develop/include/Gem/Base/GemWindow.h31
1 files changed, 16 insertions, 15 deletions
diff --git a/Gem/develop/include/Gem/Base/GemWindow.h b/Gem/develop/include/Gem/Base/GemWindow.h
index c69f249..f2946f8 100644
--- a/Gem/develop/include/Gem/Base/GemWindow.h
+++ b/Gem/develop/include/Gem/Base/GemWindow.h
@@ -27,20 +27,21 @@ CLASS
DESCRIPTION
-----------------------------------------------------------------*/
-namespace gem {
- class Context;
+namespace gem
+{
+class Context;
};
class GemBase;
class GEM_EXTERN GemWindow : public CPPExtern
{
- CPPEXTERN_HEADER(GemWindow, CPPExtern);
+ CPPEXTERN_HEADER(GemWindow, CPPExtern);
- private:
+private:
class PIMPL;
PIMPL*m_pimpl;
- public:
+public:
//////////
// Constructor
@@ -50,17 +51,17 @@ class GEM_EXTERN GemWindow : public CPPExtern
// Destructor
virtual ~GemWindow(void);
- public:
+public:
/* OUTPUT */
/* an outlet to propagate information to the patch... mainly callbacks from the context */
/* LATER think about detaching the output from the stack, so we can e.g. destroy a window from a mouse-callback */
void info(std::vector<t_atom>);
void info(t_symbol*s, int, t_atom*);
- void info(std::string);
- void info(std::string, t_float);
- void info(std::string, int i);
- void info(std::string, std::string);
+ void info(const std::string&);
+ void info(const std::string&, t_float);
+ void info(const std::string&, int i);
+ void info(const std::string&, const std::string&);
/* tell downstream objects to render */
void bang(void);
@@ -72,7 +73,7 @@ class GEM_EXTERN GemWindow : public CPPExtern
/* mouse entering window */
void entry(int devId, int state);
/* keyboard buttons */
- void key(int devId, std::string, int, int state);
+ void key(int devId, const std::string&, int, int state);
/* window resize/move */
void dimension(unsigned int, unsigned int);
@@ -177,14 +178,14 @@ class GEM_EXTERN GemWindow : public CPPExtern
virtual void transparentMess(bool on);
/* window decoration (pre creation) */
- virtual void titleMess(std::string);
+ virtual void titleMess(const std::string&);
virtual void borderMess(bool on);
virtual void fullscreenMess(int on);
virtual void offsetMess(int x, int y);
/* creation/destruction */
- virtual void createMess(std::string);
+ virtual void createMess(const std::string&);
virtual void destroyMess(void);
/* post creation */
@@ -196,7 +197,7 @@ class GEM_EXTERN GemWindow : public CPPExtern
/* fallback callback */
virtual void anyMess(t_symbol*s, int argc, t_atom*argv);
- protected:
+protected:
unsigned int m_width, m_height;
// common properties of GemWindow's
@@ -217,4 +218,4 @@ class GEM_EXTERN GemWindow : public CPPExtern
-#endif // for header file
+#endif // for header file