]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - radiant/windowobservers.h
my own uncrustify run
[xonotic/netradiant.git] / radiant / windowobservers.h
index 7a47a936b74d0b48406b1d6dfd1d91047237f1aa..eab5fe5989e4606a5b2a828a3cdf87fedf808262 100644 (file)
@@ -1,25 +1,25 @@
 /*
-Copyright (C) 2001-2006, William Joseph.
-All Rights Reserved.
+   Copyright (C) 2001-2006, William Joseph.
+   All Rights Reserved.
 
-This file is part of GtkRadiant.
+   This file is part of GtkRadiant.
 
-GtkRadiant is free software; you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation; either version 2 of the License, or
-(at your option) any later version.
+   GtkRadiant is free software; you can redistribute it and/or modify
+   it under the terms of the GNU General Public License as published by
+   the Free Software Foundation; either version 2 of the License, or
+   (at your option) any later version.
 
-GtkRadiant is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-GNU General Public License for more details.
+   GtkRadiant is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+   GNU General Public License for more details.
 
-You should have received a copy of the GNU General Public License
-along with GtkRadiant; if not, write to the Free Software
-Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-*/
+   You should have received a copy of the GNU General Public License
+   along with GtkRadiant; if not, write to the Free Software
+   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
+ */
 
-#if !defined(INCLUDED_WINDOWOBSERVERS_H)
+#if !defined( INCLUDED_WINDOWOBSERVERS_H )
 #define INCLUDED_WINDOWOBSERVERS_H
 
 #include "windowobserver.h"
@@ -29,41 +29,41 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 #include "math/vector.h"
 
 class WindowObserver;
-void GlobalWindowObservers_add(WindowObserver* observer);
+void GlobalWindowObservers_add( WindowObserver* observer );
 typedef struct _GtkWidget GtkWidget;
 typedef struct _GtkWindow GtkWindow;
-void GlobalWindowObservers_connectWidget(GtkWidget* widget);
-void GlobalWindowObservers_connectTopLevel(GtkWindow* window);
+void GlobalWindowObservers_connectWidget( GtkWidget* widget );
+void GlobalWindowObservers_connectTopLevel( GtkWindow* window );
 
-inline ButtonIdentifier button_for_button(unsigned int button)
-{
-  switch(button)
-  {
-  case 1:
-    return c_buttonLeft;
-  case 2:
-    return c_buttonMiddle;
-  case 3:
-    return c_buttonRight;
-  }
-  return c_buttonInvalid;
+inline ButtonIdentifier button_for_button( unsigned int button ){
+       switch ( button )
+       {
+       case 1:
+               return c_buttonLeft;
+       case 2:
+               return c_buttonMiddle;
+       case 3:
+               return c_buttonRight;
+       }
+       return c_buttonInvalid;
 }
 
-inline ModifierFlags modifiers_for_state(unsigned int state)
-{
-  ModifierFlags modifiers = c_modifierNone;
-  if(state & GDK_SHIFT_MASK)
-    modifiers |= c_modifierShift;
-  if(state & GDK_CONTROL_MASK)
-    modifiers |= c_modifierControl;
-  if(state & GDK_MOD1_MASK)
-    modifiers |= c_modifierAlt;
-  return modifiers;
+inline ModifierFlags modifiers_for_state( unsigned int state ){
+       ModifierFlags modifiers = c_modifierNone;
+       if ( state & GDK_SHIFT_MASK ) {
+               modifiers |= c_modifierShift;
+       }
+       if ( state & GDK_CONTROL_MASK ) {
+               modifiers |= c_modifierControl;
+       }
+       if ( state & GDK_MOD1_MASK ) {
+               modifiers |= c_modifierAlt;
+       }
+       return modifiers;
 }
 
-inline WindowVector WindowVector_forDouble(double x, double y)
-{
-  return WindowVector(static_cast<float>(x), static_cast<float>(y));
+inline WindowVector WindowVector_forDouble( double x, double y ){
+       return WindowVector( static_cast<float>( x ), static_cast<float>( y ) );
 }
 
 #endif