Added BTextControl::TextLength() method.
This commit is contained in:
@@ -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.
|
* Distributed under the terms of the MIT License.
|
||||||
*/
|
*/
|
||||||
#ifndef _TEXT_CONTROL_H
|
#ifndef _TEXT_CONTROL_H
|
||||||
@@ -40,6 +40,7 @@ public:
|
|||||||
|
|
||||||
virtual void SetText(const char* text);
|
virtual void SetText(const char* text);
|
||||||
const char* Text() const;
|
const char* Text() const;
|
||||||
|
int32 TextLength() const;
|
||||||
void MarkAsInvalid(bool invalid);
|
void MarkAsInvalid(bool invalid);
|
||||||
|
|
||||||
virtual void SetValue(int32 value);
|
virtual void SetValue(int32 value);
|
||||||
@@ -145,4 +146,5 @@ private:
|
|||||||
uint32 _reserved[8];
|
uint32 _reserved[8];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
#endif // _TEXT_CONTROL_H
|
#endif // _TEXT_CONTROL_H
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2001-2012, Haiku Inc.
|
* Copyright 2001-2015, Haiku Inc.
|
||||||
* Distributed under the terms of the MIT License.
|
* Distributed under the terms of the MIT License.
|
||||||
*
|
*
|
||||||
* Authors:
|
* Authors:
|
||||||
@@ -567,6 +567,13 @@ BTextControl::Text() const
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
int32
|
||||||
|
BTextControl::TextLength() const
|
||||||
|
{
|
||||||
|
return fText->TextLength();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
BTextControl::MarkAsInvalid(bool invalid)
|
BTextControl::MarkAsInvalid(bool invalid)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user