|
OpenTTD
|
Wrapper for doing layouts with ICU. More...
Data Structures | |
| class | ICULine |
| A single line worth of VisualRuns. More... | |
| class | ICUVisualRun |
| Visual run contains data about the bit of text with the same font. More... | |
Public Member Functions | |
| ICUParagraphLayout (icu::ParagraphLayout *p) | |
| void | Reflow () |
| ParagraphLayouter::Line * | NextLine (int max_width) |
Public Member Functions inherited from AutoDeleteSmallVector< ParagraphLayouter::Line *, 4 > | |
| void | Clear () |
| Remove all items from the list. | |
Public Member Functions inherited from SmallVector< ParagraphLayouter::Line *, S > | |
| SmallVector (const SmallVector &other) | |
| Copy constructor. More... | |
| SmallVector (const SmallVector< ParagraphLayouter::Line *, X > &other) | |
| Generic copy constructor. More... | |
| SmallVector & | operator= (const SmallVector &other) |
| Assignment. More... | |
| SmallVector & | operator= (const SmallVector< ParagraphLayouter::Line *, X > &other) |
| Generic assignment. More... | |
| void | Assign (const SmallVector< ParagraphLayouter::Line *, X > &other) |
| Assign items from other vector. | |
| void | Clear () |
| Remove all items from the list. | |
| void | Reset () |
| Remove all items from the list and free allocated memory. | |
| void | Compact () |
| Compact the list down to the smallest block size boundary. | |
| ParagraphLayouter::Line * * | Append (uint to_add=1) |
| Append an item and return it. More... | |
| void | Resize (uint num_items) |
| Set the size of the vector, effectively truncating items from the end or appending uninitialised ones. More... | |
| ParagraphLayouter::Line * * | Insert (ParagraphLayouter::Line * *item) |
| Insert a new item at a specific position into the vector, moving all following items. More... | |
| const ParagraphLayouter::Line * * | Find (const ParagraphLayouter::Line * &item) const |
| Search for the first occurrence of an item. More... | |
| ParagraphLayouter::Line * * | Find (const ParagraphLayouter::Line * &item) |
| Search for the first occurrence of an item. More... | |
| int | FindIndex (const ParagraphLayouter::Line * &item) const |
| Search for the first occurrence of an item. More... | |
| bool | Contains (const ParagraphLayouter::Line * &item) const |
| Tests whether a item is present in the vector. More... | |
| void | Erase (ParagraphLayouter::Line * *item) |
| Removes given item from this vector. More... | |
| void | ErasePreservingOrder (uint pos, uint count=1) |
| Remove items from the vector while preserving the order of other items. More... | |
| void | ErasePreservingOrder (ParagraphLayouter::Line * *item, uint count=1) |
| Remove items from the vector while preserving the order of other items. More... | |
| bool | Include (const ParagraphLayouter::Line * &item) |
| Tests whether a item is present in the vector, and appends it to the end if not. More... | |
| uint | Length () const |
| Get the number of items in the list. More... | |
| const ParagraphLayouter::Line * * | Begin () const |
| Get the pointer to the first item (const) More... | |
| ParagraphLayouter::Line * * | Begin () |
| Get the pointer to the first item. More... | |
| const ParagraphLayouter::Line * * | End () const |
| Get the pointer behind the last valid item (const) More... | |
| ParagraphLayouter::Line * * | End () |
| Get the pointer behind the last valid item. More... | |
| const ParagraphLayouter::Line * * | Get (uint index) const |
| Get the pointer to item "number" (const) More... | |
| ParagraphLayouter::Line * * | Get (uint index) |
| Get the pointer to item "number". More... | |
| const ParagraphLayouter::Line * & | operator[] (uint index) const |
| Get item "number" (const) More... | |
| ParagraphLayouter::Line * & | operator[] (uint index) |
| Get item "number". More... | |
Private Attributes | |
| icu::ParagraphLayout * | p |
| The actual ICU paragraph layout. | |
Additional Inherited Members | |
Protected Attributes inherited from SmallVector< ParagraphLayouter::Line *, S > | |
| ParagraphLayouter::Line * * | data |
| The pointer to the first item. | |
| uint | items |
| The number of items stored. | |
| uint | capacity |
| The available space for storing items. | |
Wrapper for doing layouts with ICU.
Definition at line 127 of file gfx_layout.cpp.