Github User Fetcher 1.0.0
C Application with Server and GUI
Loading...
Searching...
No Matches
gtkcellareacontext.h
Go to the documentation of this file.
1/* gtkcellareacontext.h
2 *
3 * Copyright (C) 2010 Openismus GmbH
4 *
5 * Authors:
6 * Tristan Van Berkom <tristanvb@openismus.com>
7 *
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either
11 * version 2 of the License, or (at your option) any later version.
12 *
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Library General Public License for more details.
17 *
18 * You should have received a copy of the GNU Library General Public
19 * License along with this library. If not, see <http://www.gnu.org/licenses/>.
20 */
21
22#pragma once
23
24#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
25#error "Only <gtk/gtk.h> can be included directly."
26#endif
27
29
31
32#define GTK_TYPE_CELL_AREA_CONTEXT (gtk_cell_area_context_get_type ())
33#define GTK_CELL_AREA_CONTEXT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_CELL_AREA_CONTEXT, GtkCellAreaContext))
34#define GTK_CELL_AREA_CONTEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_CELL_AREA_CONTEXT, GtkCellAreaContextClass))
35#define GTK_IS_CELL_AREA_CONTEXT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_CELL_AREA_CONTEXT))
36#define GTK_IS_CELL_AREA_CONTEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_CELL_AREA_CONTEXT))
37#define GTK_CELL_AREA_CONTEXT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_CELL_AREA_CONTEXT, GtkCellAreaContextClass))
38
39typedef struct _GtkCellAreaContextPrivate GtkCellAreaContextPrivate;
41
43{
44 /*< private >*/
46};
47
48/**
49 * GtkCellAreaContextClass:
50 * @allocate: This tells the context that an allocation width or height
51 * (or both) have been decided for a group of rows. The context should
52 * store any allocations for internally aligned cells at this point so
53 * that they dont need to be recalculated at gtk_cell_area_render() time.
54 * @reset: Clear any previously stored information about requested and
55 * allocated sizes for the context.
56 * @get_preferred_height_for_width: Returns the aligned height for the given
57 * width that context must store while collecting sizes for it’s rows.
58 * @get_preferred_width_for_height: Returns the aligned width for the given
59 * height that context must store while collecting sizes for it’s rows.
60 */
62{
63 /*< private >*/
65
66 /*< public >*/
67 void (* allocate) (GtkCellAreaContext *context,
68 int width,
69 int height);
70 void (* reset) (GtkCellAreaContext *context);
72 int width,
73 int *minimum_height,
74 int *natural_height);
76 int height,
77 int *minimum_width,
78 int *natural_width);
79
80 /*< private >*/
81
83};
84
87
88/* Main apis */
93 int width,
94 int height);
97
98/* Apis for GtkCellArea clients to consult cached values
99 * for a series of GtkTreeModel rows
100 */
103 int *minimum_width,
104 int *natural_width);
107 int *minimum_height,
108 int *natural_height);
111 int width,
112 int *minimum_height,
113 int *natural_height);
116 int height,
117 int *minimum_width,
118 int *natural_width);
121 int *width,
122 int *height);
123
124/* Apis for GtkCellArea implementations to update cached values
125 * for multiple GtkTreeModel rows
126 */
129 int minimum_width,
130 int natural_width);
133 int minimum_height,
134 int natural_height);
135
137
139
#define GDK_DEPRECATED_IN_4_10
#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_DEPRECATED_IN_4_10 void gtk_cell_area_context_get_allocation(GtkCellAreaContext *context, int *width, int *height)
GDK_DEPRECATED_IN_4_10 GtkCellArea * gtk_cell_area_context_get_area(GtkCellAreaContext *context)
GDK_AVAILABLE_IN_ALL GType gtk_cell_area_context_get_type(void) G_GNUC_CONST
GDK_DEPRECATED_IN_4_10 void gtk_cell_area_context_get_preferred_width_for_height(GtkCellAreaContext *context, int height, int *minimum_width, int *natural_width)
GDK_DEPRECATED_IN_4_10 void gtk_cell_area_context_allocate(GtkCellAreaContext *context, int width, int height)
GDK_DEPRECATED_IN_4_10 void gtk_cell_area_context_reset(GtkCellAreaContext *context)
struct _GtkCellAreaContextPrivate GtkCellAreaContextPrivate
GDK_DEPRECATED_IN_4_10 void gtk_cell_area_context_get_preferred_width(GtkCellAreaContext *context, int *minimum_width, int *natural_width)
GDK_DEPRECATED_IN_4_10 void gtk_cell_area_context_push_preferred_width(GtkCellAreaContext *context, int minimum_width, int natural_width)
GDK_DEPRECATED_IN_4_10 void gtk_cell_area_context_get_preferred_height_for_width(GtkCellAreaContext *context, int width, int *minimum_height, int *natural_height)
GDK_DEPRECATED_IN_4_10 void gtk_cell_area_context_push_preferred_height(GtkCellAreaContext *context, int minimum_height, int natural_height)
GDK_DEPRECATED_IN_4_10 void gtk_cell_area_context_get_preferred_height(GtkCellAreaContext *context, int *minimum_height, int *natural_height)
gsize GType
Definition gtype.h:427
void * gpointer
Definition gtypes.h:109
void(* allocate)(GtkCellAreaContext *context, int width, int height)
void(* get_preferred_height_for_width)(GtkCellAreaContext *context, int width, int *minimum_height, int *natural_height)
void(* reset)(GtkCellAreaContext *context)
void(* get_preferred_width_for_height)(GtkCellAreaContext *context, int height, int *minimum_width, int *natural_width)