summaryrefslogtreecommitdiff
path: root/button.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-11Created a new Control setup; wrote Button for it.Pietro Gagliardi
2018-08-11Moved all the Go files back out of the way. There needs to be a better way.Pietro Gagliardi
2018-08-11Started migrating controls back. These first few are unchanged.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-19Wrote up Area for real this time.Pietro Gagliardi
2015-12-12Added Button and Checkbox.Pietro Gagliardi
2014-08-30Out with the old...Pietro Gagliardi
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-01Made Button.Clicked a callback.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-28Implemented the new events in the portable code.Pietro Gagliardi
2014-06-28Began the migration to the new API. Removed locks from the public control ↵Pietro Gagliardi
APIs; they won't be needed anymore.
2014-06-25Made the new sizing system work on Windows.Pietro Gagliardi
2014-06-25Migrated existing controls to the new sizing system.Pietro Gagliardi
2014-06-25Added the necessary work to make new regular Labels work on the other platforms.Pietro Gagliardi
2014-06-10More go fmt.Pietro Gagliardi
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-18Restored the locks everywhere except on resizing calculations. I'll run ↵Pietro Gagliardi
under the assumption that uitask cannot process any requests while a resize occurs, which means preferredSize() and Stack/Grid.setRect() are inherently safe... let's hope I'm right...
2014-03-17Changed the new resizing code so that it uses the same allocated slice per ↵Pietro Gagliardi
window instead of making a new one to store all the resize requests each time.
2014-03-17Changed window resizes so that the actual Control.setRect() functions ↵Pietro Gagliardi
appended to an array of requests that the resize() function set all at once instead of having each done individually. This will be necessary for what I think will be a solution to the deadlocks. It doesn't work right now; I'm assuming it's allocating too much memory. I know how to fix this, but I'm committing what I have so far to be safe.
2014-03-17Dumped the mutex locks from the other controls and elaborated/asked for help ↵Pietro Gagliardi
in the README.
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 Control.preferredSize() since errors are not ↵Pietro Gagliardi
going to be returned anymore.
2014-03-03Fixed Mac OS X control placement flipping. This is done by passing the ↵Pietro Gagliardi
height of the window around setRect() calls to avoid polling the content view frame each time.
2014-02-25Documentation fixups.Pietro Gagliardi
2014-02-24Added Control.preferredSize() and preferredSize() for all the standard Controls.Pietro Gagliardi
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-18Buffered the event channels, as per skelterjohn's suggestion; I thought this ↵Pietro Gagliardi
would fix the faults I now get, but it doesn't...
2014-02-15Gave all relevant controls matching SetText()/Text() pairs. Also added a ↵Pietro Gagliardi
TODO for Checkbox related to checked state.
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.
2014-02-14Handled all controls's created field.Pietro Gagliardi
2014-02-14Renamed Control.apply() to Control.make().Pietro Gagliardi
2014-02-14Changed manual sysData construction to use a helper function instead.Pietro Gagliardi
2014-02-13Removed Control.setParent() as the parent/child hierarchy is now unidirectional.Pietro Gagliardi
2014-02-13Added sizing of windows and the main window control. It presently deadlocks; ↵Pietro Gagliardi
I'll need to redo my mutexes...
2014-02-12Fixed compiler errors. New code structure success!Pietro Gagliardi
2014-02-12Whoops, forgot to turn Button.sysData.clicked into Button.sysData.event.Pietro Gagliardi
2014-02-12Modified Button for the new changes. Now I just need to actually create the ↵Pietro Gagliardi
window class and edit main()...
2014-02-12Whoops, forgot to add button.go itself :|Pietro Gagliardi