Revision: 542
http://cadcdev.svn.sourceforge.net/cadcdev/?rev=542&view=rev
Author: c99koder
Date: 2007-11-11 12:14:56 -0800 (Sun, 11 Nov 2007)
Log Message:
-----------
Tiki: Add getSize, getRows, and getCols methods to Console
Modified Paths:
--------------
tiki/include/Tiki/drawables/console.h
Modified: tiki/include/Tiki/drawables/console.h
===================================================================
--- tiki/include/Tiki/drawables/console.h 2007-11-10 19:06:26 UTC (rev 541)
+++ tiki/include/Tiki/drawables/console.h 2007-11-11 20:14:56 UTC (rev 542)
@@ -40,7 +40,7 @@
INVISIBLE = 0xA000
};
- /** ConsoleText -- ConsoleText displays an array of fixed width characters. */
+ /** Console -- Console displays an array of fixed width characters. */
class Console : public Drawable {
public:
Console(int cols, int rows, Texture * texture);
@@ -92,6 +92,18 @@
m_colorData[(y*m_cols) + x] = attr;
}
+ int getRows() {
+ return m_rows;
+ }
+
+ int getCols() {
+ return m_cols;
+ }
+
+ Tiki::Math::Vector getSize() const {
+ return Tiki::Math::Vector(m_w, m_h, 0.0f);
+ }
+
Console& operator <<(std::string input) {
printf("%s",input.c_str());
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|