summaryrefslogtreecommitdiff
path: root/area_darwin.go
AgeCommit message (Collapse)Author
2015-12-11LET'S GET THIS FINAL REWRITE EVER STARTEDPietro Gagliardi
2014-10-18Merged new container/sizing stuff.Pietro Gagliardi
2014-10-02go fmt. Precursor to bug report filing.Pietro Gagliardi
2014-08-30...in with the new.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-06-10More go fmt. That completes the main package go fmt. Won't bother with test ↵Pietro Gagliardi
or tools.
2014-06-06Elaborated previous commit.Pietro Gagliardi
2014-06-06Added note that Areas get focus on Mac OS X on a click event automatically ↵Pietro Gagliardi
since we make it a first responder.
2014-06-02Applied the Area events change to the Mac OS X backend, restructuring a few ↵Pietro Gagliardi
function signatures in the process.
2014-05-29Added new Modifiers code for Mac OS X. Also fixed some comment typos and ↵Pietro Gagliardi
added more TODOs.
2014-05-23Finished the Area clicking stuff: formalized the behavior in documentation ↵Pietro Gagliardi
in area.go, pointed out that Mac OS X already behaves as expected, updated some comments, and removed the relevant TODO.
2014-05-19Same as previous commit, but for Mac OS X now. The #cgo directives are in ↵Pietro Gagliardi
uitask_darwin.go.
2014-05-18Removed TODO about buttons 1+3 causing a button 2 click on Mac OS X Areas... ↵Pietro Gagliardi
it was actually on my host's end: X11/KDE is doing it, and I never noticed that before, nor do I remember that happening on the Windows/wine or GTK+ versions :S That's it for the TODOs in the Mac OS X Go files! :D
2014-05-17Made drawing of NSScrollView backgrounds explicit on Mac OS X. This is what ↵Pietro Gagliardi
Interface Builder sets for NSTableViews, so we do that too for Listbox. This also means NSScrollView draws the background for our Areas, settling the clear clip rect TODO.
2014-05-17Fixed variable names in Area drawing code on Unix to reflect that ↵Pietro Gagliardi
image.Rectangle is point-to-point, not origin/size like on Mac OS X. Windows was already fine; it just uses "left, top, right, and bottom" instead of "x0, y0, x1, and y1".
2014-05-17More clarification on the previous commit.Pietro Gagliardi
2014-05-17Removed TODO about not using bad-for-tracking features of NSEvent in Areas ↵Pietro Gagliardi
on Mac OS X since that's not relevant to our use of tracking areas.
2014-05-16Fixed up a bunch of Mac OS X function names, mostly Listbox-related, to be ↵Pietro Gagliardi
more clear and more consistent.
2014-05-16Implemented the Super and order changes on Mac OS X. Meta is irrelevant here.Pietro Gagliardi
2014-05-16Combined all the Objective-C headers into objc_darwin.h.Pietro Gagliardi
2014-05-15Removed the Area drawing code from bleh_darwin.m and rewrote it in ↵Pietro Gagliardi
Objective-C in area_darwin.m.
2014-05-15Removed all the objc_getClass() and sel_getUid() calls from the Go code on ↵Pietro Gagliardi
Mac OS X. Also got rid of a forgotten objc_msgSend(). Now comes the Objective-C half...
2014-05-15Migrated everything else to Objective-C native; fixed a few things I missed ↵Pietro Gagliardi
along the way.
2014-05-13Removed the class creation at runtime stuff and its residue from the Go ↵Pietro Gagliardi
files. This also cleans up the initialization stuff on the Go side too.
2014-05-13Moved area_darwin.go to direct Objective-C use.Pietro Gagliardi
2014-05-12Handled AreaHandler.Mouse()'s handled return properly on Mac OS X. Also ↵Pietro Gagliardi
fixed some typos in objc_darwin.h.
2014-05-12Fixed Mac OS X Area mouse drags being reported outside the actual Area.Pietro Gagliardi
2014-05-10Added tracking areas to Area on Mac OS X so mouse move events can work; they ↵Pietro Gagliardi
work now.
2014-05-10Preparation for adding tracking areas to Mac OS X Areas: we need to now pass ↵Pietro Gagliardi
in the sysData to each control's make() function so Area can save the tracking area somewhere (this will also come in handy when I change alternate from a bool to an integer index).
2014-05-10Documented the xxxMouseDragged: behavior in the Mac OS X source code.Pietro Gagliardi
2014-05-07Fixed dragging at all in Mac OS X Areas; now we just have to work out all ↵Pietro Gagliardi
the other kinks...
2014-05-06Removed TODO from area_darwin.go about extra mouse button handling; turns ↵Pietro Gagliardi
out it works as expected right out of the gate... for the most part.
2014-04-13Consolidated NSScrollView code on Mac OS X to be all in one place.Pietro Gagliardi
2014-04-10Fixed Area mouse events being sent when something happens outside the Area ↵Pietro Gagliardi
itself.
2014-04-09Fixed Area drawing assuming the first pixel of the *image.NRGBA is at i.Pix[0].Pietro Gagliardi
2014-04-04Changed the way drawRect: was being added to our Mac OS X Area such that we ↵Pietro Gagliardi
no longer need a separate function to add it to the class.
2014-04-04Updated the Area drawRect: adding error message to look like the ones that ↵Pietro Gagliardi
come out of the new class system.
2014-04-04Changed the Area class on Mac OS X to use the new class creation code. This ↵Pietro Gagliardi
gets rid of ALL the class creation code from delegate_darwin.go.
2014-04-04Removed objc_alloc(). This should be all of them. Now to redo how classes ↵Pietro Gagliardi
are handled...
2014-04-04Removed objc_msgSend_rect(). This also consolidates all initWithFrame: calls ↵Pietro Gagliardi
into a simple initWithDummyFrame().
2014-04-03Fixed mouse move events on Mac OS X not returning buttons right, I think: ↵Pietro Gagliardi
turns out I was sending the wrong message in. Now I have to figure out how to filter out mouse move messages; then I can really make sure this works right...
2014-03-30Added key events to Mac OS X Areas. Now Area is feature-complete (but buggy) ↵Pietro Gagliardi
on all platforms :D Also more TODOs.
2014-03-30Implemented Area mouse events on Mac OS X. Also fixed a few other things ↵Pietro Gagliardi
left behind in the previous commits. Also more TODOs.
2014-03-30Fixed flaky redraw in Mac OS X Areas.Pietro Gagliardi
2014-03-30Implement Mac OS X AreaHandler.Paint().Pietro Gagliardi
2014-03-30When we created our delegate and view classes on Mac OS X, it turned out we ↵Pietro Gagliardi
were accidentally subclassing the metaclass (of NSObject and NSView, respectively), not the actual superclass itself. Fixed tha. This also fixed that mysterious objc_new()/[object init] not working on the delegate class problem.
2014-03-30Attempted to add the Area bare bones and resizing code to the Mac OS X ↵Pietro Gagliardi
backend. It complains that initWithFrame: is not implemented...
2014-03-29Added the beginning of the Mac OS X Area implementation. Also fixed the ↵Pietro Gagliardi
long-broken Mac OS X build.