/usr/include/gwyddion/libgwydgets/gwycolorbutton.h is in libgwyddion20-dev 2.47-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 | /*
* @(#) $Id: gwycolorbutton.h 19136 2016-10-30 14:55:50Z yeti-dn $
*
* GTK - The GIMP Toolkit
* Copyright (C) 1998, 1999 Red Hat, Inc.
* All rights reserved.
*
* This Library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version.
*
* This Library 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
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with the Gnome Library; see the file COPYING.LIB. If not,
* write to the Free Software Foundation, Inc., 51 Franklin Street,
* Fifth Floor, Boston, MA 02110-1301, USA.
*/
/* Color picker button for GNOME
*
* Author: Federico Mena <federico@nuclecu.unam.mx>
*
* Modified by the GTK+ Team and others 2003. See the AUTHORS
* file for a list of people on the GTK+ Team. See the ChangeLog
* files for a list of changes. These files are distributed with
* GTK+ at ftp://ftp.gtk.org/pub/gtk/.
*/
/*
* Backported to Gtk+-2.2 and GLib-2.2 by Yeti in Feb 2004.
*
* _GtkColorButtonPrivate made a normal structure member and moved to the
* header file as there's no support for private in GLib-2.2.
* Renamed to GwyColorButton to avoid name clash with Gtk+-2.4.
*
* In May 2004 all the dialog functionality was removed as we need much
* more control. DnD did not fit then and was removed too.
*/
#ifndef __GWY_COLOR_BUTTON_H__
#define __GWY_COLOR_BUTTON_H__
#include <gdk-pixbuf/gdk-pixbuf.h>
#include <gtk/gtkbutton.h>
#include <libdraw/gwyrgba.h>
G_BEGIN_DECLS
#define GWY_TYPE_COLOR_BUTTON (gwy_color_button_get_type ())
#define GWY_COLOR_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GWY_TYPE_COLOR_BUTTON, GwyColorButton))
#define GWY_COLOR_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GWY_TYPE_COLOR_BUTTON, GwyColorButtonClass))
#define GWY_IS_COLOR_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GWY_TYPE_COLOR_BUTTON))
#define GWY_IS_COLOR_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GWY_TYPE_COLOR_BUTTON))
#define GWY_COLOR_BUTTON_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GWY_TYPE_COLOR_BUTTON, GwyColorButtonClass))
typedef struct _GwyColorButton GwyColorButton;
typedef struct _GwyColorButtonClass GwyColorButtonClass;
struct _GwyColorButton {
GtkButton button;
/*< private >*/
GdkPixbuf *pixbuf; /* Pixbuf for rendering sample */
GdkGC *gc; /* GC for drawing */
GtkWidget *drawing_area;/* Drawing area for color sample */
GwyRGBA color;
gboolean use_alpha; /* Use alpha or not */
gpointer reserved1;
};
struct _GwyColorButtonClass {
GtkButtonClass parent_class;
void (*reserved1)(void);
void (*reserved2)(void);
};
GType gwy_color_button_get_type (void) G_GNUC_CONST;
GtkWidget* gwy_color_button_new (void);
GtkWidget* gwy_color_button_new_with_color (const GwyRGBA *color);
void gwy_color_button_set_color (GwyColorButton *color_button,
const GwyRGBA *color);
void gwy_color_button_get_color (GwyColorButton *color_button,
GwyRGBA *color);
void gwy_color_button_set_use_alpha (GwyColorButton *color_button,
gboolean use_alpha);
gboolean gwy_color_button_get_use_alpha (GwyColorButton *color_button);
G_END_DECLS
#endif /* __GWY_COLOR_BUTTON_H__ */
/* vim: set cin et ts=4 sw=4 cino=>1s,e0,n0,f0,{0,}0,^0,\:1s,=0,g1s,h0,t0,+1s,c3,(0,u0 : */
|