Rename she::NotDisposableSurface to she::NonDisposableSurface

This commit is contained in:
David Capello 2014-04-17 14:23:43 -03:00
parent ad4e08c8f5
commit 9ee1da15db
3 changed files with 6 additions and 6 deletions

View File

@ -11,7 +11,7 @@
namespace she {
class EventQueue;
class NotDisposableSurface;
class NonDisposableSurface;
class Surface;
// A display or window to show graphics.
@ -35,7 +35,7 @@ namespace she {
// Returns the main surface to draw into this display.
// You must not dispose this surface.
virtual NotDisposableSurface* getSurface() = 0;
virtual NonDisposableSurface* getSurface() = 0;
// Flips all graphics in the surface to the real display. Returns
// false if the flip couldn't be done because the display was

View File

@ -318,8 +318,8 @@ public:
m_surface = newSurface;
}
NotDisposableSurface* getSurface() OVERRIDE {
return static_cast<NotDisposableSurface*>(m_surface);
NonDisposableSurface* getSurface() OVERRIDE {
return static_cast<NonDisposableSurface*>(m_surface);
}
bool flip() OVERRIDE {

View File

@ -22,9 +22,9 @@ namespace she {
virtual void* nativeHandle() = 0;
};
class NotDisposableSurface : public Surface {
class NonDisposableSurface : public Surface {
public:
virtual ~NotDisposableSurface() { }
virtual ~NonDisposableSurface() { }
private:
virtual void dispose() = 0;
};