|
LibreOffice Module vcl (master) 1
|
#include <ctrl.hxx>
Public Member Functions | |
| ControlLayoutData () | |
| ~ControlLayoutData () | |
| tools::Rectangle | GetCharacterBounds (tools::Long nIndex) const |
| tools::Long | GetIndexForPoint (const Point &rPoint) const |
| ::Pair | GetLineStartEnd (tools::Long nLine) const |
| tools::Long | ToRelativeLineIndex (tools::Long nIndex) const |
| ToRelativeLineIndex changes a layout data index to a count relative to its line. More... | |
Public Attributes | |
| OUString | m_aDisplayText |
| std::vector< tools::Rectangle > | m_aUnicodeBoundRects |
| std::vector< tools::Long > | m_aLineIndices |
| VclPtr< const Control > | m_pParent |
| ControlLayoutData::~ControlLayoutData | ( | ) |
Definition at line 363 of file ctrl.cxx.
References Control::ImplClearLayoutData(), and m_pParent.
| tools::Rectangle ControlLayoutData::GetCharacterBounds | ( | tools::Long | nIndex | ) | const |
Definition at line 108 of file ctrl.cxx.
References m_aUnicodeBoundRects, o3tl::make_unsigned(), and nIndex.
| tools::Long ControlLayoutData::GetIndexForPoint | ( | const Point & | rPoint | ) | const |
Definition at line 120 of file ctrl.cxx.
References i, m_aUnicodeBoundRects, nIndex, Point::X(), and Point::Y().
| Pair ControlLayoutData::GetLineStartEnd | ( | tools::Long | nLine | ) | const |
| tools::Long ControlLayoutData::ToRelativeLineIndex | ( | tools::Long | nIndex | ) | const |
ToRelativeLineIndex changes a layout data index to a count relative to its line.
This is equivalent to getting the line start/end pairs with GetLineStartEnd until the index lies within [start,end] of a line
| nIndex | the absolute index inside the display text to be changed to a relative index |
Definition at line 174 of file ctrl.cxx.
References m_aDisplayText, m_aLineIndices, and nIndex.
| OUString vcl::ControlLayoutData::m_aDisplayText |
Definition at line 43 of file ctrl.hxx.
Referenced by Calendar::ImplInitSettings(), and ToRelativeLineIndex().
| std::vector< tools::Long > vcl::ControlLayoutData::m_aLineIndices |
Definition at line 48 of file ctrl.hxx.
Referenced by Calendar::ImplInitSettings(), and ToRelativeLineIndex().
| std::vector< tools::Rectangle > vcl::ControlLayoutData::m_aUnicodeBoundRects |
Definition at line 46 of file ctrl.hxx.
Referenced by GetCharacterBounds(), and GetIndexForPoint().
Definition at line 50 of file ctrl.hxx.
Referenced by ~ControlLayoutData().