PIKApp/app/widgets/pikalayermodebox.h

68 lines
2.9 KiB
C

/* LIBPIKA - The PIKA Library
* Copyright (C) 1995-1999 Peter Mattis and Spencer Kimball
*
* pikalayermodebox.h
* Copyright (C) 2017 Michael Natterer <mitch@gimp.org>
*
* 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 __PIKA_LAYER_MODE_BOX_H__
#define __PIKA_LAYER_MODE_BOX_H__
#define PIKA_TYPE_LAYER_MODE_BOX (pika_layer_mode_box_get_type ())
#define PIKA_LAYER_MODE_BOX(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PIKA_TYPE_LAYER_MODE_BOX, PikaLayerModeBox))
#define PIKA_LAYER_MODE_BOX_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PIKA_TYPE_LAYER_MODE_BOX, PikaLayerModeBoxClass))
#define PIKA_IS_LAYER_MODE_BOX(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PIKA_TYPE_LAYER_MODE_BOX))
#define PIKA_IS_LAYER_MODE_BOX_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PIKA_TYPE_LAYER_MODE_BOX))
#define PIKA_LAYER_MODE_BOX_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PIKA_TYPE_LAYER_MODE_BOX, PikaLayerModeBoxClass))
typedef struct _PikaLayerModeBoxPrivate PikaLayerModeBoxPrivate;
typedef struct _PikaLayerModeBoxClass PikaLayerModeBoxClass;
struct _PikaLayerModeBox
{
GtkBox parent_instance;
PikaLayerModeBoxPrivate *priv;
};
struct _PikaLayerModeBoxClass
{
GtkBoxClass parent_class;
};
GType pika_layer_mode_box_get_type (void) G_GNUC_CONST;
GtkWidget * pika_layer_mode_box_new (PikaLayerModeContext context);
void pika_layer_mode_box_set_context (PikaLayerModeBox *box,
PikaLayerModeContext context);
PikaLayerModeContext pika_layer_mode_box_get_context (PikaLayerModeBox *box);
void pika_layer_mode_box_set_mode (PikaLayerModeBox *box,
PikaLayerMode mode);
PikaLayerMode pika_layer_mode_box_get_mode (PikaLayerModeBox *box);
void pika_layer_mode_box_set_label (PikaLayerModeBox *box,
const gchar *label);
void pika_layer_mode_box_set_ellipsize (PikaLayerModeBox *box,
PangoEllipsizeMode mode);
#endif /* __PIKA_LAYER_MODE_BOX_H__ */