1
1
mirror of https://gitlab.gnome.org/GNOME/gimp.git synced 2025-10-06 01:12:40 +02:00

libgimpwidgets: #pragma once, and formatting and ordering

This commit is contained in:
Michael Natterer
2025-07-13 12:23:24 +02:00
parent 0a804cb06a
commit c71661bf24
77 changed files with 458 additions and 586 deletions

View File

@@ -19,20 +19,22 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#if !defined (__GIMP_WIDGETS_H_INSIDE__) && !defined (GIMP_WIDGETS_COMPILATION)
#error "Only <libgimpwidgets/gimpwidgets.h> can be included directly."
#endif
#ifndef __GIMP_BROWSER_H__
#define __GIMP_BROWSER_H__
G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
#define GIMP_TYPE_BROWSER (gimp_browser_get_type ())
G_DECLARE_FINAL_TYPE (GimpBrowser, gimp_browser, GIMP, BROWSER, GtkPaned)
G_DECLARE_FINAL_TYPE (GimpBrowser,
gimp_browser,
GIMP, BROWSER,
GtkPaned)
GtkWidget * gimp_browser_new (void);
@@ -52,7 +54,4 @@ void gimp_browser_set_widget (GimpBrowser *browser,
void gimp_browser_show_message (GimpBrowser *browser,
const gchar *message);
G_END_DECLS
#endif /* __GIMP_BROWSER_H__ */

View File

@@ -19,17 +19,19 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#if !defined (__GIMP_WIDGETS_H_INSIDE__) && !defined (GIMP_WIDGETS_COMPILATION)
#error "Only <libgimpwidgets/gimpwidgets.h> can be included directly."
#endif
#ifndef __GIMP_BUSY_BOX_H__
#define __GIMP_BUSY_BOX_H__
G_BEGIN_DECLS
#define GIMP_TYPE_BUSY_BOX (gimp_busy_box_get_type ())
G_DECLARE_FINAL_TYPE (GimpBusyBox, gimp_busy_box, GIMP, BUSY_BOX, GtkBox)
G_DECLARE_FINAL_TYPE (GimpBusyBox,
gimp_busy_box,
GIMP, BUSY_BOX,
GtkBox)
GtkWidget * gimp_busy_box_new (const gchar *message);
@@ -38,7 +40,4 @@ void gimp_busy_box_set_message (GimpBusyBox *box,
const gchar *message);
const gchar * gimp_busy_box_get_message (GimpBusyBox *box);
G_END_DECLS
#endif /* __GIMP_BUSY_BOX_H__ */

View File

@@ -19,20 +19,23 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#if !defined (__GIMP_WIDGETS_H_INSIDE__) && !defined (GIMP_WIDGETS_COMPILATION)
#error "Only <libgimpwidgets/gimpwidgets.h> can be included directly."
#endif
#ifndef __GIMP_BUTTON_H__
#define __GIMP_BUTTON_H__
G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
#define GIMP_TYPE_BUTTON (gimp_button_get_type ())
G_DECLARE_DERIVABLE_TYPE (GimpButton, gimp_button, GIMP, BUTTON, GtkButton)
G_DECLARE_DERIVABLE_TYPE (GimpButton,
gimp_button,
GIMP, BUTTON,
GtkButton)
struct _GimpButtonClass
{
@@ -60,7 +63,4 @@ GtkWidget * gimp_button_new (void);
void gimp_button_extended_clicked (GimpButton *button,
GdkModifierType modifier_state);
G_END_DECLS
#endif /* __GIMP_BUTTON_H__ */

View File

@@ -19,13 +19,12 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#if !defined (__GIMP_WIDGETS_H_INSIDE__) && !defined (GIMP_WIDGETS_COMPILATION)
#error "Only <libgimpwidgets/gimpwidgets.h> can be included directly."
#endif
#ifndef __GIMP_CAIRO_UTILS_H__
#define __GIMP_CAIRO_UTILS_H__
gboolean gimp_cairo_set_focus_line_pattern (cairo_t *cr,
GtkWidget *widget);
@@ -37,6 +36,3 @@ void gimp_cairo_set_source_color (cairo_t *cr,
GimpColorConfig *config,
gboolean softproof,
GtkWidget *widget);
#endif /* __GIMP_CAIRO_UTILS_H__ */

View File

@@ -2,7 +2,7 @@
* Copyright (C) 1995-1997 Peter Mattis and Spencer Kimball
*
* gimpcellrenderercolor.h
* Copyright (C) 2004 Sven Neuman <sven1@gimp.org>
* Copyright (C) 2004 Sven Neuman <sven@gimp.org>
*
* This library is free software: you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@@ -19,23 +19,21 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#if !defined (__GIMP_WIDGETS_H_INSIDE__) && !defined (GIMP_WIDGETS_COMPILATION)
#error "Only <libgimpwidgets/gimpwidgets.h> can be included directly."
#endif
#ifndef __GIMP_CELL_RENDERER_COLOR_H__
#define __GIMP_CELL_RENDERER_COLOR_H__
G_BEGIN_DECLS
#define GIMP_TYPE_CELL_RENDERER_COLOR (gimp_cell_renderer_color_get_type ())
G_DECLARE_FINAL_TYPE (GimpCellRendererColor, gimp_cell_renderer_color, GIMP, CELL_RENDERER_COLOR, GtkCellRenderer)
G_DECLARE_FINAL_TYPE (GimpCellRendererColor,
gimp_cell_renderer_color,
GIMP, CELL_RENDERER_COLOR,
GtkCellRenderer)
GtkCellRenderer * gimp_cell_renderer_color_new (void);
GtkCellRenderer * gimp_cell_renderer_color_new (void);
G_END_DECLS
#endif /* __GIMP_CELL_RENDERER_COLOR_H__ */

View File

@@ -19,18 +19,19 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#if !defined (__GIMP_WIDGETS_H_INSIDE__) && !defined (GIMP_WIDGETS_COMPILATION)
#error "Only <libgimpwidgets/gimpwidgets.h> can be included directly."
#endif
#ifndef __GIMP_CELL_RENDERER_TOGGLE_H__
#define __GIMP_CELL_RENDERER_TOGGLE_H__
G_BEGIN_DECLS
#define GIMP_TYPE_CELL_RENDERER_TOGGLE (gimp_cell_renderer_toggle_get_type ())
G_DECLARE_FINAL_TYPE (GimpCellRendererToggle, gimp_cell_renderer_toggle, GIMP, CELL_RENDERER_TOGGLE, GtkCellRendererToggle)
G_DECLARE_FINAL_TYPE (GimpCellRendererToggle,
gimp_cell_renderer_toggle,
GIMP, CELL_RENDERER_TOGGLE,
GtkCellRendererToggle)
GtkCellRenderer * gimp_cell_renderer_toggle_new (const gchar *icon_name);
@@ -39,7 +40,4 @@ void gimp_cell_renderer_toggle_clicked (GimpCellRendererToggle *cel
const gchar *path,
GdkModifierType state);
G_END_DECLS
#endif /* __GIMP_CELL_RENDERER_TOGGLE_H__ */

View File

@@ -27,18 +27,19 @@
* provides.
*/
#pragma once
#if !defined (__GIMP_WIDGETS_H_INSIDE__) && !defined (GIMP_WIDGETS_COMPILATION)
#error "Only <libgimpwidgets/gimpwidgets.h> can be included directly."
#endif
#ifndef __GIMP_CHAIN_BUTTON_H__
#define __GIMP_CHAIN_BUTTON_H__
G_BEGIN_DECLS
#define GIMP_TYPE_CHAIN_BUTTON (gimp_chain_button_get_type ())
G_DECLARE_FINAL_TYPE (GimpChainButton, gimp_chain_button, GIMP, CHAIN_BUTTON, GtkGrid)
G_DECLARE_FINAL_TYPE (GimpChainButton,
gimp_chain_button,
GIMP, CHAIN_BUTTON,
GtkGrid)
GtkWidget * gimp_chain_button_new (GimpChainPosition position);
@@ -53,7 +54,4 @@ gboolean gimp_chain_button_get_active (GimpChainButton *button);
GtkWidget * gimp_chain_button_get_button (GimpChainButton *button);
G_END_DECLS
#endif /* __GIMP_CHAIN_BUTTON_H__ */

View File

@@ -24,18 +24,19 @@
* handles drag'n'drop.
*/
#pragma once
#if !defined (__GIMP_WIDGETS_H_INSIDE__) && !defined (GIMP_WIDGETS_COMPILATION)
#error "Only <libgimpwidgets/gimpwidgets.h> can be included directly."
#endif
#ifndef __GIMP_COLOR_AREA_H__
#define __GIMP_COLOR_AREA_H__
G_BEGIN_DECLS
#define GIMP_TYPE_COLOR_AREA (gimp_color_area_get_type ())
G_DECLARE_FINAL_TYPE (GimpColorArea, gimp_color_area, GIMP, COLOR_AREA, GtkDrawingArea)
G_DECLARE_FINAL_TYPE (GimpColorArea,
gimp_color_area,
GIMP, COLOR_AREA,
GtkDrawingArea)
GtkWidget * gimp_color_area_new (GeglColor *color,
@@ -59,7 +60,4 @@ void gimp_color_area_set_out_of_gamut (GimpColorArea *area,
void gimp_color_area_set_color_config (GimpColorArea *area,
GimpColorConfig *config);
G_END_DECLS
#endif /* __GIMP_COLOR_AREA_H__ */

View File

@@ -25,20 +25,22 @@
* fully functional wired to the preview button.
*/
#pragma once
#if !defined (__GIMP_WIDGETS_H_INSIDE__) && !defined (GIMP_WIDGETS_COMPILATION)
#error "Only <libgimpwidgets/gimpwidgets.h> can be included directly."
#endif
#ifndef __GIMP_COLOR_BUTTON_H__
#define __GIMP_COLOR_BUTTON_H__
#include <libgimpwidgets/gimpbutton.h>
G_BEGIN_DECLS
#define GIMP_TYPE_COLOR_BUTTON (gimp_color_button_get_type ())
G_DECLARE_DERIVABLE_TYPE (GimpColorButton, gimp_color_button, GIMP, COLOR_BUTTON, GimpButton)
G_DECLARE_DERIVABLE_TYPE (GimpColorButton,
gimp_color_button,
GIMP, COLOR_BUTTON,
GimpButton)
struct _GimpColorButtonClass
{
@@ -89,9 +91,7 @@ void gimp_color_button_set_update (GimpColorButton *button,
void gimp_color_button_set_color_config (GimpColorButton *button,
GimpColorConfig *config);
GSimpleActionGroup * gimp_color_button_get_action_group (GimpColorButton *button);
GSimpleActionGroup *
gimp_color_button_get_action_group (GimpColorButton *button);
G_END_DECLS
#endif /* __GIMP_COLOR_BUTTON_H__ */

View File

@@ -19,20 +19,22 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#if !defined (__GIMP_WIDGETS_H_INSIDE__) && !defined (GIMP_WIDGETS_COMPILATION)
#error "Only <libgimpwidgets/gimpwidgets.h> can be included directly."
#endif
#ifndef __GIMP_COLOR_DISPLAY_H__
#define __GIMP_COLOR_DISPLAY_H__
G_BEGIN_DECLS
/* For information look at the html documentation */
#define GIMP_TYPE_COLOR_DISPLAY (gimp_color_display_get_type ())
G_DECLARE_DERIVABLE_TYPE (GimpColorDisplay, gimp_color_display, GIMP, COLOR_DISPLAY, GObject)
G_DECLARE_DERIVABLE_TYPE (GimpColorDisplay,
gimp_color_display,
GIMP, COLOR_DISPLAY,
GObject)
struct _GimpColorDisplayClass
@@ -86,7 +88,4 @@ gboolean gimp_color_display_get_enabled (GimpColorDisplay *display
GimpColorConfig * gimp_color_display_get_config (GimpColorDisplay *display);
GimpColorManaged * gimp_color_display_get_managed (GimpColorDisplay *display);
G_END_DECLS
#endif /* __GIMP_COLOR_DISPLAY_H__ */

View File

@@ -19,24 +19,26 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#if !defined (__GIMP_WIDGETS_H_INSIDE__) && !defined (GIMP_WIDGETS_COMPILATION)
#error "Only <libgimpwidgets/gimpwidgets.h> can be included directly."
#endif
#ifndef __GIMP_COLOR_DISPLAY_STACK_H__
#define __GIMP_COLOR_DISPLAY_STACK_H__
G_BEGIN_DECLS
/* For information look at the html documentation */
#define GIMP_TYPE_COLOR_DISPLAY_STACK (gimp_color_display_stack_get_type ())
G_DECLARE_FINAL_TYPE (GimpColorDisplayStack, gimp_color_display_stack, GIMP, COLOR_DISPLAY_STACK, GObject)
G_DECLARE_FINAL_TYPE (GimpColorDisplayStack,
gimp_color_display_stack,
GIMP, COLOR_DISPLAY_STACK,
GObject)
GimpColorDisplayStack * gimp_color_display_stack_new (void);
GimpColorDisplayStack * gimp_color_display_stack_clone (GimpColorDisplayStack *stack);
GimpColorDisplayStack * gimp_color_display_stack_new (void);
GimpColorDisplayStack * gimp_color_display_stack_clone (GimpColorDisplayStack *stack);
void gimp_color_display_stack_changed (GimpColorDisplayStack *stack);
@@ -54,7 +56,4 @@ void gimp_color_display_stack_convert_buffer (GimpColorDisplayStack *stack,
GeglBuffer *buffer,
GeglRectangle *area);
G_END_DECLS
#endif /* __GIMP_COLOR_DISPLAY_STACK_H__ */

View File

@@ -19,18 +19,19 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#if !defined (__GIMP_WIDGETS_H_INSIDE__) && !defined (GIMP_WIDGETS_COMPILATION)
#error "Only <libgimpwidgets/gimpwidgets.h> can be included directly."
#endif
#ifndef __GIMP_COLOR_HEX_ENTRY_H__
#define __GIMP_COLOR_HEX_ENTRY_H__
G_BEGIN_DECLS
#define GIMP_TYPE_COLOR_HEX_ENTRY (gimp_color_hex_entry_get_type ())
G_DECLARE_FINAL_TYPE (GimpColorHexEntry, gimp_color_hex_entry, GIMP, COLOR_HEX_ENTRY, GtkEntry)
G_DECLARE_FINAL_TYPE (GimpColorHexEntry,
gimp_color_hex_entry,
GIMP, COLOR_HEX_ENTRY,
GtkEntry)
GtkWidget * gimp_color_hex_entry_new (void);
@@ -39,7 +40,4 @@ void gimp_color_hex_entry_set_color (GimpColorHexEntry *entry,
GeglColor *color);
GeglColor * gimp_color_hex_entry_get_color (GimpColorHexEntry *entry);
G_END_DECLS
#endif /* __GIMP_COLOR_HEX_ENTRY_H__ */

View File

@@ -22,20 +22,21 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#if !defined (__GIMP_WIDGETS_H_INSIDE__) && !defined (GIMP_WIDGETS_COMPILATION)
#error "Only <libgimpwidgets/gimpwidgets.h> can be included directly."
#endif
#ifndef __GIMP_COLOR_NOTEBOOK_H__
#define __GIMP_COLOR_NOTEBOOK_H__
#include <libgimpwidgets/gimpcolorselector.h>
G_BEGIN_DECLS
#define GIMP_TYPE_COLOR_NOTEBOOK (gimp_color_notebook_get_type ())
G_DECLARE_FINAL_TYPE (GimpColorNotebook, gimp_color_notebook, GIMP, COLOR_NOTEBOOK, GimpColorSelector)
G_DECLARE_FINAL_TYPE (GimpColorNotebook,
gimp_color_notebook,
GIMP, COLOR_NOTEBOOK,
GimpColorSelector)
GtkWidget * gimp_color_notebook_set_has_page (GimpColorNotebook *notebook,
@@ -54,7 +55,4 @@ void gimp_color_notebook_set_simulation (GimpColorNotebook
void gimp_color_notebook_enable_simulation (GimpColorNotebook *notebook,
gboolean enabled);
G_END_DECLS
#endif /* __GIMP_COLOR_NOTEBOOK_H__ */

View File

@@ -19,20 +19,19 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef __GIMP_COLOR_PROFILE_CHOOSER_DIALOG_H__
#define __GIMP_COLOR_PROFILE_CHOOSER_DIALOG_H__
#pragma once
G_BEGIN_DECLS
#define GIMP_TYPE_COLOR_PROFILE_CHOOSER_DIALOG (gimp_color_profile_chooser_dialog_get_type ())
G_DECLARE_FINAL_TYPE (GimpColorProfileChooserDialog, gimp_color_profile_chooser_dialog, GIMP, COLOR_PROFILE_CHOOSER_DIALOG, GtkFileChooserDialog)
G_DECLARE_FINAL_TYPE (GimpColorProfileChooserDialog,
gimp_color_profile_chooser_dialog,
GIMP, COLOR_PROFILE_CHOOSER_DIALOG,
GtkFileChooserDialog)
GtkWidget * gimp_color_profile_chooser_dialog_new (const gchar *title,
GtkWindow *parent,
GtkFileChooserAction action);
GtkWidget * gimp_color_profile_chooser_dialog_new (const gchar *title,
GtkWindow *parent,
GtkFileChooserAction action);
G_END_DECLS
#endif /* __GIMP_COLOR_PROFILE_CHOOSER_DIALOG_H__ */

View File

@@ -19,17 +19,19 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#if !defined (__GIMP_WIDGETS_H_INSIDE__) && !defined (GIMP_WIDGETS_COMPILATION)
#error "Only <libgimpwidgets/gimpwidgets.h> can be included directly."
#endif
#ifndef __GIMP_COLOR_PROFILE_COMBO_BOX_H__
#define __GIMP_COLOR_PROFILE_COMBO_BOX_H__
G_BEGIN_DECLS
#define GIMP_TYPE_COLOR_PROFILE_COMBO_BOX (gimp_color_profile_combo_box_get_type ())
G_DECLARE_FINAL_TYPE (GimpColorProfileComboBox, gimp_color_profile_combo_box, GIMP, COLOR_PROFILE_COMBO_BOX, GtkComboBox)
G_DECLARE_FINAL_TYPE (GimpColorProfileComboBox,
gimp_color_profile_combo_box,
GIMP, COLOR_PROFILE_COMBO_BOX,
GtkComboBox)
GtkWidget * gimp_color_profile_combo_box_new (GtkWidget *dialog,
@@ -49,7 +51,4 @@ void gimp_color_profile_combo_box_set_active_profile (GimpColorProfileCom
GFile * gimp_color_profile_combo_box_get_active_file (GimpColorProfileComboBox *combo);
G_END_DECLS
#endif /* __GIMP_COLOR_PROFILE_COMBO_BOX_H__ */

View File

@@ -19,8 +19,7 @@
* <https://www.gnu.org/licenses/>.
*/
#ifndef __GIMP_COLOR_PROFILE_STORE_PRIVATE_H__
#define __GIMP_COLOR_PROFILE_STORE_PRIVATE_H__
#pragma once
typedef enum
@@ -52,6 +51,3 @@ G_GNUC_INTERNAL gboolean _gimp_color_profile_store_history_find_profile
G_GNUC_INTERNAL void _gimp_color_profile_store_history_reorder (GimpColorProfileStore *store,
GtkTreeIter *iter);
#endif /* __GIMP_COLOR_PROFILE_STORE_PRIVATE_H__ */

View File

@@ -19,18 +19,19 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#if !defined (__GIMP_WIDGETS_H_INSIDE__) && !defined (GIMP_WIDGETS_COMPILATION)
#error "Only <libgimpwidgets/gimpwidgets.h> can be included directly."
#endif
#ifndef __GIMP_COLOR_PROFILE_STORE_H__
#define __GIMP_COLOR_PROFILE_STORE_H__
G_BEGIN_DECLS
#define GIMP_TYPE_COLOR_PROFILE_STORE (gimp_color_profile_store_get_type ())
G_DECLARE_FINAL_TYPE (GimpColorProfileStore, gimp_color_profile_store, GIMP, COLOR_PROFILE_STORE, GtkListStore)
G_DECLARE_FINAL_TYPE (GimpColorProfileStore,
gimp_color_profile_store,
GIMP, COLOR_PROFILE_STORE,
GtkListStore)
GtkListStore * gimp_color_profile_store_new (GFile *history);
@@ -39,7 +40,4 @@ void gimp_color_profile_store_add_file (GimpColorProfileStore *store,
GFile *file,
const gchar *label);
G_END_DECLS
#endif /* __GIMP_COLOR_PROFILE_STORE_H__ */

View File

@@ -18,14 +18,16 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef __GIMP_COLOR_PROFILE_VIEW_H__
#define __GIMP_COLOR_PROFILE_VIEW_H__
#pragma once
G_BEGIN_DECLS
#define GIMP_TYPE_COLOR_PROFILE_VIEW (gimp_color_profile_view_get_type ())
G_DECLARE_FINAL_TYPE (GimpColorProfileView, gimp_color_profile_view, GIMP, COLOR_PROFILE_VIEW, GtkTextView)
G_DECLARE_FINAL_TYPE (GimpColorProfileView,
gimp_color_profile_view,
GIMP, COLOR_PROFILE_VIEW,
GtkTextView)
GtkWidget * gimp_color_profile_view_new (void);
@@ -37,4 +39,3 @@ void gimp_color_profile_view_set_error (GimpColorProfileView *view,
G_END_DECLS
#endif /* __GIMP_COLOR_PROFILE_VIEW_H__ */

View File

@@ -20,18 +20,19 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#if !defined (__GIMP_WIDGETS_H_INSIDE__) && !defined (GIMP_WIDGETS_COMPILATION)
#error "Only <libgimpwidgets/gimpwidgets.h> can be included directly."
#endif
#ifndef __GIMP_COLOR_SCALE_H__
#define __GIMP_COLOR_SCALE_H__
G_BEGIN_DECLS
#define GIMP_TYPE_COLOR_SCALE (gimp_color_scale_get_type ())
G_DECLARE_FINAL_TYPE (GimpColorScale, gimp_color_scale, GIMP, COLOR_SCALE, GtkScale)
G_DECLARE_FINAL_TYPE (GimpColorScale,
gimp_color_scale,
GIMP, COLOR_SCALE,
GtkScale)
GtkWidget * gimp_color_scale_new (GtkOrientation orientation,
@@ -47,7 +48,4 @@ void gimp_color_scale_set_color (GimpColorScale *scale,
void gimp_color_scale_set_color_config (GimpColorScale *scale,
GimpColorConfig *config);
G_END_DECLS
#endif /* __GIMP_COLOR_SCALE_H__ */

View File

@@ -19,27 +19,27 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#if !defined (__GIMP_WIDGETS_H_INSIDE__) && !defined (GIMP_WIDGETS_COMPILATION)
#error "Only <libgimpwidgets/gimpwidgets.h> can be included directly."
#endif
#ifndef __GIMP_COLOR_SCALE_ENTRY_H__
#define __GIMP_COLOR_SCALE_ENTRY_H__
#include <libgimpwidgets/gimpscaleentry.h>
G_BEGIN_DECLS
#define GIMP_TYPE_COLOR_SCALE_ENTRY (gimp_color_scale_entry_get_type ())
G_DECLARE_FINAL_TYPE (GimpColorScaleEntry, gimp_color_scale_entry, GIMP, COLOR_SCALE_ENTRY, GimpScaleEntry)
G_DECLARE_FINAL_TYPE (GimpColorScaleEntry,
gimp_color_scale_entry,
GIMP, COLOR_SCALE_ENTRY,
GimpScaleEntry)
GtkWidget * gimp_color_scale_entry_new (const gchar *text,
gdouble value,
gdouble lower,
gdouble upper,
guint digits);
GtkWidget * gimp_color_scale_entry_new (const gchar *text,
gdouble value,
gdouble lower,
gdouble upper,
guint digits);
G_END_DECLS
#endif /* __GIMP_COLOR_SCALE_ENTRY_H__ */

View File

@@ -22,27 +22,25 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#if !defined (__GIMP_WIDGETS_H_INSIDE__) && !defined (GIMP_WIDGETS_COMPILATION)
#error "Only <libgimpwidgets/gimpwidgets.h> can be included directly."
#endif
#ifndef __GIMP_COLOR_SCALES_H__
#define __GIMP_COLOR_SCALES_H__
#include <libgimpwidgets/gimpcolorselector.h>
G_BEGIN_DECLS
#define GIMP_TYPE_COLOR_SCALES (gimp_color_scales_get_type ())
G_DECLARE_FINAL_TYPE (GimpColorScales, gimp_color_scales, GIMP, COLOR_SCALES, GimpColorSelector)
G_DECLARE_FINAL_TYPE (GimpColorScales,
gimp_color_scales,
GIMP, COLOR_SCALES,
GimpColorSelector)
void gimp_color_scales_set_show_rgb_u8 (GimpColorScales *scales,
gboolean show_rgb_u8);
gboolean gimp_color_scales_get_show_rgb_u8 (GimpColorScales *scales);
G_END_DECLS
#endif /* __GIMP_COLOR_SCALES_H__ */

View File

@@ -22,16 +22,14 @@
* <https://www.gnu.org/licenses/>.
*/
#ifndef __GIMP_COLOR_SELECT_H__
#define __GIMP_COLOR_SELECT_H__
#pragma once
G_BEGIN_DECLS
#define GIMP_TYPE_COLOR_SELECT (gimp_color_select_get_type ())
G_DECLARE_FINAL_TYPE (GimpColorSelect, gimp_color_select, GIMP, COLOR_SELECT, GimpColorSelector)
G_DECLARE_FINAL_TYPE (GimpColorSelect,
gimp_color_select,
GIMP, COLOR_SELECT,
GimpColorSelector)
G_END_DECLS
#endif /* __GIMP_COLOR_SELECT_H__ */

View File

@@ -19,20 +19,22 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#if !defined (__GIMP_WIDGETS_H_INSIDE__) && !defined (GIMP_WIDGETS_COMPILATION)
#error "Only <libgimpwidgets/gimpwidgets.h> can be included directly."
#endif
#ifndef __GIMP_COLOR_SELECTION_H__
#define __GIMP_COLOR_SELECTION_H__
G_BEGIN_DECLS
/* For information look at the html documentation */
#define GIMP_TYPE_COLOR_SELECTION (gimp_color_selection_get_type ())
G_DECLARE_FINAL_TYPE (GimpColorSelection, gimp_color_selection, GIMP, COLOR_SELECTION, GtkBox)
G_DECLARE_FINAL_TYPE (GimpColorSelection,
gimp_color_selection,
GIMP, COLOR_SELECTION,
GtkBox)
GtkWidget * gimp_color_selection_new (void);
@@ -66,7 +68,4 @@ void gimp_color_selection_set_config (GimpColorSelection *selection,
GtkWidget * gimp_color_selection_get_notebook (GimpColorSelection *selection);
GtkWidget * gimp_color_selection_get_right_vbox (GimpColorSelection *selection);
G_END_DECLS
#endif /* __GIMP_COLOR_SELECTION_H__ */

View File

@@ -23,13 +23,12 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#if !defined (__GIMP_WIDGETS_H_INSIDE__) && !defined (GIMP_WIDGETS_COMPILATION)
#error "Only <libgimpwidgets/gimpwidgets.h> can be included directly."
#endif
#ifndef __GIMP_COLOR_SELECTOR_H__
#define __GIMP_COLOR_SELECTOR_H__
G_BEGIN_DECLS
/* For information look at the html documentation */
@@ -53,7 +52,11 @@ G_BEGIN_DECLS
#define GIMP_TYPE_COLOR_SELECTOR (gimp_color_selector_get_type ())
G_DECLARE_DERIVABLE_TYPE (GimpColorSelector, gimp_color_selector, GIMP, COLOR_SELECTOR, GtkBox)
G_DECLARE_DERIVABLE_TYPE (GimpColorSelector,
gimp_color_selector,
GIMP, COLOR_SELECTOR,
GtkBox)
struct _GimpColorSelectorClass
{
@@ -159,7 +162,4 @@ gboolean gimp_color_selector_get_simulation (GimpColorSelector
gboolean gimp_color_selector_enable_simulation (GimpColorSelector *selector,
gboolean enabled);
G_END_DECLS
#endif /* __GIMP_COLOR_SELECTOR_H__ */

View File

@@ -19,13 +19,12 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#ifndef GIMP_ENABLE_CONTROLLER_UNDER_CONSTRUCTION
#error GimpController is unstable API under construction
#endif
#ifndef __GIMP_CONTROLLER_H__
#define __GIMP_CONTROLLER_H__
G_BEGIN_DECLS
/* For information look at the html documentation */
@@ -117,7 +116,11 @@ union _GimpControllerEvent
#define GIMP_TYPE_CONTROLLER (gimp_controller_get_type ())
G_DECLARE_DERIVABLE_TYPE (GimpController, gimp_controller, GIMP, CONTROLLER, GObject)
G_DECLARE_DERIVABLE_TYPE (GimpController,
gimp_controller,
GIMP, CONTROLLER,
GObject)
struct _GimpControllerClass
{
@@ -167,7 +170,4 @@ const gchar * gimp_controller_get_event_blurb (GimpController *controller,
gboolean gimp_controller_event (GimpController *controller,
const GimpControllerEvent *event);
G_END_DECLS
#endif /* __GIMP_CONTROLLER_H__ */

View File

@@ -19,20 +19,23 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#if !defined (__GIMP_WIDGETS_H_INSIDE__) && !defined (GIMP_WIDGETS_COMPILATION)
#error "Only <libgimpwidgets/gimpwidgets.h> can be included directly."
#endif
#ifndef __GIMP_DIALOG_H__
#define __GIMP_DIALOG_H__
G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
#define GIMP_TYPE_DIALOG (gimp_dialog_get_type ())
G_DECLARE_DERIVABLE_TYPE (GimpDialog, gimp_dialog, GIMP, DIALOG, GtkDialog)
G_DECLARE_DERIVABLE_TYPE (GimpDialog,
gimp_dialog,
GIMP, DIALOG,
GtkDialog)
struct _GimpDialogClass
{
@@ -88,6 +91,7 @@ GBytes * gimp_dialog_get_native_handle (GimpDialog *dialog);
/* for internal use only! */
void gimp_dialogs_show_help_button (gboolean show);
/* gimp_dialog_set_alternative_button_order() doesn't need a dedicated
* wrapper function because anyway it won't be introspectable.
* GObject-Introspection bindings will have to use
@@ -98,7 +102,4 @@ void gimp_dialogs_show_help_button (gboolean show);
gtk_dialog_set_alternative_button_order(d,f); \
G_GNUC_END_IGNORE_DEPRECATIONS;
G_END_DECLS
#endif /* __GIMP_DIALOG_H__ */

View File

@@ -20,12 +20,10 @@
* <https://www.gnu.org/licenses/>.
*/
#ifndef __GIMP_EEVL_H__
#define __GIMP_EEVL_H__
#pragma once
G_BEGIN_DECLS
/**
* GimpEevlQuantity:
* @value: In reference units.
@@ -93,7 +91,4 @@ gboolean gimp_eevl_evaluate (const gchar *string,
const gchar **error_pos,
GError **error);
G_END_DECLS
#endif /* __GIMP_EEVL_H__ */

View File

@@ -19,19 +19,22 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#if !defined (__GIMP_WIDGETS_H_INSIDE__) && !defined (GIMP_WIDGETS_COMPILATION)
#error "Only <libgimpwidgets/gimpwidgets.h> can be included directly."
#endif
#ifndef __GIMP_ENUM_COMBO_BOX_H__
#define __GIMP_ENUM_COMBO_BOX_H__
#include <libgimpwidgets/gimpintcombobox.h>
G_BEGIN_DECLS
#define GIMP_TYPE_ENUM_COMBO_BOX (gimp_enum_combo_box_get_type ())
G_DECLARE_DERIVABLE_TYPE (GimpEnumComboBox, gimp_enum_combo_box, GIMP, ENUM_COMBO_BOX, GimpIntComboBox)
G_DECLARE_DERIVABLE_TYPE (GimpEnumComboBox,
gimp_enum_combo_box,
GIMP, ENUM_COMBO_BOX,
GimpIntComboBox)
struct _GimpEnumComboBoxClass
{
@@ -58,5 +61,3 @@ void gimp_enum_combo_box_set_icon_prefix (GimpEnumComboBox *combo_box,
const gchar *icon_prefix);
G_END_DECLS
#endif /* __GIMP_ENUM_COMBO_BOX_H__ */

View File

@@ -19,26 +19,24 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#if !defined (__GIMP_WIDGETS_H_INSIDE__) && !defined (GIMP_WIDGETS_COMPILATION)
#error "Only <libgimpwidgets/gimpwidgets.h> can be included directly."
#endif
#ifndef __GIMP_ENUM__LABEL_H__
#define __GIMP_ENUM__LABEL_H__
G_BEGIN_DECLS
#define GIMP_TYPE_ENUM_LABEL (gimp_enum_label_get_type ())
G_DECLARE_FINAL_TYPE (GimpEnumLabel, gimp_enum_label, GIMP, ENUM_LABEL, GtkScale)
G_DECLARE_FINAL_TYPE (GimpEnumLabel,
gimp_enum_label,
GIMP, ENUM_LABEL,
GtkScale)
GtkWidget * gimp_enum_label_new (GType enum_type,
gint value);
void gimp_enum_label_set_value (GimpEnumLabel *label,
gint value);
GtkWidget * gimp_enum_label_new (GType enum_type,
gint value);
void gimp_enum_label_set_value (GimpEnumLabel *label,
gint value);
G_END_DECLS
#endif /* __GIMP_ENUM_LABEL_H__ */

View File

@@ -19,20 +19,21 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#if !defined (__GIMP_WIDGETS_H_INSIDE__) && !defined (GIMP_WIDGETS_COMPILATION)
#error "Only <libgimpwidgets/gimpwidgets.h> can be included directly."
#endif
#ifndef __GIMP_ENUM_STORE_H__
#define __GIMP_ENUM_STORE_H__
#include <libgimpwidgets/gimpintstore.h>
G_BEGIN_DECLS
#define GIMP_TYPE_ENUM_STORE (gimp_enum_store_get_type ())
G_DECLARE_FINAL_TYPE (GimpEnumStore, gimp_enum_store, GIMP, ENUM_STORE, GimpIntStore)
G_DECLARE_FINAL_TYPE (GimpEnumStore,
gimp_enum_store,
GIMP, ENUM_STORE,
GimpIntStore)
GtkListStore * gimp_enum_store_new (GType enum_type);
@@ -49,7 +50,4 @@ GtkListStore * gimp_enum_store_new_with_values_valist (GType enum_type,
void gimp_enum_store_set_icon_prefix (GimpEnumStore *store,
const gchar *icon_prefix);
G_END_DECLS
#endif /* __GIMP_ENUM_STORE_H__ */

View File

@@ -19,16 +19,14 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#if !defined (__GIMP_WIDGETS_H_INSIDE__) && !defined (GIMP_WIDGETS_COMPILATION)
#error "Only <libgimpwidgets/gimpwidgets.h> can be included directly."
#endif
#ifndef __GIMP_ENUM_WIDGETS_H__
#define __GIMP_ENUM_WIDGETS_H__
G_BEGIN_DECLS
GtkWidget * gimp_enum_radio_box_new (GType enum_type,
GCallback callback,
gpointer callback_data,
@@ -80,5 +78,3 @@ void gimp_enum_icon_box_set_icon_size (GtkWidget *icon_box,
GtkIconSize icon_size);
G_END_DECLS
#endif /* __GIMP_ENUM_WIDGETS_H__ */

View File

@@ -19,17 +19,19 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#if !defined (__GIMP_WIDGETS_H_INSIDE__) && !defined (GIMP_WIDGETS_COMPILATION)
#error "Only <libgimpwidgets/gimpwidgets.h> can be included directly."
#endif
#ifndef __GIMP_FILE_CHOOSER_H__
#define __GIMP_FILE_CHOOSER_H__
G_BEGIN_DECLS
#define GIMP_TYPE_FILE_CHOOSER (gimp_file_chooser_get_type ())
G_DECLARE_FINAL_TYPE (GimpFileChooser, gimp_file_chooser, GIMP, FILE_CHOOSER, GtkBox)
G_DECLARE_FINAL_TYPE (GimpFileChooser,
gimp_file_chooser,
GIMP, FILE_CHOOSER,
GtkBox)
GtkWidget * gimp_file_chooser_new (GimpFileChooserAction action,
@@ -55,7 +57,4 @@ void gimp_file_chooser_set_title (GimpFileChooser
GtkWidget * gimp_file_chooser_get_label_widget (GimpFileChooser *chooser);
G_END_DECLS
#endif /* __GIMP_FILE_CHOOSER_H__ */

View File

@@ -19,15 +19,14 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#ifndef GIMP_DISABLE_DEPRECATED
#if !defined (__GIMP_WIDGETS_H_INSIDE__) && !defined (GIMP_WIDGETS_COMPILATION)
#error "Only <libgimpwidgets/gimpwidgets.h> can be included directly."
#endif
#ifndef __GIMP_FILE_ENTRY_H__
#define __GIMP_FILE_ENTRY_H__
G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
@@ -44,7 +43,10 @@ G_BEGIN_DECLS
*/
#define GIMP_TYPE_FILE_ENTRY (_gimp_file_entry_get_type ())
G_DECLARE_FINAL_TYPE (GimpFileEntry, _gimp_file_entry, GIMP, FILE_ENTRY, GtkBox)
G_DECLARE_FINAL_TYPE (GimpFileEntry,
_gimp_file_entry,
GIMP, FILE_ENTRY,
GtkBox)
G_GNUC_INTERNAL GtkWidget * _gimp_file_entry_new (const gchar *title,
@@ -58,9 +60,6 @@ G_GNUC_INTERNAL void _gimp_file_entry_set_filename (GimpFileEntry *entry,
G_GNUC_INTERNAL GtkWidget * _gimp_file_entry_get_entry (GimpFileEntry *entry);
G_END_DECLS
#endif /* __GIMP_FILE_ENTRY_H__ */
#endif /* GIMP_DISABLE_DEPRECATED */

View File

@@ -19,20 +19,23 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#if !defined (__GIMP_WIDGETS_H_INSIDE__) && !defined (GIMP_WIDGETS_COMPILATION)
#error "Only <libgimpwidgets/gimpwidgets.h> can be included directly."
#endif
#ifndef __GIMP_FRAME_H__
#define __GIMP_FRAME_H__
G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
#define GIMP_TYPE_FRAME (gimp_frame_get_type ())
G_DECLARE_DERIVABLE_TYPE (GimpFrame, gimp_frame, GIMP, FRAME, GtkFrame)
G_DECLARE_DERIVABLE_TYPE (GimpFrame,
gimp_frame,
GIMP, FRAME,
GtkFrame)
struct _GimpFrameClass
{
@@ -52,9 +55,6 @@ struct _GimpFrameClass
};
GtkWidget * gimp_frame_new (const gchar *label);
GtkWidget * gimp_frame_new (const gchar *label);
G_END_DECLS
#endif /* __GIMP_FRAME_H__ */

View File

@@ -19,13 +19,12 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#if !defined (__GIMP_WIDGETS_H_INSIDE__) && !defined (GIMP_WIDGETS_COMPILATION)
#error "Only <libgimpwidgets/gimpwidgets.h> can be included directly."
#endif
#ifndef __GIMP_HELP_UI_H__
#define __GIMP_HELP_UI_H__
G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
@@ -69,7 +68,4 @@ void gimp_context_help (GtkWidget *widget);
GQuark gimp_help_id_quark (void) G_GNUC_CONST;
G_END_DECLS
#endif /* __GIMP_HELP_UI_H__ */

View File

@@ -19,25 +19,24 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#if !defined (__GIMP_WIDGETS_H_INSIDE__) && !defined (GIMP_WIDGETS_COMPILATION)
#error "Only <libgimpwidgets/gimpwidgets.h> can be included directly."
#endif
#ifndef __GIMP_HINT_BOX_H__
#define __GIMP_HINT_BOX_H__
G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
#define GIMP_TYPE_HINT_BOX (gimp_hint_box_get_type ())
G_DECLARE_FINAL_TYPE (GimpHintBox, gimp_hint_box, GIMP, HINT_BOX, GtkBox)
G_DECLARE_FINAL_TYPE (GimpHintBox,
gimp_hint_box,
GIMP, HINT_BOX,
GtkBox)
GtkWidget * gimp_hint_box_new (const gchar *hint);
GtkWidget * gimp_hint_box_new (const gchar *hint);
G_END_DECLS
#endif /* __GIMP_HINT_BOX_H__ */

View File

@@ -19,13 +19,12 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#if !defined (__GIMP_WIDGETS_H_INSIDE__) && !defined (GIMP_WIDGETS_COMPILATION)
#error "Only <libgimpwidgets/gimpwidgets.h> can be included directly."
#endif
#ifndef __GIMP_ICONS_H__
#define __GIMP_ICONS_H__
G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
@@ -434,7 +433,4 @@ void gimp_icons_init (void);
gboolean gimp_icons_set_icon_theme (GFile *path);
G_END_DECLS
#endif /* __GIMP_ICONS_H__ */

View File

@@ -19,18 +19,19 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#if !defined (__GIMP_WIDGETS_H_INSIDE__) && !defined (GIMP_WIDGETS_COMPILATION)
#error "Only <libgimpwidgets/gimpwidgets.h> can be included directly."
#endif
#ifndef __GIMP_INT_COMBO_BOX_H__
#define __GIMP_INT_COMBO_BOX_H__
G_BEGIN_DECLS
#define GIMP_TYPE_INT_COMBO_BOX (gimp_int_combo_box_get_type ())
G_DECLARE_DERIVABLE_TYPE (GimpIntComboBox, gimp_int_combo_box, GIMP, INT_COMBO_BOX, GtkComboBox)
G_DECLARE_DERIVABLE_TYPE (GimpIntComboBox,
gimp_int_combo_box,
GIMP, INT_COMBO_BOX,
GtkComboBox)
struct _GimpIntComboBoxClass
@@ -107,7 +108,4 @@ void gimp_int_combo_box_set_sensitivity (GimpIntComboBox *combo_
gpointer data,
GDestroyNotify destroy);
G_END_DECLS
#endif /* __GIMP_INT_COMBO_BOX_H__ */

View File

@@ -19,20 +19,21 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#if !defined (__GIMP_WIDGETS_H_INSIDE__) && !defined (GIMP_WIDGETS_COMPILATION)
#error "Only <libgimpwidgets/gimpwidgets.h> can be included directly."
#endif
#include <libgimpwidgets/gimpframe.h>
#ifndef __GIMP_INT_RADIO_FRAME_H__
#define __GIMP_INT_RADIO_FRAME_H__
G_BEGIN_DECLS
#define GIMP_TYPE_INT_RADIO_FRAME (gimp_int_radio_frame_get_type ())
G_DECLARE_FINAL_TYPE (GimpIntRadioFrame, gimp_int_radio_frame, GIMP, INT_RADIO_FRAME, GimpFrame)
G_DECLARE_FINAL_TYPE (GimpIntRadioFrame,
gimp_int_radio_frame,
GIMP, INT_RADIO_FRAME,
GimpFrame)
/**
@@ -60,7 +61,6 @@ typedef gboolean (* GimpIntRadioFrameSensitivityFunc) (gint value,
gpointer data);
GtkWidget * gimp_int_radio_frame_new_from_store (const gchar *title,
GimpIntStore *store);
GtkWidget * gimp_int_radio_frame_new (const gchar *first_label,
@@ -97,7 +97,4 @@ void gimp_int_radio_frame_set_sensitivity (GimpIntRadioFrame *radio_fra
gpointer data,
GDestroyNotify destroy);
G_END_DECLS
#endif /* __GIMP_INT_RADIO_FRAME_H__ */

View File

@@ -19,16 +19,14 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#if !defined (__GIMP_WIDGETS_H_INSIDE__) && !defined (GIMP_WIDGETS_COMPILATION)
#error "Only <libgimpwidgets/gimpwidgets.h> can be included directly."
#endif
#ifndef __GIMP_INT_STORE_H__
#define __GIMP_INT_STORE_H__
G_BEGIN_DECLS
/**
* GimpIntStoreColumns:
* @GIMP_INT_STORE_VALUE: the integer value
@@ -54,7 +52,11 @@ typedef enum
#define GIMP_TYPE_INT_STORE (gimp_int_store_get_type ())
G_DECLARE_DERIVABLE_TYPE (GimpIntStore, gimp_int_store, GIMP, INT_STORE, GtkListStore)
G_DECLARE_DERIVABLE_TYPE (GimpIntStore,
gimp_int_store,
GIMP, INT_STORE,
GtkListStore)
struct _GimpIntStoreClass
{
@@ -90,7 +92,4 @@ gboolean gimp_int_store_lookup_by_user_data (GtkTreeModel *model,
gpointer user_data,
GtkTreeIter *iter);
G_END_DECLS
#endif /* __GIMP_INT_STORE_H__ */

View File

@@ -19,40 +19,40 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#if !defined (__GIMP_WIDGETS_H_INSIDE__) && !defined (GIMP_WIDGETS_COMPILATION)
#error "Only <libgimpwidgets/gimpwidgets.h> can be included directly."
#endif
#ifndef __GIMP_LABEL_COLOR_H__
#define __GIMP_LABEL_COLOR_H__
#include <libgimpwidgets/gimplabeled.h>
G_BEGIN_DECLS
#define GIMP_TYPE_LABEL_COLOR (gimp_label_color_get_type ())
G_DECLARE_FINAL_TYPE (GimpLabelColor, gimp_label_color, GIMP, LABEL_COLOR, GimpLabeled)
G_DECLARE_FINAL_TYPE (GimpLabelColor,
gimp_label_color,
GIMP, LABEL_COLOR,
GimpLabeled)
GtkWidget * gimp_label_color_new (const gchar *label,
GeglColor *color,
gboolean editable);
GtkWidget * gimp_label_color_new (const gchar *label,
GeglColor *color,
gboolean editable);
/* TODO: it would be interesting for such a widget to have an API to
* customize the label being also above or below, left or right. I could
* imagine wanting to pretty-list several colors with specific layouts.
*/
void gimp_label_color_set_value (GimpLabelColor *color,
GeglColor *value);
GeglColor * gimp_label_color_get_value (GimpLabelColor *color);
void gimp_label_color_set_value (GimpLabelColor *color,
GeglColor *value);
GeglColor * gimp_label_color_get_value (GimpLabelColor *color);
void gimp_label_color_set_editable (GimpLabelColor *color,
gboolean editable);
gboolean gimp_label_color_is_editable (GimpLabelColor *color);
void gimp_label_color_set_editable (GimpLabelColor *color,
gboolean editable);
gboolean gimp_label_color_is_editable (GimpLabelColor *color);
GtkWidget * gimp_label_color_get_color_widget (GimpLabelColor *color);
GtkWidget * gimp_label_color_get_color_widget (GimpLabelColor *color);
G_END_DECLS
#endif /* __GIMP_LABEL_COLOR_H__ */

View File

@@ -19,23 +19,26 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#if !defined (__GIMP_WIDGETS_H_INSIDE__) && !defined (GIMP_WIDGETS_COMPILATION)
#error "Only <libgimpwidgets/gimpwidgets.h> can be included directly."
#endif
#ifndef __GIMP_LABELED_H__
#define __GIMP_LABELED_H__
G_BEGIN_DECLS
#define GIMP_TYPE_LABELED (gimp_labeled_get_type ())
G_DECLARE_DERIVABLE_TYPE (GimpLabeled, gimp_labeled, GIMP, LABELED, GtkGrid)
G_DECLARE_DERIVABLE_TYPE (GimpLabeled,
gimp_labeled,
GIMP, LABELED,
GtkGrid)
struct _GimpLabeledClass
{
GtkGridClass parent_class;
GtkGridClass parent_class;
/* Signals */
/* Signals */
void (* mnemonic_widget_changed) (GimpLabeled *labeled,
GtkWidget *widget);
@@ -55,11 +58,11 @@ struct _GimpLabeledClass
* Returns: (transfer none): the #GtkWidget which the label must be
* set as mnemonic to.
**/
GtkWidget * (* populate) (GimpLabeled *labeled,
gint *x,
gint *y,
gint *width,
gint *height);
GtkWidget * (* populate) (GimpLabeled *labeled,
gint *x,
gint *y,
gint *width,
gint *height);
/* Padding for future expansion */
@@ -75,13 +78,11 @@ struct _GimpLabeledClass
void (* _gimp_reserved9) (void);
};
GtkWidget * gimp_labeled_get_label (GimpLabeled *labeled);
const gchar * gimp_labeled_get_text (GimpLabeled *labeled);
void gimp_labeled_set_text (GimpLabeled *labeled,
const gchar *text);
GtkWidget * gimp_labeled_get_label (GimpLabeled *labeled);
const gchar * gimp_labeled_get_text (GimpLabeled *labeled);
void gimp_labeled_set_text (GimpLabeled *labeled,
const gchar *text);
G_END_DECLS
#endif /* __GIMP_LABELED_H__ */

View File

@@ -19,19 +19,21 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#if !defined (__GIMP_WIDGETS_H_INSIDE__) && !defined (GIMP_WIDGETS_COMPILATION)
#error "Only <libgimpwidgets/gimpwidgets.h> can be included directly."
#endif
#ifndef __GIMP_LABEL_ENTRY_H__
#define __GIMP_LABEL_ENTRY_H__
#include <libgimpwidgets/gimplabeled.h>
G_BEGIN_DECLS
#define GIMP_TYPE_LABEL_ENTRY (gimp_label_entry_get_type ())
G_DECLARE_FINAL_TYPE (GimpLabelEntry, gimp_label_entry, GIMP, LABEL_ENTRY, GimpLabeled)
G_DECLARE_FINAL_TYPE (GimpLabelEntry,
gimp_label_entry,
GIMP, LABEL_ENTRY,
GimpLabeled)
GtkWidget * gimp_label_entry_new (const gchar *label);
@@ -43,5 +45,3 @@ const gchar * gimp_label_entry_get_value (GimpLabelEntry *entry);
GtkWidget * gimp_label_entry_get_entry (GimpLabelEntry *entry);
G_END_DECLS
#endif /* __GIMP_LABEL_ENTRY_H__ */

View File

@@ -19,27 +19,26 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#if !defined (__GIMP_WIDGETS_H_INSIDE__) && !defined (GIMP_WIDGETS_COMPILATION)
#error "Only <libgimpwidgets/gimpwidgets.h> can be included directly."
#endif
#ifndef __GIMP_LABEL_INT_WIDGET_H__
#define __GIMP_LABEL_INT_WIDGET_H__
#include <libgimpwidgets/gimplabeled.h>
G_BEGIN_DECLS
#define GIMP_TYPE_LABEL_INT_WIDGET (gimp_label_int_widget_get_type ())
G_DECLARE_FINAL_TYPE (GimpLabelIntWidget, gimp_label_int_widget, GIMP, LABEL_INT_WIDGET, GimpLabeled)
G_DECLARE_FINAL_TYPE (GimpLabelIntWidget,
gimp_label_int_widget,
GIMP, LABEL_INT_WIDGET,
GimpLabeled)
GtkWidget * gimp_label_int_widget_new (const gchar *text,
GtkWidget *widget);
GtkWidget * gimp_label_int_widget_get_widget (GimpLabelIntWidget *widget);
GtkWidget * gimp_label_int_widget_new (const gchar *text,
GtkWidget *widget);
GtkWidget * gimp_label_int_widget_get_widget (GimpLabelIntWidget *widget);
G_END_DECLS
#endif /* __GIMP_LABEL_INT_WIDGET_H__ */

View File

@@ -19,26 +19,29 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#if !defined (__GIMP_WIDGETS_H_INSIDE__) && !defined (GIMP_WIDGETS_COMPILATION)
#error "Only <libgimpwidgets/gimpwidgets.h> can be included directly."
#endif
#ifndef __GIMP_LABEL_SPIN_H__
#define __GIMP_LABEL_SPIN_H__
#include <libgimpwidgets/gimplabeled.h>
G_BEGIN_DECLS
#define GIMP_TYPE_LABEL_SPIN (gimp_label_spin_get_type ())
G_DECLARE_DERIVABLE_TYPE (GimpLabelSpin, gimp_label_spin, GIMP, LABEL_SPIN, GimpLabeled)
G_DECLARE_DERIVABLE_TYPE (GimpLabelSpin,
gimp_label_spin,
GIMP, LABEL_SPIN,
GimpLabeled)
struct _GimpLabelSpinClass
{
GimpLabeledClass parent_class;
GimpLabeledClass parent_class;
/* Signals */
void (* value_changed) (GimpLabelSpin *spin);
void (* value_changed) (GimpLabelSpin *spin);
/* Padding for future expansion */
void (* _gimp_reserved0) (void);
@@ -53,6 +56,7 @@ struct _GimpLabelSpinClass
void (* _gimp_reserved9) (void);
};
GtkWidget * gimp_label_spin_new (const gchar *text,
gdouble value,
gdouble lower,
@@ -72,5 +76,3 @@ void gimp_label_spin_set_digits (GimpLabelSpin *spin,
GtkWidget * gimp_label_spin_get_spin_button (GimpLabelSpin *spin);
G_END_DECLS
#endif /* __GIMP_LABEL_SPIN_H__ */

View File

@@ -19,27 +19,26 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#if !defined (__GIMP_WIDGETS_H_INSIDE__) && !defined (GIMP_WIDGETS_COMPILATION)
#error "Only <libgimpwidgets/gimpwidgets.h> can be included directly."
#endif
#ifndef __GIMP_LABEL_STRING_WIDGET_H__
#define __GIMP_LABEL_STRING_WIDGET_H__
#include <libgimpwidgets/gimplabeled.h>
G_BEGIN_DECLS
#define GIMP_TYPE_LABEL_STRING_WIDGET (gimp_label_string_widget_get_type ())
G_DECLARE_FINAL_TYPE (GimpLabelStringWidget, gimp_label_string_widget, GIMP, LABEL_STRING_WIDGET, GimpLabeled)
G_DECLARE_FINAL_TYPE (GimpLabelStringWidget,
gimp_label_string_widget,
GIMP, LABEL_STRING_WIDGET,
GimpLabeled)
GtkWidget * gimp_label_string_widget_new (const gchar *text,
GtkWidget *widget);
GtkWidget * gimp_label_string_widget_get_widget (GimpLabelStringWidget *widget);
GtkWidget * gimp_label_string_widget_new (const gchar *text,
GtkWidget *widget);
GtkWidget * gimp_label_string_widget_get_widget (GimpLabelStringWidget *widget);
G_END_DECLS
#endif /* __GIMP_LABEL_STRING_WIDGET_H__ */

View File

@@ -19,18 +19,19 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#if !defined (__GIMP_WIDGETS_H_INSIDE__) && !defined (GIMP_WIDGETS_COMPILATION)
#error "Only <libgimpwidgets/gimpwidgets.h> can be included directly."
#endif
#ifndef __GIMP_MEMSIZE_ENTRY_H__
#define __GIMP_MEMSIZE_ENTRY_H__
G_BEGIN_DECLS
#define GIMP_TYPE_MEMSIZE_ENTRY (gimp_memsize_entry_get_type ())
G_DECLARE_FINAL_TYPE (GimpMemsizeEntry, gimp_memsize_entry, GIMP, MEMSIZE_ENTRY, GtkBox)
G_DECLARE_FINAL_TYPE (GimpMemsizeEntry,
gimp_memsize_entry,
GIMP, MEMSIZE_ENTRY,
GtkBox)
GtkWidget * gimp_memsize_entry_new (guint64 value,
@@ -42,7 +43,4 @@ guint64 gimp_memsize_entry_get_value (GimpMemsizeEntry *entry);
GtkWidget * gimp_memsize_entry_get_spinbutton (GimpMemsizeEntry *entry);
G_END_DECLS
#endif /* __GIMP_MEMSIZE_ENTRY_H__ */

View File

@@ -21,18 +21,19 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#if !defined (__GIMP_WIDGETS_H_INSIDE__) && !defined (GIMP_WIDGETS_COMPILATION)
#error "Only <libgimpwidgets/gimpwidgets.h> can be included directly."
#endif
#ifndef __GIMP_NUMBER_PAIR_ENTRY_H__
#define __GIMP_NUMBER_PAIR_ENTRY_H__
G_BEGIN_DECLS
#define GIMP_TYPE_NUMBER_PAIR_ENTRY (gimp_number_pair_entry_get_type ())
G_DECLARE_FINAL_TYPE (GimpNumberPairEntry, gimp_number_pair_entry, GIMP, NUMBER_PAIR_ENTRY, GtkEntry)
G_DECLARE_FINAL_TYPE (GimpNumberPairEntry,
gimp_number_pair_entry,
GIMP, NUMBER_PAIR_ENTRY,
GtkEntry)
GtkWidget * gimp_number_pair_entry_new (const gchar *separators,
@@ -68,7 +69,4 @@ void gimp_number_pair_entry_set_user_override (GimpNumberPairEntry *e
gboolean user_override);
gboolean gimp_number_pair_entry_get_user_override (GimpNumberPairEntry *entry);
G_END_DECLS
#endif /* __GIMP_NUMBER_PAIR_ENTRY_H__ */

View File

@@ -19,20 +19,21 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#if !defined (__GIMP_WIDGETS_H_INSIDE__) && !defined (GIMP_WIDGETS_COMPILATION)
#error "Only <libgimpwidgets/gimpwidgets.h> can be included directly."
#endif
#ifndef __GIMP_OFFSET_AREA_H__
#define __GIMP_OFFSET_AREA_H__
G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
#define GIMP_TYPE_OFFSET_AREA (gimp_offset_area_get_type ())
G_DECLARE_FINAL_TYPE (GimpOffsetArea, gimp_offset_area, GIMP, OFFSET_AREA, GtkDrawingArea)
G_DECLARE_FINAL_TYPE (GimpOffsetArea,
gimp_offset_area,
GIMP, OFFSET_AREA,
GtkDrawingArea)
GtkWidget * gimp_offset_area_new (gint orig_width,
@@ -47,7 +48,4 @@ void gimp_offset_area_set_offsets (GimpOffsetArea *offset_area,
gint offset_x,
gint offset_y);
G_END_DECLS
#endif /* __GIMP_OFFSET_AREA_H__ */

View File

@@ -19,17 +19,19 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#if !defined (__GIMP_WIDGETS_H_INSIDE__) && !defined (GIMP_WIDGETS_COMPILATION)
#error "Only <libgimpwidgets/gimpwidgets.h> can be included directly."
#endif
#ifndef __GIMP_PAGE_SELECTOR_H__
#define __GIMP_PAGE_SELECTOR_H__
G_BEGIN_DECLS
#define GIMP_TYPE_PAGE_SELECTOR (gimp_page_selector_get_type ())
G_DECLARE_FINAL_TYPE (GimpPageSelector, gimp_page_selector, GIMP, PAGE_SELECTOR, GtkBox)
G_DECLARE_FINAL_TYPE (GimpPageSelector,
gimp_page_selector,
GIMP, PAGE_SELECTOR,
GtkBox)
GtkWidget * gimp_page_selector_new (void);
@@ -71,5 +73,3 @@ void gimp_page_selector_select_range (GimpPageSelector *selector,
gchar * gimp_page_selector_get_selected_range (GimpPageSelector *selector);
G_END_DECLS
#endif /* __GIMP_PAGE_SELECTOR_H__ */

View File

@@ -19,24 +19,24 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#if !defined (__GIMP_WIDGETS_H_INSIDE__) && !defined (GIMP_WIDGETS_COMPILATION)
#error "Only <libgimpwidgets/gimpwidgets.h> can be included directly."
#endif
#ifndef __GIMP_PATH_EDITOR_H__
#define __GIMP_PATH_EDITOR_H__
G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
#define GIMP_TYPE_PATH_EDITOR (gimp_path_editor_get_type ())
G_DECLARE_FINAL_TYPE (GimpPathEditor, gimp_path_editor, GIMP, PATH_EDITOR, GtkBox)
G_DECLARE_FINAL_TYPE (GimpPathEditor,
gimp_path_editor,
GIMP, PATH_EDITOR,
GtkBox)
/* For information look into the C source or the html documentation */
GtkWidget * gimp_path_editor_new (const gchar *title,
const gchar *path);
@@ -55,5 +55,3 @@ void gimp_path_editor_set_dir_writable (GimpPathEditor *editor,
gboolean writable);
G_END_DECLS
#endif /* __GIMP_PATH_EDITOR_H__ */

View File

@@ -15,11 +15,9 @@
*/
/* Private header file which is not meant to be exported. */
#ifndef __GIMP_PICK_BUTTON_KWIN_H__
#define __GIMP_PICK_BUTTON_KWIN_H__
gboolean _gimp_pick_button_kwin_available (void);
void _gimp_pick_button_kwin_pick (GimpPickButton *button);
#pragma once
#endif /* __GIMP_PICK_BUTTON_KWIN_H__ */
G_GNUC_INTERNAL gboolean _gimp_pick_button_kwin_available (void);
G_GNUC_INTERNAL void _gimp_pick_button_kwin_pick (GimpPickButton *button);

View File

@@ -13,8 +13,7 @@
* <https://www.gnu.org/licenses/>.
*/
#ifndef __GIMP_PICK_BUTTON_PRIVATE_H__
#define __GIMP_PICK_BUTTON_PRIVATE_H__
#pragma once
typedef struct _GimpPickButtonPrivate
@@ -23,5 +22,3 @@ typedef struct _GimpPickButtonPrivate
GtkWidget *grab_widget;
} GimpPickButtonPrivate;
#endif /* ! __GIMP_PICK_BUTTON_PRIVATE_H__ */

View File

@@ -15,11 +15,10 @@
*/
/* Private header file which is not meant to be exported. */
#ifndef __GIMP_PICK_BUTTON_QUARTZ_H__
#define __GIMP_PICK_BUTTON_QUARTZ_H__
void _gimp_pick_button_quartz_pick (GimpPickButton *button);
#endif /* __GIMP_PICK_BUTTON_QUARTZ_H__ */
#pragma once
G_GNUC_INTERNAL void _gimp_pick_button_quartz_pick (GimpPickButton *button);

View File

@@ -15,9 +15,8 @@
*/
/* Private header file which is not meant to be exported. */
#ifndef __GIMP_PICK_BUTTON_WIN32_H__
#define __GIMP_PICK_BUTTON_WIN32_H__
#pragma once
G_GNUC_INTERNAL void _gimp_pick_button_win32_pick (GimpPickButton *button);
#endif /* __GIMP_PICK_BUTTON_WIN32_H__ */

View File

@@ -15,11 +15,10 @@
*/
/* Private header file which is not meant to be exported. */
#ifndef __GIMP_PICK_BUTTON_XDG_H__
#define __GIMP_PICK_BUTTON_XDG_H__
gboolean _gimp_pick_button_xdg_available (void);
void _gimp_pick_button_xdg_pick (GimpPickButton *button);
#pragma once
#endif /* __GIMP_PICK_BUTTON_XDG_H__ */
G_GNUC_INTERNAL gboolean _gimp_pick_button_xdg_available (void);
G_GNUC_INTERNAL void _gimp_pick_button_xdg_pick (GimpPickButton *button);

View File

@@ -16,18 +16,20 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#if !defined (__GIMP_WIDGETS_H_INSIDE__) && !defined (GIMP_WIDGETS_COMPILATION)
#error "Only <libgimpwidgets/gimpwidgets.h> can be included directly."
#endif
#ifndef __GIMP_PICK_BUTTON_H__
#define __GIMP_PICK_BUTTON_H__
G_BEGIN_DECLS
#define GIMP_TYPE_PICK_BUTTON (gimp_pick_button_get_type ())
G_DECLARE_DERIVABLE_TYPE (GimpPickButton, gimp_pick_button, GIMP, PICK_BUTTON, GtkButton)
G_DECLARE_DERIVABLE_TYPE (GimpPickButton,
gimp_pick_button,
GIMP, PICK_BUTTON,
GtkButton)
struct _GimpPickButtonClass
{
@@ -50,12 +52,10 @@ struct _GimpPickButtonClass
};
GtkWidget * gimp_pick_button_new (void);
GtkWidget * gimp_pick_button_new (void);
/* for internal use only */
G_GNUC_INTERNAL void _gimp_pick_button_default_pick (GimpPickButton *button);
G_END_DECLS
#endif /* __GIMP_PICK_BUTTON_H__ */

View File

@@ -18,21 +18,23 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#if !defined (__GIMP_WIDGETS_H_INSIDE__) && !defined (GIMP_WIDGETS_COMPILATION)
#error "Only <libgimpwidgets/gimpwidgets.h> can be included directly."
#endif
#ifndef __GIMP_PREVIEW_H__
#define __GIMP_PREVIEW_H__
G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
#define GIMP_TYPE_PREVIEW (gimp_preview_get_type ())
G_DECLARE_DERIVABLE_TYPE (GimpPreview, gimp_preview, GIMP, PREVIEW, GtkBox)
G_DECLARE_DERIVABLE_TYPE (GimpPreview,
gimp_preview,
GIMP, PREVIEW,
GtkBox)
struct _GimpPreviewClass
{
@@ -138,7 +140,4 @@ GdkCursor * gimp_preview_get_default_cursor (GimpPreview *preview);
GtkWidget * gimp_preview_get_controls (GimpPreview *preview);
G_END_DECLS
#endif /* __GIMP_PREVIEW_H__ */

View File

@@ -16,18 +16,19 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#if !defined (__GIMP_WIDGETS_H_INSIDE__) && !defined (GIMP_WIDGETS_COMPILATION)
#error "Only <libgimpwidgets/gimpwidgets.h> can be included directly."
#endif
#ifndef __GIMP_PREVIEW_AREA_H__
#define __GIMP_PREVIEW_AREA_H__
G_BEGIN_DECLS
#define GIMP_TYPE_PREVIEW_AREA (gimp_preview_area_get_type ())
G_DECLARE_FINAL_TYPE (GimpPreviewArea, gimp_preview_area, GIMP, PREVIEW_AREA, GtkDrawingArea)
G_DECLARE_FINAL_TYPE (GimpPreviewArea,
gimp_preview_area,
GIMP, PREVIEW_AREA,
GtkDrawingArea)
GtkWidget * gimp_preview_area_new (void);
@@ -94,7 +95,4 @@ void gimp_preview_area_set_max_size (GimpPreviewArea *area,
void gimp_preview_area_menu_popup (GimpPreviewArea *area,
GdkEventButton *event);
G_END_DECLS
#endif /* __GIMP_PREVIEW_AREA_H__ */

View File

@@ -19,16 +19,14 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#if !defined (__GIMP_WIDGETS_H_INSIDE__) && !defined (GIMP_WIDGETS_COMPILATION)
#error "Only <libgimpwidgets/gimpwidgets.h> can be included directly."
#endif
#ifndef __GIMPWIDGETS_PROP_WIDGETS_H__
#define __GIMPWIDGETS_PROP_WIDGETS_H__
G_BEGIN_DECLS
/* GParamBoolean */
GtkWidget * gimp_prop_check_button_new (GObject *config,
@@ -261,7 +259,5 @@ GtkWidget * gimp_prop_icon_image_new (GObject *config,
const gchar *property_name,
GtkIconSize icon_size);
G_END_DECLS
#endif /* __GIMPWIDGETS_PROP_WIDGETS_H__ */

View File

@@ -19,13 +19,12 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#if !defined (__GIMP_WIDGETS_H_INSIDE__) && !defined (GIMP_WIDGETS_COMPILATION)
#error "Only <libgimpwidgets/gimpwidgets.h> can be included directly."
#endif
#ifndef __GIMP_QUERY_BOX_H__
#define __GIMP_QUERY_BOX_H__
G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
@@ -179,7 +178,4 @@ GtkWidget * gimp_query_boolean_box (const gchar *title,
gpointer data,
GDestroyNotify data_destroy);
G_END_DECLS
#endif /* __GIMP_QUERY_BOX_H__ */

View File

@@ -16,17 +16,19 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#if !defined (__GIMP_WIDGETS_H_INSIDE__) && !defined (GIMP_WIDGETS_COMPILATION)
#error "Only <libgimpwidgets/gimpwidgets.h> can be included directly."
#endif
#ifndef __GIMP_RULER_H__
#define __GIMP_RULER_H__
G_BEGIN_DECLS
#define GIMP_TYPE_RULER (gimp_ruler_get_type ())
G_DECLARE_FINAL_TYPE (GimpRuler, gimp_ruler, GIMP, RULER, GtkWidget)
G_DECLARE_FINAL_TYPE (GimpRuler,
gimp_ruler,
GIMP, RULER,
GtkWidget)
GtkWidget * gimp_ruler_new (GtkOrientation orientation);
@@ -52,5 +54,3 @@ void gimp_ruler_get_range (GimpRuler *ruler,
gdouble *max_size);
G_END_DECLS
#endif /* __GIMP_RULER_H__ */

View File

@@ -21,26 +21,29 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#if !defined (__GIMP_WIDGETS_H_INSIDE__) && !defined (GIMP_WIDGETS_COMPILATION)
#error "Only <libgimpwidgets/gimpwidgets.h> can be included directly."
#endif
#include <libgimpwidgets/gimplabelspin.h>
#ifndef __GIMP_SCALE_ENTRY_H__
#define __GIMP_SCALE_ENTRY_H__
G_BEGIN_DECLS
#define GIMP_TYPE_SCALE_ENTRY (gimp_scale_entry_get_type ())
G_DECLARE_DERIVABLE_TYPE (GimpScaleEntry, gimp_scale_entry, GIMP, SCALE_ENTRY, GimpLabelSpin)
G_DECLARE_DERIVABLE_TYPE (GimpScaleEntry,
gimp_scale_entry,
GIMP, SCALE_ENTRY,
GimpLabelSpin)
struct _GimpScaleEntryClass
{
GimpLabelSpinClass parent_class;
/* Class methods */
GtkWidget * (* new_range_widget) (GtkAdjustment *adjustment);
GtkWidget * (* new_range_widget) (GtkAdjustment *adjustment);
/* Padding for future expansion */
void (* _gimp_reserved0) (void);
@@ -55,24 +58,22 @@ struct _GimpScaleEntryClass
void (* _gimp_reserved9) (void);
};
GtkWidget * gimp_scale_entry_new (const gchar *text,
gdouble value,
gdouble lower,
gdouble upper,
guint digits);
GtkWidget * gimp_scale_entry_get_range (GimpScaleEntry *entry);
GtkWidget * gimp_scale_entry_new (const gchar *text,
gdouble value,
gdouble lower,
gdouble upper,
guint digits);
void gimp_scale_entry_set_bounds (GimpScaleEntry *entry,
gdouble lower,
gdouble upper,
gboolean limit_scale);
GtkWidget * gimp_scale_entry_get_range (GimpScaleEntry *entry);
void gimp_scale_entry_set_logarithmic (GimpScaleEntry *entry,
gboolean logarithmic);
gboolean gimp_scale_entry_get_logarithmic (GimpScaleEntry *entry);
void gimp_scale_entry_set_bounds (GimpScaleEntry *entry,
gdouble lower,
gdouble upper,
gboolean limit_scale);
void gimp_scale_entry_set_logarithmic (GimpScaleEntry *entry,
gboolean logarithmic);
gboolean gimp_scale_entry_get_logarithmic (GimpScaleEntry *entry);
G_END_DECLS
#endif /* __GIMP_SCALE_ENTRY_H__ */

View File

@@ -18,18 +18,16 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#if !defined (__GIMP_WIDGETS_H_INSIDE__) && !defined (GIMP_WIDGETS_COMPILATION)
#error "Only <libgimpwidgets/gimpwidgets.h> can be included directly."
#endif
#ifndef __GIMP_SCROLLED_PREVIEW_H__
#define __GIMP_SCROLLED_PREVIEW_H__
#include "gimppreview.h"
G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
@@ -76,7 +74,4 @@ void gimp_scroll_adjustment_values (GdkEventScroll *sevent,
gdouble *hvalue,
gdouble *vvalue);
G_END_DECLS
#endif /* __GIMP_SCROLLED_PREVIEW_H__ */

View File

@@ -20,13 +20,12 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#if !defined (__GIMP_WIDGETS_H_INSIDE__) && !defined (GIMP_WIDGETS_COMPILATION)
#error "Only <libgimpwidgets/gimpwidgets.h> can be included directly."
#endif
#ifndef __GIMP_SIZE_ENTRY_H__
#define __GIMP_SIZE_ENTRY_H__
G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
@@ -112,7 +111,5 @@ void gimp_size_entry_set_activates_default (GimpSizeEntry *gse,
GtkWidget * gimp_size_entry_get_help_widget (GimpSizeEntry *gse,
gint field);
G_END_DECLS
#endif /* __GIMP_SIZE_ENTRY_H__ */

View File

@@ -19,20 +19,22 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#if !defined (__GIMP_WIDGETS_H_INSIDE__) && !defined (GIMP_WIDGETS_COMPILATION)
#error "Only <libgimpwidgets/gimpwidgets.h> can be included directly."
#endif
#ifndef __GIMP_SPIN_BUTTON_H__
#define __GIMP_SPIN_BUTTON_H__
G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
#define GIMP_TYPE_SPIN_BUTTON (gimp_spin_button_get_type ())
G_DECLARE_DERIVABLE_TYPE (GimpSpinButton, gimp_spin_button, GIMP, SPIN_BUTTON, GtkSpinButton)
G_DECLARE_DERIVABLE_TYPE (GimpSpinButton,
gimp_spin_button,
GIMP, SPIN_BUTTON,
GtkSpinButton)
struct _GimpSpinButtonClass
@@ -60,7 +62,4 @@ GtkWidget * gimp_spin_button_new_with_range (gdouble min,
gdouble max,
gdouble step);
G_END_DECLS
#endif /* __GIMP_SPIN_BUTTON_H__ */

View File

@@ -18,20 +18,22 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#pragma once
#if !defined (__GIMP_WIDGETS_H_INSIDE__) && !defined (GIMP_WIDGETS_COMPILATION)
#error "Only <libgimpwidgets/gimpwidgets.h> can be included directly."
#endif
#ifndef __GIMP_SPIN_SCALE_H__
#define __GIMP_SPIN_SCALE_H__
#include <libgimpwidgets/gimpspinbutton.h>
G_BEGIN_DECLS
#define GIMP_TYPE_SPIN_SCALE (gimp_spin_scale_get_type ())
G_DECLARE_FINAL_TYPE (GimpSpinScale, gimp_spin_scale, GIMP, SPIN_SCALE, GimpSpinButton)
G_DECLARE_FINAL_TYPE (GimpSpinScale,
gimp_spin_scale,
GIMP, SPIN_SCALE,
GimpSpinButton)
GtkWidget * gimp_spin_scale_new (GtkAdjustment *adjustment,
@@ -61,5 +63,3 @@ gboolean gimp_spin_scale_get_constrain_drag (GimpSpinScale *scale);
const guint gimp_spin_scale_get_mnemonic_keyval (GimpSpinScale *scale);
G_END_DECLS
#endif /* __GIMP_SPIN_SCALE_H__ */

View File

@@ -19,27 +19,29 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#if !defined (__GIMP_WIDGETS_H_INSIDE__) && !defined (GIMP_WIDGETS_COMPILATION)
#error "Only <libgimpwidgets/gimpwidgets.h> can be included directly."
#endif
#ifndef __GIMP_STRING_COMBO_BOX_H__
#define __GIMP_STRING_COMBO_BOX_H__
G_BEGIN_DECLS
/**
* GimpStringSensitivityFunc:
* @id: the string value from the column @id_column as passed to [ctor@StringComboBox.new].
* @data: (closure): the data passed in [method@StringComboBox.set_sensitivity].
*/
typedef gboolean (* GimpStringSensitivityFunc) (const gchar *id,
gpointer data);
typedef gboolean (* GimpStringSensitivityFunc) (const gchar *id,
gpointer data);
#define GIMP_TYPE_STRING_COMBO_BOX (gimp_string_combo_box_get_type ())
G_DECLARE_DERIVABLE_TYPE (GimpStringComboBox, gimp_string_combo_box, GIMP, STRING_COMBO_BOX, GtkComboBox)
G_DECLARE_DERIVABLE_TYPE (GimpStringComboBox,
gimp_string_combo_box,
GIMP, STRING_COMBO_BOX,
GtkComboBox)
struct _GimpStringComboBoxClass
{
@@ -72,5 +74,3 @@ void gimp_string_combo_box_set_sensitivity (GimpStringComboBox *co
GDestroyNotify destroy);
G_END_DECLS
#endif /* __GIMP_STRING_COMBO_BOX_H__ */

View File

@@ -19,18 +19,19 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#if !defined (__GIMP_WIDGETS_H_INSIDE__) && !defined (GIMP_WIDGETS_COMPILATION)
#error "Only <libgimpwidgets/gimpwidgets.h> can be included directly."
#endif
#ifndef __GIMP_UNIT_COMBO_BOX_H__
#define __GIMP_UNIT_COMBO_BOX_H__
G_BEGIN_DECLS
#define GIMP_TYPE_UNIT_COMBO_BOX (gimp_unit_combo_box_get_type ())
G_DECLARE_FINAL_TYPE (GimpUnitComboBox, gimp_unit_combo_box, GIMP, UNIT_COMBO_BOX, GtkComboBox)
G_DECLARE_FINAL_TYPE (GimpUnitComboBox,
gimp_unit_combo_box,
GIMP, UNIT_COMBO_BOX,
GtkComboBox)
GtkWidget * gimp_unit_combo_box_new (void);
@@ -40,7 +41,4 @@ GimpUnit * gimp_unit_combo_box_get_active (GimpUnitComboBox *combo);
void gimp_unit_combo_box_set_active (GimpUnitComboBox *combo,
GimpUnit *unit);
G_END_DECLS
#endif /* __GIMP_UNIT_COMBO_BOX_H__ */

View File

@@ -19,16 +19,14 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#if !defined (__GIMP_WIDGETS_H_INSIDE__) && !defined (GIMP_WIDGETS_COMPILATION)
#error "Only <libgimpwidgets/gimpwidgets.h> can be included directly."
#endif
#ifndef __GIMP_UNIT_STORE_H__
#define __GIMP_UNIT_STORE_H__
G_BEGIN_DECLS
enum
{
GIMP_UNIT_STORE_UNIT,
@@ -45,7 +43,11 @@ enum
#define GIMP_TYPE_UNIT_STORE (gimp_unit_store_get_type ())
G_DECLARE_DERIVABLE_TYPE (GimpUnitStore, gimp_unit_store, GIMP, UNIT_STORE, GObject)
G_DECLARE_DERIVABLE_TYPE (GimpUnitStore,
gimp_unit_store,
GIMP, UNIT_STORE,
GObject)
struct _GimpUnitStoreClass
{
@@ -97,7 +99,4 @@ void gimp_unit_store_get_values (GimpUnitStore *store,
void _gimp_unit_store_sync_units (GimpUnitStore *store);
G_END_DECLS
#endif /* __GIMP_UNIT_STORE_H__ */

View File

@@ -19,16 +19,14 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#if !defined (__GIMP_WIDGETS_H_INSIDE__) && !defined (GIMP_WIDGETS_COMPILATION)
#error "Only <libgimpwidgets/gimpwidgets.h> can be included directly."
#endif
#ifndef __GIMP_WIDGETS_ERROR_H__
#define __GIMP_WIDGETS_ERROR_H__
G_BEGIN_DECLS
/**
* GimpWidgetsError:
* @GIMP_WIDGETS_PARSE_ERROR: A parse error has occurred
@@ -52,7 +50,4 @@ typedef enum
GQuark gimp_widgets_error_quark (void) G_GNUC_CONST;
G_END_DECLS
#endif /* __GIMP_WIDGETS_ERROR_H__ */

View File

@@ -19,9 +19,9 @@
* <https://www.gnu.org/licenses/>.
*/
#ifndef __GIMP_WIDGETS_PRIVATE_H__
#define __GIMP_WIDGETS_PRIVATE_H__
#pragma once
G_BEGIN_DECLS
typedef GeglColor * (* GimpGetColorFunc) (void);
typedef void (* GimpEnsureModulesFunc) (void);
@@ -33,9 +33,6 @@ extern GimpGetColorFunc _gimp_get_background_func;
extern GimpEnsureModulesFunc _gimp_ensure_modules_func;
G_BEGIN_DECLS
void gimp_widgets_init (GimpHelpFunc standard_help_func,
GimpGetColorFunc get_foreground_func,
GimpGetColorFunc get_background_func,
@@ -48,7 +45,4 @@ void gimp_widget_set_bound_property (GtkWidget *widget,
GObject *config,
const gchar *property_name);
G_END_DECLS
#endif /* __GIMP_WIDGETS_PRIVATE_H__ */

View File

@@ -19,8 +19,7 @@
* <https://www.gnu.org/licenses/>.
*/
#ifndef __GIMP_WIDGETS_H__
#define __GIMP_WIDGETS_H__
#pragma once
#define __GIMP_WIDGETS_H_INSIDE__
@@ -209,7 +208,4 @@ void gimp_float_adjustment_update (GtkAdjustment *adjustment,
void gimp_double_adjustment_update (GtkAdjustment *adjustment,
gpointer data);
G_END_DECLS
#endif /* __GIMP_WIDGETS_H__ */

View File

@@ -16,9 +16,7 @@
* <https://www.gnu.org/licenses/>.
*/
#ifndef __GIMP_WIDGETS_ENUMS_H__
#define __GIMP_WIDGETS_ENUMS_H__
#pragma once
G_BEGIN_DECLS
@@ -237,7 +235,4 @@ typedef enum
GIMP_ZOOM_PINCH, /*< skip >*/
} GimpZoomType;
G_END_DECLS
#endif /* __GIMP_WIDGETS_ENUMS_H__ */

View File

@@ -18,8 +18,7 @@
* <https://www.gnu.org/licenses/>.
*/
#ifndef __GIMP_WIDGETS_TYPES_H__
#define __GIMP_WIDGETS_TYPES_H__
#pragma once
#include <libgimpconfig/gimpconfigtypes.h>
@@ -110,7 +109,4 @@ typedef struct _GimpZoomModel GimpZoomModel;
typedef void (* GimpHelpFunc) (const gchar *help_id,
gpointer help_data);
G_END_DECLS
#endif /* __GIMP_WIDGETS_TYPES_H__ */

View File

@@ -18,13 +18,12 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#if !defined (__GIMP_WIDGETS_H_INSIDE__) && !defined (GIMP_WIDGETS_COMPILATION)
#error "Only <libgimpwidgets/gimpwidgets.h> can be included directly."
#endif
#ifndef __GIMP_WIDGETS_UTILS_H__
#define __GIMP_WIDGETS_UTILS_H__
G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
@@ -81,7 +80,4 @@ G_GNUC_INTERNAL void _gimp_widget_get_profiles (GtkWidget *widget,
GimpColorProfile **proof_profile,
GimpColorProfile **dest_profile);
G_END_DECLS
#endif /* __GIMP_WIDGETS_UTILS_H__ */

View File

@@ -19,18 +19,19 @@
* <https://www.gnu.org/licenses/>.
*/
#pragma once
#if !defined (__GIMP_WIDGETS_H_INSIDE__) && !defined (GIMP_WIDGETS_COMPILATION)
#error "Only <libgimpwidgets/gimpwidgets.h> can be included directly."
#endif
#ifndef __GIMP_ZOOM_MODEL_H__
#define __GIMP_ZOOM_MODEL_H__
G_BEGIN_DECLS
#define GIMP_TYPE_ZOOM_MODEL (gimp_zoom_model_get_type ())
G_DECLARE_FINAL_TYPE (GimpZoomModel, gimp_zoom_model, GIMP, ZOOM_MODEL, GObject)
G_DECLARE_FINAL_TYPE (GimpZoomModel,
gimp_zoom_model,
GIMP, ZOOM_MODEL,
GObject)
GimpZoomModel * gimp_zoom_model_new (void);
@@ -54,5 +55,3 @@ gdouble gimp_zoom_model_zoom_step (GimpZoomType zoom_type,
gdouble delta);
G_END_DECLS
#endif /* __GIMP_ZOOM_MODEL_H__ */