[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] gnash/server mouse_button_state.h
From: |
Sandro Santilli |
Subject: |
[Gnash-commit] gnash/server mouse_button_state.h |
Date: |
Mon, 23 Oct 2006 13:31:57 +0000 |
CVSROOT: /sources/gnash
Module name: gnash
Changes by: Sandro Santilli <strk> 06/10/23 13:31:57
Modified files:
server : mouse_button_state.h
Log message:
doxygen comments
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/server/mouse_button_state.h?cvsroot=gnash&r1=1.1&r2=1.2
Patches:
Index: mouse_button_state.h
===================================================================
RCS file: /sources/gnash/gnash/server/mouse_button_state.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- mouse_button_state.h 26 Aug 2006 22:58:12 -0000 1.1
+++ mouse_button_state.h 23 Oct 2006 13:31:57 -0000 1.2
@@ -11,6 +11,7 @@
//#include "impl.h" // should get rid of this
#include "character_def.h"
#include "sound.h"
+#include "smart_ptr.h" // for composition and inlines
// Forward declarations
namespace gnash {
@@ -19,24 +20,26 @@
namespace gnash {
-//
-// Helper to generate mouse events, given mouse state & history.
-//
-
-
-//
-// Helper to generate mouse events, given mouse state & history.
-//
+/// Helper to generate mouse events, given mouse state & history.
class mouse_button_state
{
+
public:
- weak_ptr<movie> m_active_entity; // entity that currently owns
the mouse pointer
- weak_ptr<movie> m_topmost_entity; // what's underneath the mouse
right now
- bool m_mouse_button_state_last; // previous state of
mouse button
- bool m_mouse_button_state_current; // current state of
mouse button
+ /// entity that currently owns the mouse pointer
+ weak_ptr<movie> m_active_entity;
+
+ /// what's underneath the mouse right now
+ weak_ptr<movie> m_topmost_entity;
- bool m_mouse_inside_entity_last; // whether mouse was inside the
active_entity last frame
+ /// previous state of mouse button
+ bool m_mouse_button_state_last;
+
+ /// current state of mouse button
+ bool m_mouse_button_state_current;
+
+ /// whether mouse was inside the active_entity last frame
+ bool m_mouse_inside_entity_last;
mouse_button_state()
:
@@ -45,6 +48,7 @@
m_mouse_inside_entity_last(false)
{
}
+
};
} // end namespace gnash
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gnash-commit] gnash/server mouse_button_state.h,
Sandro Santilli <=