summaryrefslogtreecommitdiff
path: root/listbox.go
AgeCommit message (Collapse)Author
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-11Split NewListbox() into NewListbox() (single-selection) and ↵Pietro Gagliardi
NewMultiSelListbox() (multiple selection); fixed the documentaiton for the Listbox constructor(s) to talk about Listbox and not Combobox, and added some TODOs.
2014-03-11Removed error returns from Combobox.Delete(), Listbox.Delete(), and ↵Pietro Gagliardi
sysData.delete(), since they are no longer used. Updated the TODO file to mark this issue closed.
2014-03-11Handle out of range on Listbox.Delete(). The Mac OS X exception behavior I ↵Pietro Gagliardi
previously noted has bene resolved: what happens after exception handling is undefined :|
2014-03-09Removed error returns from Control.preferredSize() since errors are not ↵Pietro Gagliardi
going to be returned anymore.
2014-03-09Fixed compiler errors in the previous commit.Pietro Gagliardi
2014-03-09Steamrolled errors under panic() in Combobox/Listbox.Append()/InsertBefore() ↵Pietro Gagliardi
because screw Windows being different.
2014-03-09Added bounds checks for Listbox.InsertBefore(). This stupid 32-bit Mac bug ↵Pietro Gagliardi
keeps Listbox.Delete() unchecked for now...
2014-03-08Added Combobox/Listbox.Len() and its GTK+ implementation.Pietro Gagliardi
2014-03-07Pinned (or marked for later pinninig) behavior of various controls; also ↵Pietro Gagliardi
improved Space()'s documentation.
2014-03-07Changed Combobox.Append() and Listbox.Append() to accept multiple strings in ↵Pietro Gagliardi
one call.
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-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-17Removed all //package ui comments.Pietro Gagliardi
2014-02-15Added Listbox.Selection() and Listbox.SelectedIndices(). Also fixed a bug ↵Pietro Gagliardi
involving sysData.selectedIndices() with nothing selected.
2014-02-15Added Combobox.Delete() and Listbox.Delete() and added some TODOs.Pietro Gagliardi
2014-02-15Added Listbox.Append() and Listbox.InsertBefore().Pietro Gagliardi
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-14Added Listboxes. You can't use the results just yet...Pietro Gagliardi