diff options
| author | Jeff Carr <[email protected]> | 2024-01-01 15:43:50 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-01-01 15:43:50 -0600 |
| commit | 4e7bbd89900a733593f0848778103c1cf1a7145d (patch) | |
| tree | 22cd22124dd3ecba7c2a866b882d39aaf790d670 /examples/example_test.go | |
| parent | 53ce3a8252090d5fb75d7fc1e3cd75a72c1415c6 (diff) | |
reorg to final resting place at go.wit.com/gui/guiv0.9.5
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'examples/example_test.go')
| -rw-r--r-- | examples/example_test.go | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/examples/example_test.go b/examples/example_test.go deleted file mode 100644 index 0086908..0000000 --- a/examples/example_test.go +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) 2013-2016 Dave Collins <[email protected]> - * - * Permission to use, copy, modify, and distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES - * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR - * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN - * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF - * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - */ - -package gui_test - -import ( - "go.wit.com/gui" -) - -// This example demonstrates how to create a NewWindow() -// -// Interacting with a GUI in a cross platform fashion adds some -// unusual problems. To obvuscate those, andlabs/ui starts a -// goroutine that interacts with the native gui toolkits -// on the Linux, MacOS, Windows, etc. -// -// Because of this oddity, to initialize a new window, the -// function is not passed any arguements and instead passes -// the information via the Config type. -// -func ExampleNewWindow() { - // Define the name and size - gui.Config.Title = "WIT GUI Window 1" - gui.Config.Width = 640 - gui.Config.Height = 480 - - // Create the Window - gui.NewWindow() - - // Output: - // You get a window -} |
