wayland-client-d ~master
Wayland bindings for D.
To use this package, run the following command in your project's root directory:
Manual usage
Put the following dependency into your project's dependences section:
This package provides sub packages which can be used individually:
wayland-client-d:connect - connect wayland example
wayland-client-d
D bindings to wayland-client library.
Project not maintained anymore. Superseded by the wayland-d project.
D code sample:
module connect;
import wayland.client;
import std.stdio;
int main(string[] args)
{
// with version(Dynamic) of wayland-client-d, no linkage is necessary
// but loadWaylandClient() must be called before any use of the library
// with default version of wayland-client-d, one must link with wayland-client-d
// and initialization is performed automatically
loadWaylandClient();
wl_display *display = wl_display_connect(null);
if (!display) {
stderr.writeln("Can't connect to display");
return 1;
}
writeln("connected to display");
wl_display_disconnect(display);
writeln("disconnected from display");
return 0;
}
- ~master released 7 years ago
- rtbo/wayland-client-d
- MIT
- Copyright © 2015, remi.thebault
- Authors:
- Sub packages:
- wayland-client-d:connect
- Dependencies:
- none
- Versions:
-
1.8.90 2015-Aug-20 ~master 2017-Feb-05 - Download Stats:
-
-
0 downloads today
-
0 downloads this week
-
0 downloads this month
-
2480 downloads total
-
- Score:
- 1.5
- Short URL:
- wayland-client-d.dub.pm