summaryrefslogtreecommitdiff
path: root/window.go
AgeCommit message (Collapse)Author
2018-08-26Migrated window.go, box.go, button.go, and checkbox.go back.Pietro Gagliardi
2018-08-26Moved all the Go files out of the way again, this time so we can migrate ↵Pietro Gagliardi
them to more proper cgo usage.
2018-08-12Fixed build errors.Pietro Gagliardi
2018-08-11Un-intmax_t'd everything.Pietro Gagliardi
2018-08-11Migrated the containers.Pietro Gagliardi
2018-08-11Moved the existing .go files out of the way and replaced ui.h with the ↵Pietro Gagliardi
alpha4 ui.h.
2015-12-12Added Button and Checkbox.Pietro Gagliardi
2015-12-12Added uiWindow.Pietro Gagliardi
2015-12-11LET'S GET THIS FINAL REWRITE EVER STARTEDPietro Gagliardi
2014-10-18Merged new container/sizing stuff.Pietro Gagliardi
2014-08-31Changed Grid to SimpleGrid in preparation for a better Grid.Pietro Gagliardi
2014-08-30...in with the new.Pietro Gagliardi
2014-08-30Out with the old...Pietro Gagliardi
2014-07-03Added Post() and implemented it on Windows.Pietro Gagliardi
2014-07-03Removed uitask and made the Window creation functions only callable from the ↵Pietro Gagliardi
main thread. This si the first part in the real major change, which bans all concurrent use of the API and provides a Post() function for communication. I don't like this, but it's the only way. Untested.
2014-07-02Moved it all back; the preemptive multitaksing during an event handler kills ↵Pietro Gagliardi
us on all platforms. Going to have to restrict ALL GUI accss to happening from one t hread, so going to need to drop uitask entirely and have just a start() callback for startup code and a post() function for posting requests to windows (like channel sends but into a perpetual buffer).
2014-07-02Moved everything out of the way pending rewrite.Pietro Gagliardi
2014-07-01Restructured uitask to accept a limited range of actions. Implemented this ↵Pietro Gagliardi
on the Windows backend.
2014-07-01Made the default action for Window.Closing reject the close request.Pietro Gagliardi
2014-07-01Removed WindowHandler.Pietro Gagliardi
2014-06-30Made Window.Closing a callback closure.Pietro Gagliardi
2014-06-30Restored the previous new API. I'm going to change it so that events are ↵Pietro Gagliardi
callbacks rather than using a window handler, but other than that... yeah.
2014-06-30Reverted everything back to the old API.Pietro Gagliardi
2014-06-28Fixed the build. New API works on Windows! Also removed TODO on dialogs in ↵Pietro Gagliardi
Windows since I can't reproduce the weird behavior anymore; I guess the new code fixes it.
2014-06-28Decided to make dialogs code-modal; will figure out how to get the behavior ↵Pietro Gagliardi
I want on Mac OS X - http://stackoverflow.com/questions/24468620/how-do-i-create-a-nested-run-loop-after-nsalert-beginsheetmodalforwindow-tha - Now to see if Windows works...
2014-06-28Adjusted window.go to make safe functions actually safe.Pietro Gagliardi
2014-06-28Added rewrite of most of the dialog system for the new API. The Windows API ↵Pietro Gagliardi
is, however, getting in the way...
2014-06-28Documented the new Window.Closing behavior.Pietro Gagliardi
2014-06-28Implemented the new events in the portable code.Pietro Gagliardi
2014-06-28Migrated window.go and sysdata.go to the new API. Controls will need to be ↵Pietro Gagliardi
migrated as well.
2014-06-25Made the new sizing system work on Windows.Pietro Gagliardi
2014-06-25Began the work for moving everything to the new control sizing system.Pietro Gagliardi
2014-06-11Fixed window.go from the previous commit to improve documentation and change ↵Pietro Gagliardi
function behavior.
2014-06-11added Center function to windowpapplampe
2014-06-10Partial go fmt. Will do the rest over the next few commits. While I'm not ↵Pietro Gagliardi
too happy about it, everyone else uses go fmt, and pull requests will be more convenient if I just do it. (Also do it now, because when I change the Windows backend things are going to change...)
2014-06-03Big change to Window: split Open()'s functionality into Create() and Open(); ↵Pietro Gagliardi
they no longer return errors.
2014-06-03Quick changes: turned "Window has been opened" to "Window has been created" ↵Pietro Gagliardi
since I'm going to separate creating and opening (Open() will call Create()).
2014-04-10Documented that event channels can be assigned to each other to collapse events.Pietro Gagliardi
2014-04-01Removed the initText parameter from sysData.make() and changed all ↵Pietro Gagliardi
invocations to call sysData.setText() separately; this avoids the need to check if sysData.setText() is valid. Also implemented that on GTK+.
2014-03-12Separated file creation dates from the package comment.Pietro Gagliardi
2014-03-12Removed ui.Event(); all event channels are initialized with their objects now.Pietro Gagliardi
2014-03-10Removed error returns from [all controls].SetText() and Window.SetTitle().Pietro Gagliardi
2014-03-09Removed error returns from Window.Show() and Window.Hide(). Also properly ↵Pietro Gagliardi
locked the Window's mutex lock in both functions.
2014-03-09Split sysData.show() into separate show() and firstShow() to accomodate ↵Pietro Gagliardi
Windows's differing rules for first-time window show; this will also allow me to remove the error returns from sysData.show() and sysData.hide() (later).
2014-02-24And the uitask message fixed was the issue all along. Now it works.Pietro Gagliardi
2014-02-24Potential fix: show the window before getting control preferred sizes; need ↵Pietro Gagliardi
to make setRect() locking first.
2014-02-19Moved to a proper package; main() is now a test and go test -c is used to ↵Pietro Gagliardi
build. Once I iron out a bug with Windows event handling, I'll add a README.
2014-02-17Removed all //package ui comments.Pietro Gagliardi
2014-02-15Removed another TODO in window.go related to resizing. Also a note I forgot ↵Pietro Gagliardi
to say a few commits ago: setWindowSize() also keeps the OS-decided window position.
2014-02-15Removed setting the initial width and height in sysData.make() (this gets ↵Pietro Gagliardi
rid of the dummy 300x300 sizes from the controls) and added an explicit sysData.setWindowSize() to Window.Open() to ensure everything's sized properly.