Added BTextControl::TextLength() method.

This commit is contained in:
Axel Dörfler 2015-03-16 23:18:07 +00:00
parent d95c5011bd
commit 8bc3ecb054
2 changed files with 11 additions and 2 deletions

View File

@ -1,5 +1,5 @@
/*
* Copyright 2006-2012, Haiku, Inc. All rights reserved.
* Copyright 2006-2015, Haiku, Inc. All rights reserved.
* Distributed under the terms of the MIT License.
*/
#ifndef _TEXT_CONTROL_H
@ -40,6 +40,7 @@ public:
virtual void SetText(const char* text);
const char* Text() const;
int32 TextLength() const;
void MarkAsInvalid(bool invalid);
virtual void SetValue(int32 value);
@ -145,4 +146,5 @@ private:
uint32 _reserved[8];
};
#endif // _TEXT_CONTROL_H

View File

@ -1,5 +1,5 @@
/*
* Copyright 2001-2012, Haiku Inc.
* Copyright 2001-2015, Haiku Inc.
* Distributed under the terms of the MIT License.
*
* Authors:
@ -567,6 +567,13 @@ BTextControl::Text() const
}
int32
BTextControl::TextLength() const
{
return fText->TextLength();
}
void
BTextControl::MarkAsInvalid(bool invalid)
{