24#include <FL/Fl_Window.H>
48 "one",
"two",
"three",
"four",
"five",
49 "six",
"seven",
"eight",
"nine",
"ten"
78 for (
int i = 0; i < 30; i++) {
82 strcat (buf, i == 29 ?
"." :
",");
96int main(
int argc,
char **argv)
98 char *buttonLabel[10];
103 window =
new Fl_Window(250, 200,
"Dw Anchors Test");
111 for (
int i = 0; i < 10; i++) {
116 Fl_Button *button =
new Fl_Button(0, 20 * i, 50, 20, buttonLabel[i]);
118 button->when (FL_WHEN_RELEASE);
122 fontAttrs.
name =
"Bitstream Charter";
155 int errorCode = Fl::run();
161 for (
int i = 0; i < 10; i++)
162 free(buttonLabel[i]);
A Widget for rendering text blocks, i.e.
void addWidget(core::Widget *widget, core::style::Style *style)
Add a widget (word type) to the page.
void addSpace(core::style::Style *style)
?
bool addAnchor(const char *name, core::style::Style *style)
Add an anchor to the page.
void addText(const char *text, size_t len, core::style::Style *style)
Add a word to the page structure.
void addParbreak(int space, core::style::Style *style)
Cause a paragraph break.
void addLinebreak(core::style::Style *style)
The central class for managing and drawing a widget tree.
void attachView(View *view)
Attach a view to the layout.
void setWidget(Widget *widget)
void setAnchor(const char *anchor)
Sets the anchor to scroll to.
static Color * create(Layout *layout, int color)
static Font * create(Layout *layout, FontAttrs *attrs)
static Style * create(StyleAttrs *attrs)
char * dStrdup(const char *s)
static Style * widgetStyle
static Fl_Window * window
static const char * numbers[10]
static void textTimeout(void *data)
static Style * topWidgetStyle
static Textblock * topTextblock
static FltkPlatform * platform
static void anchorCallback(Fl_Widget *widget, void *data)
static Style * headingStyle
static FltkViewport * viewport
Anything related to Dillo Widget styles is defined here.
The core of Dw is defined in this namespace.
This namespace contains FLTK implementations of Dw interfaces.
Dw is in this namespace, or sub namespaces of this one.
This namespace provides thin wrappers, implemented as C++ templates, to gain type-safety.