Stroika Library 3.0d16
 
Loading...
Searching...
No Matches
BiDiLayoutEngine.inl
1/*
2 * Copyright(c) Sophist Solutions, Inc. 1990-2025. All rights reserved
3 */
4
5namespace Stroika::Frameworks::Led {
6
7 /*
8 ********************************************************************************
9 ************************************ TextLayoutBlock ***************************
10 ********************************************************************************
11 */
12 inline const Led_tChar* TextLayoutBlock::PeekAtRealText () const
13 {
14 const Led_tChar* s = nullptr;
15 const Led_tChar* e = nullptr;
16 PeekAtRealText_ (&s, &e);
17 return s;
18 }
19 inline const Led_tChar* TextLayoutBlock::PeekAtVirtualText () const
20 {
21 const Led_tChar* s = nullptr;
22 const Led_tChar* e = nullptr;
23 PeekAtVirtualText_ (&s, &e);
24 return s;
25 }
26 inline size_t TextLayoutBlock::GetTextLength () const
27 {
28 const Led_tChar* s = nullptr;
29 const Led_tChar* e = nullptr;
30 PeekAtVirtualText_ (&s, &e);
31 return e - s;
32 }
33 inline void TextLayoutBlock::Invariant () const
34 {
35#if qStroika_Foundation_Debug_AssertionsChecked
36 Invariant_ ();
37#endif
38 }
39
40}