25 #include <cwidget/fragment_contents.h> 79 void dispatch_mouse(
short id,
int x,
int y,
int z, mmask_t bstate);
145 bool search_forwards);
164 static void init_bindings();
167 void set_start(
unsigned int new_start);
170 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:244
static util::ref_ptr< text_layout > create(fragment *f)
Create a text_layout with the given root fragment.
Definition: text_layout.h:67
void search_for(const std::wstring &s, bool search_forwards)
Search either forwards or backwards for the string s.
Definition: text_layout.cc:278
void page_down()
Move a page forward.
Definition: text_layout.cc:259
void append_fragment(fragment *f)
Append the given fragment to the current fragment.
Definition: text_layout.cc:136
void page_up()
Move a page back.
Definition: text_layout.cc:251
~text_layout()
Delete the root fragment.
Definition: text_layout.cc:119
static util::ref_ptr< text_layout > create()
Create an empty text_layout.
Definition: text_layout.h:55
void move_to_top()
Move the view to the top of the widget.
Definition: text_layout.cc:239
void set_fragment(fragment *f)
Change the fragment being displayed in this layout widget.
Definition: text_layout.cc:124
void scroll(bool dir)
Page based on a scrollbar signal.
Definition: text_layout.cc:334
void paint(const style &st)
Paint this widget.
Definition: text_layout.cc:193
void line_up()
Move the view one line up.
Definition: text_layout.cc:230
bool handle_key(const config::key &k)
Handle the given keypress.
Definition: text_layout.cc:55
void line_down()
Move the view one line down.
Definition: text_layout.cc:222
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:160
Code to display formatted text.
Definition: text_layout.h:48
bool focus_me()
Return true iff this widget should be given focus.
Definition: text_layout.cc:180
bool get_cursorvisible()
Return true iff the cursor is visible in this widget.
Definition: text_layout.cc:166
point get_cursorloc()
Return the location of the cursor in this widget.
Definition: text_layout.cc:172
int width_request()
Return the requested width of this widget.
Definition: text_layout.cc:102
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:110