GDK_KEY_* do not have equivalents in the C++ API
Submitted by Mark Vender
Link to original bug (#669994)
Description
The GDK_KEY_*
macro constants currently are accessible only through the <gdk/gdkkeysyms.h>
. This is a bit confusing, since ideally one shouldn't need to use the C API, or at least shouldn't need to include a header from the C API. Also, the gtkmm
/gdkmm
documentation doesn't show that these macros are available.
I see the following ways to solve this problem:
-
Do nothing (if this way to do things is intended)
-
Add
<gdkmm/keysyms.h>
(or similar name) which includes<gdk/gdkkeysyms.h>
-
Add
<gdkmm/keysyms.h>
(or similar name) which includes<gdk/gdkkeysyms.h>
and adds anenum
in theGdk
namespace with all the values. Something like
namespace Gdk {
enum KeyVal { //Or similar name
KEY_BackSpace = ...
...
};
}
I'd vote for the third solution, since it's consistent with the current way to generate enums
thoughout gdkmm
/gtkmm
.
Thanks,
Mark