Github User Fetcher 1.0.0
C Application with Server and GUI
Loading...
Searching...
No Matches
gtkswitch.h
Go to the documentation of this file.
1/* GTK - The GIMP Toolkit
2 *
3 * Copyright (C) 2010 Intel Corporation
4 * Copyright (C) 2010 RedHat, Inc.
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version.
10 *
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library. If not, see <http://www.gnu.org/licenses/>.
18 *
19 * Author:
20 * Emmanuele Bassi <ebassi@linux.intel.com>
21 * Matthias Clasen <mclasen@redhat.com>
22 *
23 * Based on similar code from Mx.
24 */
25
26#pragma once
27
28#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
29#error "Only <gtk/gtk.h> can be included directly."
30#endif
31
32#include <gtk/gtkwidget.h>
33
35
36#define GTK_TYPE_SWITCH (gtk_switch_get_type ())
37#define GTK_SWITCH(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_SWITCH, GtkSwitch))
38#define GTK_IS_SWITCH(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_SWITCH))
39
40typedef struct _GtkSwitch GtkSwitch;
41
42
45
48
51 gboolean is_active);
54
57 gboolean state);
60
62
64
#define GDK_AVAILABLE_IN_ALL
#define G_END_DECLS
Definition gmacros.h:910
#define G_BEGIN_DECLS
Definition gmacros.h:909
#define G_GNUC_CONST
Definition gmacros.h:637
#define G_DEFINE_AUTOPTR_CLEANUP_FUNC(TypeName, func)
Definition gmacros.h:1400
GOBJECT_AVAILABLE_IN_ALL void g_object_unref(gpointer object)
GDK_AVAILABLE_IN_ALL void gtk_switch_set_state(GtkSwitch *self, gboolean state)
GDK_AVAILABLE_IN_ALL GtkWidget * gtk_switch_new(void)
GDK_AVAILABLE_IN_ALL GType gtk_switch_get_type(void) G_GNUC_CONST
struct _GtkSwitch GtkSwitch
Definition gtkswitch.h:40
GDK_AVAILABLE_IN_ALL gboolean gtk_switch_get_state(GtkSwitch *self)
GDK_AVAILABLE_IN_ALL void gtk_switch_set_active(GtkSwitch *self, gboolean is_active)
GDK_AVAILABLE_IN_ALL gboolean gtk_switch_get_active(GtkSwitch *self)
gsize GType
Definition gtype.h:427
gint gboolean
Definition gtypes.h:56