24#include <FL/Fl_Window.H>
76 for (
int i = 0; i < 1; i++) {
78 for(
int x = 0; x < 400; x++) {
79 buf[3 * x + 0] = x * 255 / 399;
80 buf[3 * x + 1] = (399 - x) * 255 / 399;
81 buf[3 * x + 2] =
imgRow * 255 / 199;
94int main(
int argc,
char **argv)
99 Fl_Window *
window =
new Fl_Window(410, 210,
"Dw Scaled Image");
113 fontAttrs.
name =
"Bitstream Charter";
151 int errorCode = Fl::run();
Displays an instance of dw::core::Imgbuf.
void drawRow(int row)
Called, when data from a row is available and has been copied into the image buffer.
void setBuffer(core::Imgbuf *buffer, bool resize=false)
Called, when an image buffer is attached.
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)
?
The platform independent interface for image buffers.
virtual void copyRow(int row, const byte *data)=0
The central class for managing and drawing a widget tree.
void attachView(View *view)
Attach a view to the layout.
void setWidget(Widget *widget)
Imgbuf * createImgbuf(Imgbuf::Type type, int width, int height, double gamma)
static Color * create(Layout *layout, int color)
static Font * create(Layout *layout, FontAttrs *attrs)
static Style * create(StyleAttrs *attrs)
static Style * widgetStyle
static Fl_Window * window
static FltkPlatform * platform
static FltkViewport * viewport
static void imageInitTimeout(void *data)
static core::Imgbuf * imgbuf
static void imageDrawTimeout(void *data)
Anything related to Dillo Widget styles is defined here.
Length createPerLength(double v)
Returns a percentage, v is relative to 1, not to 100.
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.