||6 years ago|
|drivers/gl||6 years ago|
|gxfont||7 years ago|
|interval||7 years ago|
|math||7 years ago|
|mixins||6 years ago|
|samples||6 years ago|
|testing||7 years ago|
|themes||6 years ago|
|.travis.yml||6 years ago|
|LICENSE||7 years ago|
|README.md||6 years ago|
|VERSION||7 years ago|
|adapter_base.go||6 years ago|
|adapter_item.go||7 years ago|
|alignment.go||7 years ago|
|brush.go||7 years ago|
|bubble_overlay.go||7 years ago|
|button.go||7 years ago|
|canvas.go||6 years ago|
|channeled_event.go||7 years ago|
|code_editor.go||7 years ago|
|code_syntax_layer.go||7 years ago|
|color.go||7 years ago|
|container.go||6 years ago|
|control.go||6 years ago|
|control_list.go||7 years ago|
|debug.go||6 years ago|
|default_adapter.go||6 years ago|
|direction.go||7 years ago|
|driver.go||6 years ago|
|drop_down_list.go||7 years ago|
|event.go||7 years ago|
|event_base.go||6 years ago|
|event_test.go||6 years ago|
|filtered_list_adapter.go||7 years ago|
|filtered_list_adapter_test.go||7 years ago|
|focus_controller.go||6 years ago|
|focusable.go||6 years ago|
|font.go||7 years ago|
|image.go||7 years ago|
|keyboard_controller.go||7 years ago|
|keyboard_event.go||7 years ago|
|keyboard_key.go||7 years ago|
|keyboard_modifier.go||7 years ago|
|keystroke_event.go||7 years ago|
|label.go||7 years ago|
|linear_layout.go||7 years ago|
|list.go||6 years ago|
|mouse_button.go||7 years ago|
|mouse_controller.go||7 years ago|
|mouse_event.go||7 years ago|
|mouse_state.go||6 years ago|
|orientation.go||7 years ago|
|panel_holder.go||7 years ago|
|pen.go||7 years ago|
|polygon.go||7 years ago|
|progress_bar.go||7 years ago|
|scroll_bar.go||7 years ago|
|scroll_layout.go||7 years ago|
|simple_event.go||7 years ago|
|size_mode.go||7 years ago|
|splitter_layout.go||7 years ago|
|table_layout.go||6 years ago|
|text_selection.go||7 years ago|
|text_selection_list.go||7 years ago|
|text_selection_list_test.go||7 years ago|
|textbox.go||7 years ago|
|textbox_controller.go||7 years ago|
|textbox_controller_test.go||7 years ago|
|texture.go||6 years ago|
|theme.go||6 years ago|
|tooltip_controller.go||6 years ago|
|tree.go||6 years ago|
|utils.go||6 years ago|
|viewport.go||6 years ago|
|while_attached.go||6 years ago|
|window.go||6 years ago|
GXUI - A Go cross platform UI library.
Unfortunately due to a shortage of hours in a day, GXUI is no longer maintained.
If you're looking for a GUI library for your next Go project, check out these alternatives.
The code is mostly undocumented, and is certainly not idiomatic Go.
This is not an official Google product (experimental or otherwise), it is just code that happens to be owned by Google.
In order to build GXUI on linux, you will need the following packages installed:
sudo apt-get install libxi-dev libxcursor-dev libxrandr-dev libxinerama-dev mesa-common-dev libgl1-mesa-dev libxxf86vm-dev
After setting up
GOPATH (see Go documentation), you can then fetch the GXUI library and its dependencies:
go get -u github.com/google/gxui/...
Samples can be found in
To build all samples run:
go install github.com/google/gxui/samples/...
And they will be built into
If you add
GOPATH/bin to your PATH, you can simply type the name of a sample to run it. For example:
go get -u github.com/gopherjs/gopherjs go get -u -d -tags=js github.com/google/gxui/...
Afterwards, you can try the samples by running
gopherjs serve command and opening http://localhost:8080/github.com/google/gxui/samples/ in a browser.
Many of the samples require a font to render text. The dark theme (and currently the only theme) uses
This is built into the gxfont package.
Make sure to mention this font in any notices file distributed with your application.
GXUI was written by a couple of Googlers as an experiment and is now unmaintained.
Contributions, however small, will require the author to have signed the Google Individual Contributor License Agreement.
The CLA is necessary mainly because you own the copyright to your changes, even after your contribution becomes part of our codebase, so we need your permission to use and distribute your code. We also need to be sure of various other things—for instance that you'll tell us if you know that your code infringes on other people's patents. You don't have to sign the CLA until after you've submitted your code for review and a member has approved it, but you must do it before we can put your code into our codebase. Before you start working on a larger contribution, you should get in touch with us first through the issue tracker with your idea so that we can help out and possibly guide you. Coordinating up front makes it much easier to avoid frustration later on.