add const keyword to some methods
svn-id: r48639
This commit is contained in:
parent
fc40276ed7
commit
f966f3184f
4 changed files with 8 additions and 8 deletions
|
@ -56,8 +56,8 @@ public:
|
|||
void enableCursorPalette(bool enable);
|
||||
void setLimits(uint32 width, uint32 height);
|
||||
void setXY(int x, int y);
|
||||
int32 getX() { return _x; }
|
||||
int32 getY() { return _y; }
|
||||
int32 getX() const { return _x; }
|
||||
int32 getY() const { return _y; }
|
||||
bool increaseXY(int32 incX, int32 incY); // returns true if there's a change in x or y
|
||||
void adjustXYForScreenSize(int32 &x, int32 &y);
|
||||
void init();
|
||||
|
|
|
@ -33,7 +33,7 @@ class DefaultDisplayClient : public DisplayClient {
|
|||
public:
|
||||
DefaultDisplayClient() : _visible(false), _dirty(true) {}
|
||||
|
||||
bool isVisible() { return _visible; }
|
||||
bool isVisible() const { return _visible; }
|
||||
void setVisible(bool v) { _visible = v; setDirty(); }
|
||||
Buffer &buffer() { return _buffer; }
|
||||
Palette &palette() { return _palette; }
|
||||
|
@ -53,7 +53,7 @@ public:
|
|||
void copyToArray(byte *dst, int pitch);
|
||||
void setDirty() { _dirty = true; }
|
||||
void setClean() { _dirty = false; }
|
||||
bool isDirty() { return _dirty; }
|
||||
bool isDirty() const { return _dirty; }
|
||||
|
||||
protected:
|
||||
Buffer _buffer;
|
||||
|
|
|
@ -126,7 +126,7 @@ private:
|
|||
volatile int _PMStatus; /* What the PM is doing */
|
||||
|
||||
public:
|
||||
int getPMStatus() { return _PMStatus; }
|
||||
int getPMStatus() const { return _PMStatus; }
|
||||
|
||||
};
|
||||
|
||||
|
|
|
@ -52,11 +52,11 @@ public:
|
|||
~PSPKeyboard();
|
||||
|
||||
bool load(); // Load keyboard into memory
|
||||
bool isInit() { return _init; } // Check for initialization
|
||||
bool isDirty() { return _dirty; } // Check if needs redrawing
|
||||
bool isInit() const { return _init; } // Check for initialization
|
||||
bool isDirty() const { return _dirty; } // Check if needs redrawing
|
||||
void setDirty() { _dirty = true; }
|
||||
void setClean() { _dirty = false; }
|
||||
bool isVisible() { return _state != kInvisible; } // Check if visible
|
||||
bool isVisible() const { return _state != kInvisible; } // Check if visible
|
||||
void setVisible(bool val);
|
||||
bool processInput(Common::Event &event, SceCtrlData &pad); // Process input
|
||||
void moveTo(const int newX, const int newY); // Move keyboard
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue