28 #ifndef INC_YReader_DSReader_h_
29 #define INC_YReader_DSReader_h_ 1
68 ScreenUp = Screen |
Up,
69 ScreenDown = Screen |
Down,
70 LineUpScroll = LineUp | Scroll,
71 LineDownScroll = LineDown | Scroll,
72 ScreenUpScroll = ScreenUp | Scroll,
73 ScreenDownScroll = ScreenDown | Scroll
81 unique_ptr<Text::TextFileBuffer>
p_text;
82 Drawing::FontCache&
fc;
91 Text::TextFileBuffer::Iterator
i_top;
92 Text::TextFileBuffer::Iterator
i_btm;
166 ? p_text->GetEncoding() : Text::CharSet::
Null)
172 DefGetter(const ynothrow,
size_t, TextSize,
173 p_text ? p_text->GetTextSize() : 0)
182 DefGetter(const ynothrow,
size_t, TopPosition,
183 p_text ? p_text->GetPosition(i_top) : 0)
184 DefGetter(const ynothrow,
size_t, BottomPosition,
185 p_text ? p_text->GetPosition(i_btm) : 0)
193 Text::TextFileBuffer&
194 GetTextBufferRef()
ythrow(LoggedEvent)
198 throw LoggedEvent(
"Null text buffer pointer found.");
202 ImplUnseq(area_up.Color = c, area_dn.Color = c)
209 SetFont(const Drawing::Font&);
211 SetFontSize(Drawing::
FontSize = Drawing::Font::DefaultSize); \
220 SetVisible(
bool =
true);
225 AdjustForFirstNewline();
229 AdjustForPrevNewline();
247 AdjustScrollOffset();
254 Attach(YSLib::UI::
Window&, YSLib::UI::Window&);
295 MoveUpForLastLine(ptrdiff_t,
size_t);
298 Text::TextFileBuffer::Iterator