Home
last modified time | relevance | path

Searched refs:textOffset (Results 1 – 25 of 25) sorted by relevance

/haiku/src/apps/haikudepot/textview/
H A DTextDocument.h34 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 DTextDocument.cpp76 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 DParagraphLayout.h88 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 DParagraphLayout.cpp293 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 DTextDocumentLayout.cpp210 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 DTextDocumentLayout.h89 int32 LineIndexForOffset(int32 textOffset);
98 void GetTextBounds(int32 textOffset,
114 int32& textOffset);
H A DTextEditor.cpp408 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 DTextDocumentView.h83 void _DrawCaret(int32 textOffset);
H A DTextDocumentView.cpp609 TextDocumentView::_DrawCaret(int32 textOffset) in _DrawCaret() argument
619 fTextDocumentLayout.GetTextBounds(textOffset, x1, y1, x2, y2); in _DrawCaret()
/haiku/src/apps/drivesetup/
H A DDiskView.cpp205 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 DMacDecorator.cpp256 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 DTabDecorator.cpp364 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 DDefaultDecorator.cpp597 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 DDecorator.h59 float textOffset; member
H A DDecorator.cpp50 textOffset(10.0f), in Tab()
/haiku/src/apps/mediaplayer/playlist/
H A DPlaylistListView.cpp141 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 DTimeZoneListItem.cpp140 bool complete, float textOffset) in _DrawItemWithTextOffset() argument
172 frame.left + be_control_look->DefaultLabelSpacing() + textOffset, in _DrawItemWithTextOffset()
H A DTimeZoneListItem.h49 float textOffset);
/haiku/src/preferences/locale/
H A DLanguageListView.h36 float textOffset);
H A DLanguageListView.cpp64 bool complete, float textOffset) in DrawItemWithTextOffset() argument
99 frame.left + be_control_look->DefaultLabelSpacing() + textOffset, in DrawItemWithTextOffset()
/haiku/src/servers/app/
H A DWorkspacesView.cpp276 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 DFlatDecorator.cpp663 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 DBeDecorator.cpp687 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 DBeControlLook.cpp2344 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 DHaikuControlLook.cpp2339 float textOffset = 0; in DrawLabel() local
2345 textOffset = width; in DrawLabel()
2346 availableWidth -= textOffset; in DrawLabel()
2378 BPoint location(alignedRect.left + textOffset, in DrawLabel()