FLTK 1.4.5: Fl_Help_Dialog.H Source File

FLTK 1.4.5

Loading...
Searching...
No Matches
Fl_Help_Dialog.H
1//
2// Fl_Help_Dialog dialog for the Fast Light Tool Kit (FLTK).
3//
4// Copyright 1998-2021 by Bill Spitzak and others.
5//
6// This library is free software. Distribution and use rights are outlined in
7// the file "COPYING" which should have been included with this file. If this
8// file is missing or damaged, see the license at:
9//
10// https://www.fltk.org/COPYING.php
11//
12// Please see the following page on how to report bugs and issues:
13//
14// https://www.fltk.org/bugs.php
15//
16// ========================================================================
17// DO NOT EDIT FL/Fl_Help_Dialog.H and src/Fl_Help_Dialog.cxx !!!
18// ========================================================================
19// Please use fluid to change src/Fl_Help_Dialog.fl interactively
20// and then use fluid to "write code" or edit and use fluid -c .
21// ========================================================================
22//
23
24// generated by Fast Light User Interface Designer (fluid) version 1.0405
25
26#ifndef Fl_Help_Dialog_H
27#define Fl_Help_Dialog_H
28#include <FL/Fl.H>
29#include <FL/Fl_Double_Window.H>
30#include <FL/Fl_Group.H>
31#include <FL/Fl_Button.H>
32#include <FL/Fl_Input.H>
33#include <FL/Fl_Box.H>
34#include <FL/Fl_Help_View.H>
35
36 class FL_EXPORT Fl_Help_Dialog {
37 int index_;
38 int max_;
39 int line_[100]; // FIXME: we must remove those static numbers
40 char file_[100][FL_PATH_MAX]; // FIXME: we must remove those static numbers
41 int find_pos_;
42public:
43 Fl_Help_Dialog();
44private:
45 Fl_Double_Window *window_;
46 Fl_Button *back_;
47 inline void cb_back__i(Fl_Button*, void*);
48 static void cb_back_(Fl_Button*, void*);
49 Fl_Button *forward_;
50 inline void cb_forward__i(Fl_Button*, void*);
51 static void cb_forward_(Fl_Button*, void*);
52 Fl_Button *smaller_;
53 inline void cb_smaller__i(Fl_Button*, void*);
54 static void cb_smaller_(Fl_Button*, void*);
55 Fl_Button *larger_;
56 inline void cb_larger__i(Fl_Button*, void*);
57 static void cb_larger_(Fl_Button*, void*);
58 Fl_Input *find_;
59 inline void cb_find__i(Fl_Input*, void*);
60 static void cb_find_(Fl_Input*, void*);
61 Fl_Help_View *view_;
62 inline void cb_view__i(Fl_Help_View*, void*);
63 static void cb_view_(Fl_Help_View*, void*);
64public:
65 ~Fl_Help_Dialog();
66 int h();
67 void hide();
68 int load(const char *f);
69 void position(int xx, int yy);
70 void resize(int xx, int yy, int ww, int hh);
71 void show();
72 void show(int argc, char **argv);
73 void textsize(Fl_Fontsize s);
74 Fl_Fontsize textsize();
75 void topline(const char *n);
76 void topline(int n);
77 void value(const char *f);
78 const char * value() const;
79 int visible();
80 int w();
81 int x();
82 int y();
83};
84#endif
Fl_Fontsize
int Fl_Fontsize
Size of a font in pixels.
Definition Enumerations.H:1092
Fl.H
Fl static class.
Fl_Box.H
Fl_Box widget.
Fl_Group.H
Fl_Group and Fl_End classes.
Fl_Button
Buttons generate callbacks when they are clicked by the user.
Definition Fl_Button.H:76
Fl_Double_Window
The Fl_Double_Window provides a double-buffered window.
Definition Fl_Double_Window.H:31
Fl_Help_Dialog::h
int h()
Returns the position and size of the help dialog.
Definition Fl_Help_Dialog.cxx:214
Fl_Help_Dialog::y
int y()
Returns the position and size of the help dialog.
Definition Fl_Help_Dialog.cxx:293
Fl_Help_Dialog::visible
int visible()
Returns 1 if the Fl_Help_Dialog window is visible.
Definition Fl_Help_Dialog.cxx:281
Fl_Help_Dialog::load
int load(const char *f)
Loads the specified HTML file into the Fl_Help_View widget.
Definition Fl_Help_Dialog.cxx:222
Fl_Help_Dialog::textsize
void textsize(Fl_Fontsize s)
Sets or gets the default text size for the help view.
Definition Fl_Help_Dialog.cxx:245
Fl_Help_Dialog::w
int w()
Returns the position and size of the help dialog.
Definition Fl_Help_Dialog.cxx:285
Fl_Help_Dialog::position
void position(int xx, int yy)
Set the screen position of the dialog.
Definition Fl_Help_Dialog.cxx:229
Fl_Help_Dialog::x
int x()
Returns the position and size of the help dialog.
Definition Fl_Help_Dialog.cxx:289
Fl_Help_Dialog::show
void show()
Shows the Fl_Help_Dialog window.
Definition Fl_Help_Dialog.cxx:237
Fl_Help_Dialog::value
void value(const char *f)
The first form sets the current buffer to the string provided and reformats the text.
Definition Fl_Help_Dialog.cxx:271
Fl_Help_Dialog::hide
void hide()
Hides the Fl_Help_Dialog window.
Definition Fl_Help_Dialog.cxx:218
Fl_Help_Dialog::resize
void resize(int xx, int yy, int ww, int hh)
Change the position and size of the dialog.
Definition Fl_Help_Dialog.cxx:233
Fl_Help_Dialog::Fl_Help_Dialog
Fl_Help_Dialog()
The constructor creates the dialog pictured above.
Definition Fl_Help_Dialog.cxx:146
Fl_Help_Dialog::topline
void topline(const char *n)
Sets the top line in the Fl_Help_View widget to the named or numbered line.
Definition Fl_Help_Dialog.cxx:263
Fl_Help_View
The Fl_Help_View widget displays HTML text.
Definition Fl_Help_View.H:201
Fl_Input
This is the FLTK text input widget.
Definition Fl_Input.H:220
FL_PATH_MAX
#define FL_PATH_MAX
all path buffers should use this length
Definition filename.H:45