summaryrefslogtreecommitdiff
path: root/area_unix.go
AgeCommit message (Collapse)Author
2014-03-27Added a flag to AreaHandler.Key()/Mouse() to indicate that a repaint is ↵Pietro Gagliardi
needed after that event has been handled. (Having Repaint() as a method deadlocked for the same reason resizing deadlocked before.)
2014-03-27The latest go tip fixes cgo to not be confused by typedefs of incomplete ↵Pietro Gagliardi
types like cairo_t; remove the hack to make GTK+ builds work in the meantime. As a side effect, package ui now requires go tip to build; reflected this in the README.
2014-03-26Printed the hardware_keycode on GTK+ Area key events... something came up so ↵Pietro Gagliardi
I think I might be able to do what I originally wanted to do with keyboards... also more TODOs.
2014-03-26Fixed import formatting on area_unix.go. I'm rereading the GLFW source; it ↵Pietro Gagliardi
makes some interesting assumptions that might allow me to get a better solution to this whole keystroke ordeal after all... if I'm provided with irrefutable evidence.
2014-03-23Fixed the shrinking not working: the Cairo clip rect apparently can fall ↵Pietro Gagliardi
outside the actual size of the widget. (I did notice this before.)
2014-03-23Added Area resizing. Everything mostly works, but not making things smaller...Pietro Gagliardi
2014-03-23Added GDK_KEY_Alt_L/R to the modifier key handling in GTK+ key events.Pietro Gagliardi
2014-03-23Fixed modifier keys in GTK+ not being registered by KeyEvent on first press.Pietro Gagliardi
2014-03-23Added the GTK+ implementation of Area keyboard events. Seems to work fine ↵Pietro Gagliardi
for now...
2014-03-21Finished writing what I need for the GTK+ key equivalency test: display of ↵Pietro Gagliardi
GDK_KEYMAP_A and GDK_KEYMAP_a to see if I can do what I want to do (map back).
2014-03-21Added code to the GTK+ Area to print the GdkKeymapKeys for a given key ↵Pietro Gagliardi
value. For GTK+/X11 it appears that we can just use the keyval field... that just leaves GTK+/Wayland (see previous commit). If the same applies, we'll need to see if I can feed artificial keycodes in and it'll still work as expected...
2014-03-18Added the framework code for handling keyboard events in GTK+ Areas. Oh ↵Pietro Gagliardi
boy... this is gonna hurt (as I will describe shortly).
2014-03-16Changed Area to use a delegate handler object that implements the new ↵Pietro Gagliardi
AreaHandler interface for handling events. Also updated the GTK+ backend with this change, and made a few more tweaks to the documentation in area.go.
2014-03-16Split out includes of <gtk/gtk.h> into a new header file so the GTK+ ↵Pietro Gagliardi
versioning macros can be included in all Go files, not just area_unix.go.
2014-03-16Attempted to fix non-handling of the Alt key by having the GDK window's ↵Pietro Gagliardi
display's keymap used instead; it didn't work.
2014-03-15Added (untested) GTK+ implementation of Area's mouse events.Pietro Gagliardi
2014-03-14Actually committed the rectangle to the Area. Area drawing on GTK+ implemented!Pietro Gagliardi
2014-03-14Provided a way to connect child widget signals in the GTK+ sysData and ↵Pietro Gagliardi
connected Area to draw. I think I'm getting the wrong child widget, though...
2014-03-14Hacked around the cairo issue for now; hooked everything together and fixed ↵Pietro Gagliardi
a few things. Added the Area test to the test program. Now to just hook up the draw event.
2014-03-14Added the GTK+ implementation of Area. It's not enabled yet due to cgo bugs, ↵Pietro Gagliardi
and there's some extra work needed (started here) to tie this in...