Changeset 1634 for code/branches/gcc43/src/core/input
- Timestamp:
- Jun 29, 2008, 7:36:33 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/gcc43/src/core/input/InputBuffer.h
r1535 r1634 144 144 void updated(const char& update, bool bSingleInput); 145 145 146 inlinestd::string get() const146 std::string get() const 147 147 { return this->buffer_; } 148 inlineunsigned int getSize() const148 unsigned int getSize() const 149 149 { return this->buffer_.size(); } 150 150 151 inlineunsigned int getCursorPosition() const151 unsigned int getCursorPosition() const 152 152 { return this->cursor_; } 153 inlinevoid setCursorPosition(unsigned int cursor)153 void setCursorPosition(unsigned int cursor) 154 154 { if (cursor <= this->buffer_.size()) { this->cursor_ = cursor; } } 155 inlinevoid setCursorToEnd()155 void setCursorToEnd() 156 156 { this->cursor_ = this->buffer_.size(); } 157 inlinevoid setCursorToBegin()157 void setCursorToBegin() 158 158 { this->cursor_ = 0; } 159 inlinevoid increaseCursor()159 void increaseCursor() 160 160 { if (this->cursor_ < this->buffer_.size()) { ++this->cursor_; } } 161 inlinevoid decreaseCursor()161 void decreaseCursor() 162 162 { if (this->cursor_ > 0) { --this->cursor_; } } 163 163
Note: See TracChangeset
for help on using the changeset viewer.