-
Book Overview & Buying
-
Table Of Contents
D Web Development
By :
The X11 application draws rectangles and ellipses as well. The structure of the application is basically the same but the details vary. Xlib, the implementation library of X11, is not multithread-safe. The use of fibers here is a big win. The X11 GUI application that you will create now looks as follows:

Coding for X11 requires the development libraries. Depending on your operating system, you have to install them as follows:
On Ubuntu/Debian, you can install the required library with the following command:
$ sudo apt-get install libx11-dev
On Fedora, you can type the following:
$ sudo yum install –y libX11-dev
With the development libraries installed, you can create your project with dub:
$ dub init x11client --type=minimal
As in the Windows application, the minimal project type is used.
First, you update the generated dub.sdl file. The application requires a special main() function. Therefore, the VibeCustomMain version must be specified. The parsing of the...
Change the font size
Change margin width
Change background colour