5namespace Stroika::Frameworks::Led {
7#if qStroika_Frameworks_Led_SupportGDI
13 template <
typename TEXTSTORE,
typename IMAGER>
21 TrivialWordWrappedImager<TEXTSTORE, IMAGER>::TrivialWordWrappedImager (Tablet* t)
22 : TrivialImager<TEXTSTORE, IMAGER> (t)
25 template <
typename TEXTSTORE,
typename IMAGER>
26 TrivialWordWrappedImager<TEXTSTORE, IMAGER>::TrivialWordWrappedImager (Tablet* t, Led_Rect bounds,
const Led_tString& initialText)
27 : TrivialImager<TEXTSTORE, IMAGER> (t)
29 this->SnagAttributesFromTablet ();
30 this->SetWindowRect (bounds);
31 this->GetTextStore ().Replace (0, 0, initialText.c_str (), initialText.length ());
33 template <
typename TEXTSTORE,
typename IMAGER>
34 void TrivialWordWrappedImager<TEXTSTORE, IMAGER>::GetLayoutMargins (MultiRowTextImager::RowReference row, CoordinateType* lhs, CoordinateType* rhs)
const
36 Ensure (this->GetWindowRect ().GetWidth () >= 1);
41 *rhs = this->GetWindowRect ().GetWidth ();
43#if qStroika_Foundation_Debug_AssertionsChecked
44 if (lhs !=
nullptr and rhs !=
nullptr) {
49 template <
typename TEXTSTORE,
typename IMAGER>
54 inline DistanceType TrivialWordWrappedImager<TEXTSTORE, IMAGER>::GetHeight ()
const
56 return this->GetHeightOfRows (0, this->GetRowCount ());