29 #ifndef Pt_Forms_LineEditor_H
30 #define Pt_Forms_LineEditor_H
32 #include <Pt/Forms/Adjustment.h>
33 #include <Pt/Forms/TextBlock.h>
34 #include <Pt/Gfx/Font.h>
35 #include <Pt/Gfx/Size.h>
36 #include <Pt/Gfx/Point.h>
37 #include <Pt/String.h>
50 const Gfx::PointF& position()
const;
52 void setPosition(
const Gfx::PointF& p);
54 const Gfx::SizeF& size()
const;
56 void setSize(
const Gfx::SizeF& s);
58 Adjustment adjustment()
const;
60 void setAdjustment(Adjustment a);
62 bool isMasked()
const;
64 void setMasked(
bool m);
72 std::size_t cursorPosition()
const;
74 void setCursorPosition(std::size_t n);
90 void layout(Gfx::Painter& painter, TextLine& line);
92 void layout(Gfx::Painter& painter,
const Pt::String& text, TextLine& line);
95 Gfx::PointF _position;
97 Adjustment _adjustment;
101 std::size_t _cursorPosition;
102 double _scrollOffset;
Unicode capable basic_string.
Definition: String.h:42