23#include <FL/Fl_Window.H>
47 "one",
"two",
"three",
"four",
"five",
48 "six",
"seven",
"eight",
"nine",
"ten"
77 for (
int i = 0; i < 30; i++) {
81 strcat (buf, i == 29 ?
"." :
",");
95int main(
int argc,
char **argv)
97 char *buttonLabel[10];
102 window =
new Fl_Window(250, 200,
"Dw Anchors Test");
110 for (
int i = 0; i < 10; i++) {
115 Fl_Button *button =
new Fl_Button(0, 20 * i, 50, 20, buttonLabel[i]);
117 button->when (FL_WHEN_RELEASE);
121 fontAttrs.
name =
"Bitstream Charter";
154 int errorCode = Fl::run();
160 for (
int i = 0; i < 10; i++)
161 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.