26 #include <cwidget/fragment_contents.h> 80 void dispatch_mouse(
short id,
int x,
int y,
int z, mmask_t bstate);
146 bool search_forwards);
165 static void init_bindings();
168 void set_start(
unsigned int new_start);
171 void freshen_contents(
const style &st);
This class represents the formatted contents of a fragment.
Definition: fragment_contents.h:30
void move_to_bottom()
Move the view to the bottom of the widget.
Definition: text_layout.cc:245
static util::ref_ptr< text_layout > create(fragment *f)
Create a text_layout with the given root fragment.
Definition: text_layout.h:68
void search_for(const std::wstring &s, bool search_forwards)
Search either forwards or backwards for the string s.
Definition: text_layout.cc:279
void page_down()
Move a page forward.
Definition: text_layout.cc:260
void append_fragment(fragment *f)
Append the given fragment to the current fragment.
Definition: text_layout.cc:137
void page_up()
Move a page back.
Definition: text_layout.cc:252
~text_layout()
Delete the root fragment.
Definition: text_layout.cc:120
static util::ref_ptr< text_layout > create()
Create an empty text_layout.
Definition: text_layout.h:56
void move_to_top()
Move the view to the top of the widget.
Definition: text_layout.cc:240
void set_fragment(fragment *f)
Change the fragment being displayed in this layout widget.
Definition: text_layout.cc:125
void scroll(bool dir)
Page based on a scrollbar signal.
Definition: text_layout.cc:335
void paint(const style &st)
Paint this widget.
Definition: text_layout.cc:194
void line_up()
Move the view one line up.
Definition: text_layout.cc:231
bool handle_key(const config::key &k)
Handle the given keypress.
Definition: text_layout.cc:56
void line_down()
Move the view one line down.
Definition: text_layout.cc:223
sigc::signal2< void, int, int > location_changed
A signal that is called whenever the "location" of the view within the text changes.
Definition: text_layout.h:161
Code to display formatted text.
Definition: text_layout.h:49
bool focus_me()
Return true iff this widget should be given focus.
Definition: text_layout.cc:181
bool get_cursorvisible()
Return true iff the cursor is visible in this widget.
Definition: text_layout.cc:167
point get_cursorloc()
Return the location of the cursor in this widget.
Definition: text_layout.cc:173
int width_request()
Return the requested width of this widget.
Definition: text_layout.cc:103
int height_request(int w)
Return the requested height of this widget given its width, by running the fragment-layout algorithm...
Definition: text_layout.cc:111