
This object's goal will be to manage customized modifiers per input device button, which is why I add it to GimpDisplayConfig. It is in its own new config file (`modifiersrc` in config dir) because it requires GDK types access (well I could have done without, but it would have been less semantic, hence not as good of an API). Anyway it is only useful when running GIMP as GUI. The GUI widget and the usage code to make this actually useful will come in upcoming commits.
37 lines
1.2 KiB
C
37 lines
1.2 KiB
C
/* GIMP - The GNU Image Manipulation Program
|
|
* Copyright (C) 1995 Spencer Kimball and Peter Mattis
|
|
*
|
|
* modifiers.h
|
|
* Copyright (C) 2022 Jehan
|
|
*
|
|
* This program is free software: you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 3 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
#ifndef __MODIFIERS_H__
|
|
#define __MODIFIERS_H__
|
|
|
|
|
|
void modifiers_init (Gimp *gimp);
|
|
void modifiers_exit (Gimp *gimp);
|
|
|
|
void modifiers_restore (Gimp *gimp);
|
|
void modifiers_save (Gimp *gimp,
|
|
gboolean always_save);
|
|
|
|
gboolean modifiers_clear (Gimp *gimp,
|
|
GError **error);
|
|
|
|
|
|
#endif /* __MODIFIERS_H__ */
|