forked from AuroraMiddleware/gtk
f28aa1ba02
GdkEvent has been a "I-can't-believe-this-is-not-OOP" type for ages, using a union of sub-types. This has always been problematic when it comes to implementing accessor functions: either you get generic API that takes a GdkEvent and uses a massive switch() to determine which event types have the data you're looking for; or you create namespaced accessors, but break language bindings horribly, as boxed types cannot have derived types. The recent conversion of GskRenderNode (which had similar issues) to GTypeInstance, and the fact that GdkEvent is now a completely opaque type, provide us with the chance of moving GdkEvent to GTypeInstance, and have sub-types for GdkEvent. The change from boxed type to GTypeInstance is pretty small, all things considered, but ends up cascading to a larger commit, as we still have backends and code in GTK trying to access GdkEvent structures directly. Additionally, the naming of the public getter functions requires renaming all the data structures to conform to the namespace/type-name pattern. |
||
---|---|---|
.. | ||
broadway-output.c | ||
broadway-output.h | ||
broadway-protocol.h | ||
broadway-server.c | ||
broadway-server.h | ||
broadway.js | ||
broadwayd.c | ||
client.html | ||
gdkbroadway-server.c | ||
gdkbroadway-server.h | ||
gdkbroadway.h | ||
gdkbroadwaycursor.h | ||
gdkbroadwaydisplay.h | ||
gdkbroadwaydisplaymanager.h | ||
gdkbroadwaymonitor.h | ||
gdkbroadwaysurface.h | ||
gdkcairocontext-broadway.c | ||
gdkcairocontext-broadway.h | ||
gdkcursor-broadway.c | ||
gdkdevice-broadway.c | ||
gdkdevice-broadway.h | ||
gdkdisplay-broadway.c | ||
gdkdisplay-broadway.h | ||
gdkdnd-broadway.c | ||
gdkdrawcontext-broadway.c | ||
gdkdrawcontext-broadway.h | ||
gdkeventsource.c | ||
gdkeventsource.h | ||
gdkglobals-broadway.c | ||
gdkkeys-broadway.c | ||
gdkmonitor-broadway.c | ||
gdkmonitor-broadway.h | ||
gdkprivate-broadway.h | ||
gdksurface-broadway.c | ||
gdksurface-broadway.h | ||
gen-c-array.py | ||
meson.build | ||
TODO.broadway |