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
26
G_BEGIN_DECLS
27
28
typedef
struct
_GtkRequestedSize
GtkRequestedSize
;
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
*/
40
struct
_GtkRequestedSize
41
{
42
gpointer
data
;
43
int
minimum_size
;
44
int
natural_size
;
45
};
46
47
48
/* General convenience function to aid in allocating natural sizes */
49
GDK_AVAILABLE_IN_ALL
50
int
gtk_distribute_natural_allocation
(
int
extra_space,
51
guint
n_requested_sizes,
52
GtkRequestedSize
*sizes);
53
54
55
G_END_DECLS
56
GDK_AVAILABLE_IN_ALL
#define GDK_AVAILABLE_IN_ALL
Definition
gdk-visibility.h:22
G_END_DECLS
#define G_END_DECLS
Definition
gmacros.h:910
G_BEGIN_DECLS
#define G_BEGIN_DECLS
Definition
gmacros.h:909
GtkRequestedSize
typedefG_BEGIN_DECLS struct _GtkRequestedSize GtkRequestedSize
Definition
gtksizerequest.h:28
gtk_distribute_natural_allocation
GDK_AVAILABLE_IN_ALL int gtk_distribute_natural_allocation(int extra_space, guint n_requested_sizes, GtkRequestedSize *sizes)
gtkwidget.h
gpointer
void * gpointer
Definition
gtypes.h:109
guint
unsigned int guint
Definition
gtypes.h:61
_GtkRequestedSize
Definition
gtksizerequest.h:41
_GtkRequestedSize::natural_size
int natural_size
Definition
gtksizerequest.h:44
_GtkRequestedSize::minimum_size
int minimum_size
Definition
gtksizerequest.h:43
_GtkRequestedSize::data
gpointer data
Definition
gtksizerequest.h:42
nix
store
v9wbd5iwvxl666sf67ard7lvjamhggbk-gtk4-4.16.12-dev
include
gtk-4.0
gtk
gtksizerequest.h
Generated by
1.10.0