2003-12-05 23:55:15 +08:00
|
|
|
/* LIBGIMP - The GIMP Library
|
|
|
|
* Copyright (C) 1995-1997 Peter Mattis and Spencer Kimball
|
1999-03-02 08:31:39 +08:00
|
|
|
*
|
2000-02-26 11:41:06 +08:00
|
|
|
* gimpchainbutton.h
|
2003-12-05 23:55:15 +08:00
|
|
|
* Copyright (C) 1999-2000 Sven Neumann <sven@gimp.org>
|
2000-02-26 11:41:06 +08:00
|
|
|
*
|
2009-01-18 06:28:01 +08:00
|
|
|
* This library is free software: you can redistribute it and/or
|
1999-11-18 05:13:50 +08:00
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
1999-03-02 08:31:39 +08:00
|
|
|
* License as published by the Free Software Foundation; either
|
2009-01-18 06:28:01 +08:00
|
|
|
* version 3 of the License, or (at your option) any later version.
|
2003-12-05 23:55:15 +08:00
|
|
|
*
|
|
|
|
* 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
|
1999-12-26 15:54:39 +08:00
|
|
|
* Lesser General Public License for more details.
|
1999-03-02 08:31:39 +08:00
|
|
|
*
|
1999-11-18 05:13:50 +08:00
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
2009-01-18 06:28:01 +08:00
|
|
|
* License along with this library. If not, see
|
2018-07-12 05:27:07 +08:00
|
|
|
* <https://www.gnu.org/licenses/>.
|
1999-03-02 08:31:39 +08:00
|
|
|
*/
|
|
|
|
|
2003-12-05 23:55:15 +08:00
|
|
|
/*
|
2018-05-11 18:56:27 +08:00
|
|
|
* This implements a widget derived from GtkGrid that visualizes
|
2003-12-05 23:55:15 +08:00
|
|
|
* it's state with two different pixmaps showing a closed and a
|
2013-01-27 23:52:38 +08:00
|
|
|
* broken chain. It's intended to be used with the GimpSizeEntry
|
2000-02-26 11:41:06 +08:00
|
|
|
* widget. The usage is quite similar to the one the GtkToggleButton
|
2003-12-05 23:55:15 +08:00
|
|
|
* provides.
|
1999-03-02 08:31:39 +08:00
|
|
|
*/
|
|
|
|
|
2011-04-28 20:30:41 +08:00
|
|
|
#if !defined (__GIMP_WIDGETS_H_INSIDE__) && !defined (GIMP_WIDGETS_COMPILATION)
|
|
|
|
#error "Only <libgimpwidgets/gimpwidgets.h> can be included directly."
|
|
|
|
#endif
|
|
|
|
|
1999-03-02 08:31:39 +08:00
|
|
|
#ifndef __GIMP_CHAIN_BUTTON_H__
|
|
|
|
#define __GIMP_CHAIN_BUTTON_H__
|
|
|
|
|
2001-11-23 07:46:13 +08:00
|
|
|
G_BEGIN_DECLS
|
1999-03-02 08:31:39 +08:00
|
|
|
|
1999-07-29 07:00:08 +08:00
|
|
|
|
2024-08-01 11:55:31 +08:00
|
|
|
#define GIMP_TYPE_CHAIN_BUTTON (gimp_chain_button_get_type ())
|
|
|
|
G_DECLARE_DERIVABLE_TYPE (GimpChainButton, gimp_chain_button, GIMP, CHAIN_BUTTON, GtkGrid)
|
1999-03-02 08:31:39 +08:00
|
|
|
|
|
|
|
struct _GimpChainButtonClass
|
|
|
|
{
|
2018-04-29 06:06:50 +08:00
|
|
|
GtkGridClass parent_class;
|
2000-08-28 06:41:52 +08:00
|
|
|
|
2003-01-05 23:41:23 +08:00
|
|
|
void (* toggled) (GimpChainButton *button);
|
2004-01-29 08:21:33 +08:00
|
|
|
|
|
|
|
/* Padding for future expansion */
|
|
|
|
void (* _gimp_reserved1) (void);
|
|
|
|
void (* _gimp_reserved2) (void);
|
|
|
|
void (* _gimp_reserved3) (void);
|
|
|
|
void (* _gimp_reserved4) (void);
|
2018-04-29 06:06:50 +08:00
|
|
|
void (* _gimp_reserved5) (void);
|
|
|
|
void (* _gimp_reserved6) (void);
|
|
|
|
void (* _gimp_reserved7) (void);
|
|
|
|
void (* _gimp_reserved8) (void);
|
1999-03-02 08:31:39 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2019-02-05 00:57:28 +08:00
|
|
|
GtkWidget * gimp_chain_button_new (GimpChainPosition position);
|
2001-09-21 18:47:19 +08:00
|
|
|
|
2019-02-05 00:57:28 +08:00
|
|
|
void gimp_chain_button_set_icon_size (GimpChainButton *button,
|
|
|
|
GtkIconSize size);
|
|
|
|
GtkIconSize gimp_chain_button_get_icon_size (GimpChainButton *button);
|
|
|
|
|
|
|
|
void gimp_chain_button_set_active (GimpChainButton *button,
|
|
|
|
gboolean active);
|
|
|
|
gboolean gimp_chain_button_get_active (GimpChainButton *button);
|
1999-03-02 08:31:39 +08:00
|
|
|
|
2019-07-24 01:32:52 +08:00
|
|
|
GtkWidget * gimp_chain_button_get_button (GimpChainButton *button);
|
2011-01-01 01:17:11 +08:00
|
|
|
|
1999-07-29 07:00:08 +08:00
|
|
|
|
2001-11-23 07:46:13 +08:00
|
|
|
G_END_DECLS
|
1999-03-02 08:31:39 +08:00
|
|
|
|
2003-01-05 21:52:14 +08:00
|
|
|
#endif /* __GIMP_CHAIN_BUTTON_H__ */
|