Github User Fetcher 1.0.0
C Application with Server and GUI
Loading...
Searching...
No Matches
gtksizerequest.h
Go to the documentation of this file.
1/* GTK - The GIMP Toolkit
2 * Copyright (C) 2007-2010 Openismus GmbH
3 *
4 * Authors:
5 * Mathias Hasselmann <mathias@openismus.com>
6 * Tristan Van Berkom <tristan.van.berkom@gmail.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#include <gtk/gtkwidget.h>
25
27
29
30/**
31 * GtkRequestedSize:
32 * @data: A client pointer
33 * @minimum_size: The minimum size needed for allocation in a given orientation
34 * @natural_size: The natural size for allocation in a given orientation
35 *
36 * Represents a request of a screen object in a given orientation. These
37 * are primarily used in container implementations when allocating a natural
38 * size for children calling. See [func@distribute_natural_allocation].
39 */
46
47
48/* General convenience function to aid in allocating natural sizes */
51 guint n_requested_sizes,
52 GtkRequestedSize *sizes);
53
54
56
#define GDK_AVAILABLE_IN_ALL
#define G_END_DECLS
Definition gmacros.h:910
#define G_BEGIN_DECLS
Definition gmacros.h:909
typedefG_BEGIN_DECLS struct _GtkRequestedSize GtkRequestedSize
GDK_AVAILABLE_IN_ALL int gtk_distribute_natural_allocation(int extra_space, guint n_requested_sizes, GtkRequestedSize *sizes)
void * gpointer
Definition gtypes.h:109
unsigned int guint
Definition gtypes.h:61