Rogue Wave Views Gadgets Package API Reference Guide |
Rogue Wave Views Documentation Home |
Gadget class. More...
#include <ilviews/gadgets/text.h>
Public Member Functions | |
IlvTextLocation (IlUShort line=0, IlUShort column=0) | |
Constructor. More... | |
IlUShort | getColumn () const |
Returns the index of the column pointed to by the object. More... | |
IlUShort | getLine () const |
Returns the index of the line pointed to by the object. More... | |
IlBoolean | isBefore (const IlvTextLocation &location) const |
Indicates whether a text location is before another one. More... | |
IlBoolean | isSame (const IlvTextLocation &location) const |
Indicates whether two text locations are the same. More... | |
void | set (IlUShort line=0, IlUShort column=0) |
Sets the indexes of the column and the line pointed to by the object. More... | |
void | setColumn (IlUShort column) |
Sets the index of the column pointed to by the object. More... | |
void | setLine (IlUShort line) |
Sets the index of the line pointed to by the object. More... | |
Friends | |
class | IlvText |
Gadget class.
Library: ilvadvgdt
The class IlvTextLocation
is used to locate text inside a text gadget.
IlvText
. Constructor.
Initializes a new instance of the class IlvTextLocation
.
line | The index of the line. |
column | The index of the column. |
IlUShort IlvTextLocation::getColumn | ( | ) | const |
Returns the index of the column pointed to by the object.
setColumn()
. IlUShort IlvTextLocation::getLine | ( | ) | const |
Returns the index of the line pointed to by the object.
setLine
. IlBoolean IlvTextLocation::isBefore | ( | const IlvTextLocation & | location | ) | const |
Indicates whether a text location is before another one.
location | The text location to which this instance is compared. |
IlTrue
if the current text location is before location. This occurs when the current line is less than location, or when both lines are the same but the current column is less than or equal to location. IlBoolean IlvTextLocation::isSame | ( | const IlvTextLocation & | location | ) | const |
Indicates whether two text locations are the same.
location | The text location to which this instance is compared. |
IlTrue
if the current object has the same attributes as location, that is, when they both point to the same line and column. If at least one of the two attributes does not match, this member function returns IlFalse
. set()
, isBefore()
. Sets the indexes of the column and the line pointed to by the object.
line | The new line index. |
column | The new column index. |
getLine()
, getColumn()
. void IlvTextLocation::setColumn | ( | IlUShort | column | ) |
Sets the index of the column pointed to by the object.
column | The new column index. |
getColumn()
. © Copyright 2016, Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave is a registered trademark of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.