mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-18 16:27:34 +01:00
27 lines
494 B
C++
27 lines
494 B
C++
#ifndef _WORD_WRAP_VIEW_H_
|
|
#define _WORD_WRAP_VIEW_H_
|
|
|
|
#include <escher.h>
|
|
|
|
namespace Reader
|
|
{
|
|
|
|
class WordWrapTextView : public PointerTextView {
|
|
public:
|
|
void drawRect(KDContext * ctx, KDRect rect) const override;
|
|
void setText(const char*, int length);
|
|
void nextPage();
|
|
void previousPage();
|
|
int getPageOffset() const;
|
|
void setPageOffset(int o);
|
|
protected:
|
|
int m_pageOffset = 0;
|
|
mutable int m_nextPageOffset = 0;
|
|
int m_length = 0;
|
|
|
|
static const int margin = 10;
|
|
};
|
|
|
|
}
|
|
|
|
#endif |