fltk
1.3.5-source
About: FLTK (Fast Light Tool Kit) is a cross-platform C++ GUI toolkit for UNIX/Linux (X11), Microsoft Windows, and MacOS X. Fossies Dox: fltk-1.3.5-source.tar.bz2 ("inofficial" and yet experimental doxygen-generated source code documentation) 
|
Go to the documentation of this file. 23 #ifndef Fl_Help_View_H 24 # define Fl_Help_View_H 102 elts_[nfonts_].set(
f, s, c);
111 elts_[nfonts_].set(
f, s, c);
116 if (nfonts_ > 0) nfonts_ --;
121 size_t count()
const {
return nfonts_;}
258 Fl_Help_Block *add_block(
const char *s,
int xx,
int yy,
int ww,
int hh,
uchar border = 0);
259 void add_link(
const char *n,
int xx,
int yy,
int ww,
int hh);
260 void add_target(
const char *n,
int yy);
262 int do_align(
Fl_Help_Block *block,
int line,
int xx,
int a,
int &l);
263 #if FLTK_ABI_VERSION >= 10303 267 #if FLTK_ABI_VERSION >= 10303 271 void format_table(
int *table_width,
int *columns,
const char *
table);
273 int get_align(
const char *
p,
int a);
274 const char *get_attr(
const char *
p,
const char *n,
char *
buf,
int bufsize);
277 int get_length(
const char *l);
278 #if FLTK_ABI_VERSION >= 10303 282 #if FLTK_ABI_VERSION >= 10303 286 void hv_draw(
const char *t,
int x,
int y,
int entity_extra_length = 0);
287 char begin_selection();
288 char extend_selection();
289 void end_selection(
int c=0);
290 void clear_global_selection();
296 Fl_Help_View(
int xx,
int yy,
int ww,
int hh,
const char *l = 0);
299 const char *
directory()
const {
if (directory_[0])
return (directory_);
300 else return ((
const char *)0); }
302 const char *
filename()
const {
if (filename_[0])
return (filename_);
303 else return ((
const char *)0); }
304 int find(
const char *s,
int p = 0);
328 int load(
const char *
f);
329 void resize(
int,
int,
int,
int);
331 int size()
const {
return (size_); }
346 const char *
title() {
return (title_); }
347 void topline(
const char *n);
354 void value(
const char *val);
356 const char *
value()
const {
return (value_); }
357 void clear_selection();
369 return(scrollbar_size_);
391 scrollbar_size_ = newSize;
395 #endif // !Fl_Help_View_H
char name[32]
Link target (blank if none)
void initfont(Fl_Font &f, Fl_Fontsize &s, Fl_Color &c)
void fl_font(Fl_Font face, Fl_Fontsize fsize)
const char * directory() const
Fl_Help_Func * link_
Link transform function.
const typedef char *() Fl_Help_Func(Fl_Widget *, const char *)
int find(const Fl_Widget *) const
static Fl_Color hv_selection_color
char filename[192]
Reference filename.
Fl_Color textcolor_
Text color.
int y
Y offset of link text.
Fl_Fontsize textsize() const
void scrollbar_size(int newSize)
void fl_color(Fl_Color c)
void init(Fl_Font f, Fl_Fontsize s, Fl_Color c)
static Fl_Help_View * current_view
void pushfont(Fl_Font f, Fl_Fontsize s, Fl_Color c)
void textcolor(Fl_Color c)
int nlinks_
Number of links.
Fl_Color textcolor() const
const char * filename() const
static int selection_push_first
utility header to pull drawing functions together
char name[32]
Target name.
int h
Height of link text.
void push(Fl_Font f, Fl_Fontsize s, Fl_Color c)
static Fl_Color hv_selection_text_color
static int selection_push_last
int scrollbar_size() const
size_t nfonts_
current number of fonts in stack
void link(Fl_Help_Func *fn)
Fl_Help_Font_Style(Fl_Font afont, Fl_Fontsize asize, Fl_Color acolor)
void resize(int, int, int, int)
Fl_Help_Target * targets_
Targets.
Fl_Help_Block * blocks_
Blocks.
static int selection_drag_first
Fl_Help_Font_Stack fstack_
font stack management
void textsize(Fl_Fontsize s)
Fl_Scrollbar scrollbar_
Vertical scrollbar for document.
int ntargets_
Number of targets.
int topline_
Top line in document.
int nblocks_
Number of blocks/paragraphs.
void top(Fl_Font &f, Fl_Fontsize &s, Fl_Color &c)
static int selection_drag_last
void pop(Fl_Font &f, Fl_Fontsize &s, Fl_Color &c)
const char * value() const
Fl_Font textfont_
Default font for text.
const size_t MAX_FL_HELP_FS_ELTS
void set(Fl_Font afont, Fl_Fontsize asize, Fl_Color acolor)
Sets current font attributes.
const char * value_
HTML text value.
void pushfont(Fl_Font f, Fl_Fontsize s)
static int selection_last
static int selection_first
Fl_Fontsize textsize_
Default font size.
int x
X offset of link text.
void get(Fl_Font &afont, Fl_Fontsize &asize, Fl_Color &acolor)
Gets current font attributes.
Fl_Help_Link * links_
Links.
void popfont(Fl_Font &f, Fl_Fontsize &s, Fl_Color &c)