mirror of
https://github.com/LibreSplit/LibreSplit.git
synced 2026-04-28 06:40:23 +00:00
This should allow for plugins to refer to LibreSplit's functions without having to pull in half of the codebase.
27 lines
840 B
C
27 lines
840 B
C
#pragma once
|
|
|
|
#include <gdk/gdk.h>
|
|
|
|
/**
|
|
* @brief Keybind A GTK Key bind
|
|
*/
|
|
typedef struct
|
|
{
|
|
guint key; /*!< The key value */
|
|
GdkModifierType mods; /*!< The modifiers used (shift, ctrl, ...) */
|
|
} Keybind;
|
|
|
|
/**
|
|
* @brief The keybinds associated with LibreSplit's window
|
|
*/
|
|
typedef struct {
|
|
Keybind start_split; /*!< The "start or split" global keybind */
|
|
Keybind stop_reset; /*!< The "stop or reset timer" global keybind */
|
|
Keybind cancel; /*!< The "cancel" global keybind */
|
|
Keybind unsplit; /*!< The "undo split" global keybind */
|
|
Keybind skip_split; /*!< The "skip split" global keybind */
|
|
Keybind toggle_decorations; /*!< The "toggle decorations" global keybind */
|
|
Keybind toggle_win_on_top; /*!< The "always-on-top" global keybind */
|
|
} LSKeybinds;
|
|
|
|
Keybind parse_keybind(const gchar* accelerator);
|