Koen Deforche 862baf98aa added skia backend for WRasterImage %!s(int64=11) %!d(string=hai) anos
..
CMakeLists.txt 862baf98aa added skia backend for WRasterImage %!s(int64=11) %!d(string=hai) anos
CornerImage.C 9e550fb272 Made it so the +- 0.5 will work in the CornerImage example. %!s(int64=11) %!d(string=hai) anos
CornerImage.h ca6e2bdbf4 merge of animation branch %!s(int64=13) %!d(string=hai) anos
README.md 8455fb6ae2 added README.md files for examples, several bug fixes %!s(int64=13) %!d(string=hai) anos
RoundedWidget.C 7358127544 see Changelog %!s(int64=15) %!d(string=hai) anos
RoundedWidget.h 23c84d699e back-port WDialog fixes from v3 branch %!s(int64=16) %!d(string=hai) anos
StyleExample.C 9dd3f8912a see Changelog %!s(int64=14) %!d(string=hai) anos
StyleExample.h 0876868beb see Changelog %!s(int64=14) %!d(string=hai) anos

README.md

style example

This example creates a new widget (RoundedWidget) which adds rounded corners to a child widget, using images that are rendered on the fly with the painting API.

This example is a bit dated since CSS3 now includes rounded corners which are already broadly supported across browsers.

How to run

See the README in the parent directory.

What it illustrates

  • how to use WCompositeWidget to define new widgets
  • how to use WResource for on-the-fly generated images
  • how to use WRasterImage with the painting API for painting raster images.