/haiku/src/apps/haikudepot/textview/ |
H A D | TextDocument.h | 34 status_t Insert(int32 textOffset, const BString& text); 35 status_t Insert(int32 textOffset, const BString& text, 37 status_t Insert(int32 textOffset, const BString& text, 41 status_t Remove(int32 textOffset, int32 length); 43 status_t Replace(int32 textOffset, int32 length, 45 status_t Replace(int32 textOffset, int32 length, 48 status_t Replace(int32 textOffset, int32 length, 52 status_t Replace(int32 textOffset, int32 length, 56 const CharacterStyle& CharacterStyleAt(int32 textOffset) const; 57 const ParagraphStyle& ParagraphStyleAt(int32 textOffset) const; [all …]
|
H A D | TextDocument.cpp | 76 TextDocument::Insert(int32 textOffset, const BString& text) in Insert() argument 78 return Replace(textOffset, 0, text); in Insert() 83 TextDocument::Insert(int32 textOffset, const BString& text, in Insert() argument 86 return Replace(textOffset, 0, text, style); in Insert() 91 TextDocument::Insert(int32 textOffset, const BString& text, in Insert() argument 94 return Replace(textOffset, 0, text, characterStyle, paragraphStyle); in Insert() 102 TextDocument::Remove(int32 textOffset, int32 length) in Remove() argument 104 return Replace(textOffset, length, BString()); in Remove() 112 TextDocument::Replace(int32 textOffset, int32 length, const BString& text) in Replace() argument 114 return Replace(textOffset, length, text, CharacterStyleAt(textOffset)); in Replace() [all …]
|
H A D | ParagraphLayout.h | 88 textOffset(0), in LineInfo() 99 LineInfo(int32 textOffset, float y, float height, float maxAscent, in LineInfo() argument 102 textOffset(textOffset), in LineInfo() 115 textOffset(other.textOffset), in LineInfo() 128 textOffset = other.textOffset; 141 return textOffset == other.textOffset 157 int32 textOffset; 194 int32 LineIndexForOffset(int32 textOffset); 202 void GetTextBounds(int32 textOffset, 231 int32 textOffset) const;
|
H A D | ParagraphLayout.cpp | 293 ParagraphLayout::LineIndexForOffset(int32 textOffset) in LineIndexForOffset() argument 300 if (textOffset >= static_cast<int32>(fGlyphInfos.size())) { in LineIndexForOffset() 305 if (textOffset < 0) in LineIndexForOffset() 306 textOffset = 0; in LineIndexForOffset() 308 const GlyphInfo& glyph = fGlyphInfos[textOffset]; in LineIndexForOffset() 324 return fLineInfos[lineIndex].textOffset; in FirstOffsetOnLine() 339 return fLineInfos[lineIndex + 1].textOffset - 1; in LastOffsetOnLine() 361 int32 firstGlyphIndex = lineInfo.textOffset; in GetLineBounds() 365 lastGlyphIndex = fLineInfos[lineIndex + 1].textOffset - 1; in GetLineBounds() 380 ParagraphLayout::GetTextBounds(int32 textOffset, float& x1, float& y1, in GetTextBounds() argument [all …]
|
H A D | TextDocumentLayout.cpp | 210 TextDocumentLayout::LineIndexForOffset(int32 textOffset) in LineIndexForOffset() argument 212 int32 index = _ParagraphLayoutIndexForOffset(textOffset); in LineIndexForOffset() 220 return lineIndex + info.layout->LineIndexForOffset(textOffset); in LineIndexForOffset() 294 TextDocumentLayout::GetTextBounds(int32 textOffset, float& x1, float& y1, in GetTextBounds() argument 297 int32 index = _ParagraphLayoutIndexForOffset(textOffset); in GetTextBounds() 300 info.layout->GetTextBounds(textOffset, x1, y1, x2, y2); in GetTextBounds() 318 int32 textOffset = 0; in TextOffsetAt() local 325 textOffset += info.layout->CountGlyphs(); in TextOffsetAt() 329 textOffset += info.layout->TextOffsetAt(x, y - info.y, rightOfCenter); in TextOffsetAt() 333 return textOffset; in TextOffsetAt() [all …]
|
H A D | TextDocumentLayout.h | 89 int32 LineIndexForOffset(int32 textOffset); 98 void GetTextBounds(int32 textOffset, 114 int32& textOffset);
|
H A D | TextEditor.cpp | 408 int32 textOffset = fLayout->TextOffsetAt(fCaretAnchorX, (y1 + y2) / 2, in _MoveToLine() local 412 textOffset++; in _MoveToLine() 414 _SetCaretOffset(textOffset, false, select, true); in _MoveToLine()
|
H A D | TextDocumentView.h | 83 void _DrawCaret(int32 textOffset);
|
H A D | TextDocumentView.cpp | 609 TextDocumentView::_DrawCaret(int32 textOffset) in _DrawCaret() argument 619 fTextDocumentLayout.GetTextBounds(textOffset, x1, y1, x2, y2); in _DrawCaret()
|
/haiku/src/apps/drivesetup/ |
H A D | DiskView.cpp | 205 BPoint textOffset; in Draw() local 210 textOffset = b.LeftTop(); in Draw() 211 textOffset.x += 3; in Draw() 212 textOffset.y += ceilf(fh.ascent); in Draw() 215 textOffset = b.LeftBottom(); in Draw() 216 textOffset.x += ceilf(fh.ascent); in Draw() 223 DrawString(name.String(), textOffset); in Draw() 551 BPoint textOffset; in Draw() local 552 textOffset.x = messageBounds.left + fh.ascent; in Draw() 553 textOffset.y = (messageBounds.top + messageBounds.bottom in Draw() [all …]
|
/haiku/src/add-ons/decorators/MacDecorator/ |
H A D | MacDecorator.cpp | 256 tab->textOffset = int(((tab->zoomRect.left - 5) in _DoLayout() 258 tab->textOffset -= int(tab->truncatedTitleLength / 2); in _DoLayout() 261 tab->textOffset += int(tab->closeRect.right + 5 in _DoLayout() 264 tab->textOffset = int(tab->closeRect.right) + 5; in _DoLayout() 266 tab->textOffset = 0; in _DoLayout() 536 if (tab->tabRect.left + tab->textOffset > left + 5) { in _DrawTab() 542 BPoint pt2(tab->tabRect.left + tab->textOffset - 5, in _DrawTab() 554 pt2.Set(tab->tabRect.left + tab->textOffset - 4, in _DrawTab() 567 offset.Set(tab->tabRect.left + tab->textOffset in _DrawTab() 580 offset.Set(tab->tabRect.left + tab->textOffset in _DrawTab() [all …]
|
/haiku/src/servers/app/decorator/ |
H A D | TabDecorator.cpp | 364 tab->textOffset = _DefaultTextOffset(); in _DoTabLayout() 396 tab->minTabSize = inset * 2 + tab->textOffset; in _DoTabLayout() 408 tab->maxTabSize += tab->textOffset; in _DoTabLayout() 997 tab->textOffset = _DefaultTextOffset(); in _LayoutTabItems() 1034 size = (zoomRect.left - closeRect.right) - tab->textOffset * 2 + inset; in _LayoutTabItems() 1036 size = (zoomRect.top - closeRect.bottom) - tab->textOffset * 2 + inset; in _LayoutTabItems() 1041 size = (tab->tabRect.right - closeRect.right) - tab->textOffset * 2 in _LayoutTabItems() 1051 float oldTextOffset = tab->textOffset; in _LayoutTabItems() 1052 tab->textOffset -= (titleWidth - size) / 2; in _LayoutTabItems() 1054 if (tab->textOffset < kMinTextOffset) in _LayoutTabItems() [all …]
|
H A D | DefaultDecorator.cpp | 597 titlePos.x = closeRect.IsValid() ? closeRect.right + tab->textOffset in _DrawTitle() 598 : tabRect.left + tab->textOffset; in _DrawTitle() 606 titlePos.y = zoomRect.IsValid() ? zoomRect.top - tab->textOffset in _DrawTitle() 607 : tabRect.bottom - tab->textOffset; in _DrawTitle()
|
H A D | Decorator.h | 59 float textOffset; member
|
H A D | Decorator.cpp | 50 textOffset(10.0f), in Tab()
|
/haiku/src/apps/mediaplayer/playlist/ |
H A D | PlaylistListView.cpp | 141 float textOffset = text_offset(fh); in Draw() local 150 frame.Width() - playbackMarkSize - textOffset); in Draw() 158 frame.Width() - playbackMarkSize - textOffset - truncatedWidth); in Draw() 160 BPoint(frame.left + playbackMarkSize + textOffset, in Draw() 348 float textOffset = text_offset(fFontHeight); in MouseDown() local 365 r.right = r.left + playbackMarkSize + textOffset; in MouseDown()
|
/haiku/src/preferences/time/ |
H A D | TimeZoneListItem.cpp | 140 bool complete, float textOffset) in _DrawItemWithTextOffset() argument 172 frame.left + be_control_look->DefaultLabelSpacing() + textOffset, in _DrawItemWithTextOffset()
|
H A D | TimeZoneListItem.h | 49 float textOffset);
|
/haiku/src/preferences/locale/ |
H A D | LanguageListView.h | 36 float textOffset);
|
H A D | LanguageListView.cpp | 64 bool complete, float textOffset) in DrawItemWithTextOffset() argument 99 frame.left + be_control_look->DefaultLabelSpacing() + textOffset, in DrawItemWithTextOffset()
|
/haiku/src/servers/app/ |
H A D | WorkspacesView.cpp | 276 BPoint textOffset; in _DrawWindow() local 277 textOffset.x = rintf(frame.left + (frame.Width() - width) / 2); in _DrawWindow() 278 textOffset.y = rintf(frame.top + (frame.Height() - height) / 2 in _DrawWindow() 280 drawingEngine->DrawString(title.String(), title.Length(), textOffset); in _DrawWindow()
|
/haiku/src/add-ons/decorators/FlatDecorator/ |
H A D | FlatDecorator.cpp | 663 titlePos.x = closeRect.IsValid() ? closeRect.right + tab->textOffset in _DrawTitle() 664 : tabRect.left + tab->textOffset; in _DrawTitle() 672 titlePos.y = zoomRect.IsValid() ? zoomRect.top - tab->textOffset in _DrawTitle() 673 : tabRect.bottom - tab->textOffset; in _DrawTitle()
|
/haiku/src/add-ons/decorators/BeDecorator/ |
H A D | BeDecorator.cpp | 687 titlePos.x = closeRect.IsValid() ? closeRect.right + tab->textOffset in _DrawTitle() 688 : tabRect.left + tab->textOffset; in _DrawTitle() 696 titlePos.y = zoomRect.IsValid() ? zoomRect.top - tab->textOffset in _DrawTitle() 697 : tabRect.bottom - tab->textOffset; in _DrawTitle()
|
/haiku/src/add-ons/control_look/BeControlLook/ |
H A D | BeControlLook.cpp | 2344 float textOffset = 0; in DrawLabel() local 2351 textOffset = width; in DrawLabel() 2352 availableWidth -= textOffset; in DrawLabel() 2383 BPoint location(alignedRect.left + textOffset, in DrawLabel()
|
/haiku/src/kits/interface/ |
H A D | HaikuControlLook.cpp | 2339 float textOffset = 0; in DrawLabel() local 2345 textOffset = width; in DrawLabel() 2346 availableWidth -= textOffset; in DrawLabel() 2378 BPoint location(alignedRect.left + textOffset, in DrawLabel()
|