[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] gnash ChangeLog server/rect.h
From: |
Sandro Santilli |
Subject: |
[Gnash-commit] gnash ChangeLog server/rect.h |
Date: |
Wed, 18 Oct 2006 14:54:58 +0000 |
CVSROOT: /sources/gnash
Module name: gnash
Changes by: Sandro Santilli <strk> 06/10/18 14:54:58
Modified files:
. : ChangeLog
server : rect.h
Log message:
added gnash::rect ctor taking all coordinates
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.1300&r2=1.1301
http://cvs.savannah.gnu.org/viewcvs/gnash/server/rect.h?cvsroot=gnash&r1=1.4&r2=1.5
Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.1300
retrieving revision 1.1301
diff -u -b -r1.1300 -r1.1301
--- ChangeLog 18 Oct 2006 14:51:08 -0000 1.1300
+++ ChangeLog 18 Oct 2006 14:54:58 -0000 1.1301
@@ -1,5 +1,6 @@
2006-10-18 Sandro Santilli <address@hidden>
+ * server/rect.h: added constructor taking all coordinates.
* backend/render_handler_ogl.cpp: don't directly access rect
"to-be" private members.
* server/: fontlib.cpp, movie_root.cpp: don't directly access
Index: server/rect.h
===================================================================
RCS file: /sources/gnash/gnash/server/rect.h,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -b -r1.4 -r1.5
--- server/rect.h 18 Oct 2006 14:16:02 -0000 1.4
+++ server/rect.h 18 Oct 2006 14:54:58 -0000 1.5
@@ -35,7 +35,7 @@
//
//
-/* $Id: rect.h,v 1.4 2006/10/18 14:16:02 strk Exp $ */
+/* $Id: rect.h,v 1.5 2006/10/18 14:54:58 strk Exp $ */
#ifndef GNASH_RECT_H
#define GNASH_RECT_H
@@ -63,16 +63,30 @@
///
class DSOLOCAL rect
{
-public:
+private:
// TODO: make private
float m_x_min, m_x_max, m_y_min, m_y_max;
public:
- /// construct a NULL rectangle
+ /// Construct a NULL rectangle
rect();
+ /// Construct a rectangle with given coordinates
+ rect(float xmin, float ymin, float xmax, float ymax)
+ :
+ m_x_min(xmin),
+ m_y_min(ymin),
+ m_x_max(xmax),
+ m_y_max(ymax)
+ {
+ // use the default ctor to make a NULL rect
+ assert(m_x_min <= m_x_max);
+ assert(m_y_min <= m_y_max);
+ // .. or should we raise an exception .. ?
+ }
+
/// returns true if this is the NULL rectangle
bool is_null() const;