2019-06-27 19:25:04 +00:00
|
|
|
/* gtkconstraintguide.h: Flexible space for constraints
|
|
|
|
* Copyright 2019 Red Hat, Inc.
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library 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
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*
|
|
|
|
* Author: Matthias Clasen
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <gtk/gtktypes.h>
|
|
|
|
#include <gtk/gtkenums.h>
|
2019-06-29 14:18:23 +00:00
|
|
|
#include <gtk/gtktypebuiltins.h>
|
2019-06-27 19:25:04 +00:00
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
|
|
|
#define GTK_TYPE_CONSTRAINT_GUIDE (gtk_constraint_guide_get_type ())
|
|
|
|
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
|
|
|
G_DECLARE_FINAL_TYPE (GtkConstraintGuide, gtk_constraint_guide, GTK, CONSTRAINT_GUIDE, GObject)
|
|
|
|
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
|
|
|
GtkConstraintGuide * gtk_constraint_guide_new (void);
|
|
|
|
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
|
|
|
void gtk_constraint_guide_set_min_size (GtkConstraintGuide *guide,
|
|
|
|
int width,
|
|
|
|
int height);
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
|
|
|
void gtk_constraint_guide_get_min_size (GtkConstraintGuide *guide,
|
|
|
|
int *width,
|
|
|
|
int *height);
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
|
|
|
void gtk_constraint_guide_set_nat_size (GtkConstraintGuide *guide,
|
|
|
|
int width,
|
|
|
|
int height);
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
|
|
|
void gtk_constraint_guide_get_nat_size (GtkConstraintGuide *guide,
|
|
|
|
int *width,
|
|
|
|
int *height);
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
|
|
|
void gtk_constraint_guide_set_max_size (GtkConstraintGuide *guide,
|
|
|
|
int width,
|
|
|
|
int height);
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
|
|
|
void gtk_constraint_guide_get_max_size (GtkConstraintGuide *guide,
|
|
|
|
int *width,
|
|
|
|
int *height);
|
2019-06-29 14:18:23 +00:00
|
|
|
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
|
|
|
GtkConstraintStrength gtk_constraint_guide_get_strength (GtkConstraintGuide *guide);
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
|
|
|
void gtk_constraint_guide_set_strength (GtkConstraintGuide *guide,
|
|
|
|
GtkConstraintStrength strength);
|
|
|
|
|
2019-06-28 22:53:43 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
|
|
|
void gtk_constraint_guide_set_name (GtkConstraintGuide *guide,
|
|
|
|
const char *name);
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
|
|
|
const char * gtk_constraint_guide_get_name (GtkConstraintGuide *guide);
|
2019-06-27 19:25:04 +00:00
|
|
|
|
|
|
|
G_END_DECLS
|