{"id":13805145,"url":"https://github.com/d-widget-toolkit/dwt","last_synced_at":"2025-12-24T18:54:09.739Z","repository":{"id":1029153,"uuid":"2586513","full_name":"d-widget-toolkit/dwt","owner":"d-widget-toolkit","description":"A library for creating cross-platform GUI applications.","archived":false,"fork":false,"pushed_at":"2023-09-19T11:28:36.000Z","size":3576,"stargazers_count":142,"open_issues_count":14,"forks_count":33,"subscribers_count":21,"default_branch":"master","last_synced_at":"2024-11-18T21:46:58.879Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"D","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/d-widget-toolkit.png","metadata":{"files":{"readme":"README.markdown","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2011-10-16T15:19:18.000Z","updated_at":"2024-11-11T00:53:00.000Z","dependencies_parsed_at":"2024-01-03T01:20:11.938Z","dependency_job_id":"edf84a49-c92d-4082-b650-749fa5ad7236","html_url":"https://github.com/d-widget-toolkit/dwt","commit_stats":{"total_commits":176,"total_committers":12,"mean_commits":"14.666666666666666","dds":0.5852272727272727,"last_synced_commit":"91478e193afd95f183bec6a8e67cd71e9e29a872"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d-widget-toolkit%2Fdwt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d-widget-toolkit%2Fdwt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d-widget-toolkit%2Fdwt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d-widget-toolkit%2Fdwt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/d-widget-toolkit","download_url":"https://codeload.github.com/d-widget-toolkit/dwt/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254003513,"owners_count":21997897,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-04T01:00:57.965Z","updated_at":"2025-12-24T18:54:09.732Z","avatar_url":"https://github.com/d-widget-toolkit.png","language":"D","readme":"## DWT - D Widget Toolkit\n\nDWT is a library for creating cross-platform GUI applications.\nIt's a port of the [SWT](http://www.eclipse.org/swt) Java library from Eclipse.\nCurrent supported platforms are Windows, using Win32 and Linux, using GTK.\n\n## Usage\n\n1. Install all the [requirements](#requirements)\n1. Enter the following code in a file called `main.d`:\n\n    ```d\n    /+\n    dub.sdl:\n        name \"main\"\n        dependency \"dwt\" version=\"~\u003e1.0.0\"\n        libs \\\n          \"atk-1.0\" \\\n          \"cairo\" \\\n          \"dl\" \\\n          \"fontconfig\" \\\n          \"gdk-x11-2.0\" \\\n          \"gdk_pixbuf-2.0\" \\\n          \"glib-2.0\" \\\n          \"gmodule-2.0\" \\\n          \"gnomeui-2\" \\\n          \"gnomevfs-2\" \\\n          \"gobject-2.0\" \\\n          \"gthread-2.0\" \\\n          \"gtk-x11-2.0\" \\\n          \"pango-1.0\" \\\n          \"pangocairo-1.0\" \\\n          \"X11\" \\\n          \"Xcomposite\" \\\n          \"Xcursor\" \\\n          \"Xdamage\" \\\n          \"Xext\" \\\n          \"Xfixes\" \\\n          \"Xi\" \\\n          \"Xinerama\" \\\n          \"Xrandr\" \\\n          \"Xrender\" \\\n          \"Xtst\" \\\n          platform=\"linux\"\n    +/\n    module main;\n\n    import org.eclipse.swt.widgets.Display;\n    import org.eclipse.swt.widgets.Shell;\n\n    void main ()\n    {\n        auto display = new Display;\n        auto shell = new Shell;\n        shell.open();\n\n        while (!shell.isDisposed)\n            if (!display.readAndDispatch())\n                display.sleep();\n\n        display.dispose();\n    }\n    ```\n\n1. Build and run by running: `dub --single main.d`\n\n## Build all the Snippets\n\n```\n$ dub --single tools/build_snippets.d\n```\n\n## Documentation\n\nFor documentation, see any existing documentation or examples for SWT. See also\nthe [snippets](org.eclipse.swt.snippets/src/org/eclipse/swt/snippets) which\ncontains a bunch of the official SWT snippets ported to D.\n\n## \u003ca id=\"requirements\"\u003e\u003c/a\u003eRequirements\n\n### Windows\n\nAll required files are included in the repository.\n\n### Linux\n\nFor Ubuntu, use the packages below. For other systems use the corresponding\npackages available in the system package manager.\n\n* libcairo2-dev\n* libglib2.0-dev\n* libgnomeui-dev\n* libgtk2.0-dev\n* libpango1.0-dev\n* libxcomposite-dev\n* libxcursor-dev\n* libxdamage-dev\n* libxfixes-dev\n* libxi-dev\n* libxinerama-dev\n* libxrandr-dev\n* libxtst-dev\n","funding_links":[],"categories":["GUI Libs"],"sub_categories":["XML"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fd-widget-toolkit%2Fdwt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fd-widget-toolkit%2Fdwt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fd-widget-toolkit%2Fdwt/lists"}