Nana C++ Library. Reference for users.
What we need to use nana
|
Public Member Functions | |
behavior_linewrapped (text_editor &editor) | |
std::vector< text_section > | line (std::size_t pos) const override |
Returns the text sections of a specified line. More... | |
row_coordinate | text_position_from_screen (int top) const override |
unsigned | max_pixels () const override |
void | merge_lines (std::size_t first, std::size_t second) override |
Deletes lines between first and second, and then, second line will be merged into first line. More... | |
void | add_lines (std::size_t pos, std::size_t lines) override |
void | prepare () override |
void | pre_calc_line (std::size_t line, unsigned pixels) override |
void | pre_calc_lines (unsigned pixels) override |
std::size_t | take_lines () const override |
std::size_t | take_lines (std::size_t pos) const override |
Returns the number of lines that the line of text specified by pos takes. More... | |
Public Member Functions inherited from nana::widgets::skeletons::text_editor::editor_behavior_interface | |
virtual | ~editor_behavior_interface ()=default |
Additional Inherited Members | |
Public Types inherited from nana::widgets::skeletons::text_editor::editor_behavior_interface | |
using | row_coordinate = std::pair< std::size_t, std::size_t > |
A coordinate type for line position. first: the absolute line position of text. second: the secondary line position of a part of line. More... | |
|
inline |
|
inlineoverridevirtual |
|
inlineoverridevirtual |
Returns the text sections of a specified line.
pos | The absolute line number. |
Implements nana::widgets::skeletons::text_editor::editor_behavior_interface.
|
inlineoverridevirtual |
|
inlineoverridevirtual |
Deletes lines between first and second, and then, second line will be merged into first line.
Implements nana::widgets::skeletons::text_editor::editor_behavior_interface.
|
inlineoverridevirtual |
|
inlineoverridevirtual |
|
inlineoverridevirtual |
|
inlineoverridevirtual |
|
inlineoverridevirtual |
Returns the number of lines that the line of text specified by pos takes.
Implements nana::widgets::skeletons::text_editor::editor_behavior_interface.
|
inlineoverridevirtual |