pingus-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Pingus-CVS] CVS: Games/Pingus/src/gui Makefile.am,1.1,1.2 component.hxx


From: grumbel
Subject: [Pingus-CVS] CVS: Games/Pingus/src/gui Makefile.am,1.1,1.2 component.hxx,1.11,1.12 component.cxx,1.1,NONE
Date: 28 Sep 2002 22:24:26 -0000

Update of /usr/local/cvsroot/Games/Pingus/src/gui
In directory dark:/tmp/cvs-serv27825/gui

Modified Files:
        Makefile.am component.hxx 
Removed Files:
        component.cxx 
Log Message:
- win32 fixes
- added fadeouts

Index: Makefile.am
===================================================================
RCS file: /usr/local/cvsroot/Games/Pingus/src/gui/Makefile.am,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- Makefile.am 29 Jul 2002 10:44:12 -0000      1.1
+++ Makefile.am 28 Sep 2002 22:24:24 -0000      1.2
@@ -18,6 +18,7 @@
 noinst_LIBRARIES = libpingus_gui.a
 
 libpingus_gui_a_SOURCES =       \
+        component.hxx \
        gui_manager.hxx \
        gui_manager.cxx \
        root_gui_manager.hxx \

Index: component.hxx
===================================================================
RCS file: /usr/local/cvsroot/Games/Pingus/src/gui/component.hxx,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- component.hxx       27 Sep 2002 11:26:46 -0000      1.11
+++ component.hxx       28 Sep 2002 22:24:24 -0000      1.12
@@ -24,61 +24,63 @@
 
 class GraphicContext;
 
-namespace GUI
+namespace GUI 
 {
-  /** A component represents an area which recivies events in the GUI,
-      some people might call it a widget */
-  class Component
-  {
-  private:
 
-  public:
-    Component () { }
+/** A component represents an area which recivies events in the GUI,
+    some people might call it a widget */
+class Component
+{
+private:
+
+public:
+  Component () { }
     
-    virtual void draw (GraphicContext& gc) =0;
-    virtual void update (float delta) { UNUSED_ARG(delta);}
+  virtual void draw (GraphicContext& gc) =0;
+  virtual void update (float delta) { UNUSED_ARG(delta);}
     
-    virtual bool is_at (int x, int y) { UNUSED_ARG(x); UNUSED_ARG(y); return 
false; }
+  virtual bool is_at (int x, int y) { UNUSED_ARG(x); UNUSED_ARG(y); return 
false; }
 
-    // Events
-    /** Gets issued once the primary button is pressed */
-    virtual void on_primary_button_press (int x, int y) { UNUSED_ARG(x); 
UNUSED_ARG(y); }
+  // Events
+  /** Gets issued once the primary button is pressed */
+  virtual void on_primary_button_press (int x, int y) { UNUSED_ARG(x); 
UNUSED_ARG(y); }
     
-    /** Gets issued once the primary button is released */
-    virtual void on_primary_button_release (int x, int y) { UNUSED_ARG(x); 
UNUSED_ARG(y); }
+  /** Gets issued once the primary button is released */
+  virtual void on_primary_button_release (int x, int y) { UNUSED_ARG(x); 
UNUSED_ARG(y); }
 
-    virtual void on_secondary_button_press (int x, int y) { UNUSED_ARG(x); 
UNUSED_ARG(y); }
-    virtual void on_secondary_button_release (int x, int y) { UNUSED_ARG(x); 
UNUSED_ARG(y); }
+  virtual void on_secondary_button_press (int x, int y) { UNUSED_ARG(x); 
UNUSED_ARG(y); }
+  virtual void on_secondary_button_release (int x, int y) { UNUSED_ARG(x); 
UNUSED_ARG(y); }
 
-    /** Gets emmited when a button is pressed and released over the
-       same component */
-    virtual void on_primary_button_click (int x, int y) { UNUSED_ARG(x); 
UNUSED_ARG(y); }
+  /** Gets emmited when a button is pressed and released over the
+      same component */
+  virtual void on_primary_button_click (int x, int y) { UNUSED_ARG(x); 
UNUSED_ARG(y); }
 
-    virtual void on_secondary_button_click (int x, int y) { UNUSED_ARG(x); 
UNUSED_ARG(y); }
+  virtual void on_secondary_button_click (int x, int y) { UNUSED_ARG(x); 
UNUSED_ARG(y); }
 
-    /** Emmitted when pointer enters the region of the component */
-    virtual void on_pointer_enter () {}
+  /** Emmitted when pointer enters the region of the component */
+  virtual void on_pointer_enter () {}
 
-    /** Emmitted when pointer leaves the region of the component */
-    virtual void on_pointer_leave () {}
+  /** Emmitted when pointer leaves the region of the component */
+  virtual void on_pointer_leave () {}
 
-    /** Emitted when the pointer moved, x and y are the new pointer
-       coordinates */
-    virtual void on_pointer_move (int x, int y) { UNUSED_ARG(x); 
UNUSED_ARG(y); }
+  /** Emitted when the pointer moved, x and y are the new pointer
+      coordinates */
+  virtual void on_pointer_move (int x, int y) { UNUSED_ARG(x); UNUSED_ARG(y); }
 
-    // status functions for use in the update() function
-    /** return true if currently pressed */
-    bool is_pressed ();
+  // status functions for use in the update() function
+  /** return true if currently pressed */
+  bool is_pressed ();
 
-    /** true if mouse is currently over, FIXME: these seem to be
-       unimplementable without renaming on_pointer_enter() and wrapp them */
-    bool pointer_over ();
-    
-  private:
-    Component (const Component&);
-    Component& operator= (const Component&); 
-  };
-}
+  /** true if mouse is currently over, FIXME: these seem to be
+      unimplementable without renaming on_pointer_enter() and wrapp them */
+  bool pointer_over ();
+  
+private:
+  Component (const Component&);
+  Component& operator= (const Component&); 
+};
+
+} // namespace GUI
 
 #endif
 

--- component.cxx DELETED ---





reply via email to

[Prev in Thread] Current Thread [Next in Thread]