| 1 | /* |
| 2 | * Copyright © 2025 Red Hat, Inc |
| 3 | * |
| 4 | * This library is free software; you can redistribute it and/or |
| 5 | * modify it under the terms of the GNU Lesser General Public |
| 6 | * License as published by the Free Software Foundation; either |
| 7 | * version 2.1 of the License, or (at your option) any later version. |
| 8 | * |
| 9 | * This library is distributed in the hope that it will be useful, |
| 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 12 | * Lesser General Public License for more details. |
| 13 | * |
| 14 | * You should have received a copy of the GNU Lesser General Public |
| 15 | * License along with this library. If not, see <http://www.gnu.org/licenses/>. |
| 16 | * |
| 17 | * SPDX-License-Identifier: LGPL-2.1-or-later |
| 18 | * |
| 19 | * Authors: Matthias Clasen <[email protected]> |
| 20 | */ |
| 21 | |
| 22 | #pragma once |
| 23 | |
| 24 | #include <gtk/gtk.h>cxx . . $ `<file>/gtk/gtk.h`/ |
| 25 | |
| 26 | |
| 27 | #define COLOR_EDITOR_TYPEcxx . . $ `demos/icon-editor/color-editor.h:27:9`! (color_editor_get_type ()) |
| 28 | G_DECLARE_FINAL_TYPEcxx . . $ `<external>/9567554376676449156/gtype.h:1608:9`! (ColorEditor, color_editor, COLOR, EDITOR, GtkWidget) |
| 29 | |
| 30 | |
| 31 | ColorEditorcxx . . $ ColorEditor# * color_editor_newcxx . . $ color_editor_new(6d954c37e85cceef). (void); |
| 32 | |
| 33 | void color_editor_set_color_typecxx . . $ color_editor_set_color_type(8ba77d75b393685a). (ColorEditorcxx . . $ ColorEditor# *self, |
| 34 | unsigned int color_type); |
| 35 | unsigned int color_editor_get_color_typecxx . . $ color_editor_get_color_type(693c556a03ef8e23). (ColorEditorcxx . . $ ColorEditor# *self); |
| 36 | |
| 37 | void color_editor_set_colorcxx . . $ color_editor_set_color(eb6ffb3f21aa7815). (ColorEditorcxx . . $ ColorEditor# *self, |
| 38 | const GdkRGBAcxx . . $ GdkRGBA# *color); |
| 39 | const GdkRGBAcxx . . $ GdkRGBA# *color_editor_get_colorcxx . . $ color_editor_get_color(a93462a5084be9b8). (ColorEditorcxx . . $ ColorEditor# *self); |
| 40 | |
| 41 | void color_editor_set_alphacxx . . $ color_editor_set_alpha(c360379a3c0c71f3). (ColorEditorcxx . . $ ColorEditor# *self, |
| 42 | float alpha); |
| 43 | float color_editor_get_alphacxx . . $ color_editor_get_alpha(1beb84a4b41b4fd2). (ColorEditorcxx . . $ ColorEditor# *self); |