2004-07-28 00:39:00 +08:00
|
|
|
/* LIBGIMP - The GIMP Library
|
|
|
|
* Copyright (C) 1995-1997 Peter Mattis and Spencer Kimball
|
|
|
|
*
|
2009-01-18 06:28:01 +08:00
|
|
|
* This library is free software: you can redistribute it and/or
|
2004-07-28 00:39:00 +08:00
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
2009-01-18 06:28:01 +08:00
|
|
|
* version 3 of the License, or (at your option) any later version.
|
2004-07-28 00:39:00 +08:00
|
|
|
*
|
|
|
|
* 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
|
|
|
|
* Library General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
2009-01-18 06:28:01 +08:00
|
|
|
* License along with this library. If not, see
|
|
|
|
* <http://www.gnu.org/licenses/>.
|
2004-07-28 00:39:00 +08:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __GIMP_MEMSIZE_H__
|
|
|
|
#define __GIMP_MEMSIZE_H__
|
|
|
|
|
2004-11-04 18:51:55 +08:00
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
2004-07-28 00:39:00 +08:00
|
|
|
|
2005-01-23 10:09:41 +08:00
|
|
|
/*
|
|
|
|
* GIMP_TYPE_MEMSIZE
|
|
|
|
*/
|
|
|
|
|
2004-07-28 00:39:00 +08:00
|
|
|
#define GIMP_TYPE_MEMSIZE (gimp_memsize_get_type ())
|
|
|
|
#define GIMP_VALUE_HOLDS_MEMSIZE(value) (G_TYPE_CHECK_VALUE_TYPE ((value), GIMP_TYPE_MEMSIZE))
|
|
|
|
|
|
|
|
GType gimp_memsize_get_type (void) G_GNUC_CONST;
|
|
|
|
|
2006-07-05 21:55:11 +08:00
|
|
|
gchar * gimp_memsize_serialize (guint64 memsize) G_GNUC_MALLOC;
|
2004-07-28 00:39:00 +08:00
|
|
|
gboolean gimp_memsize_deserialize (const gchar *string,
|
|
|
|
guint64 *memsize);
|
|
|
|
|
2008-03-29 00:33:24 +08:00
|
|
|
#ifndef GIMP_DISABLE_DEPRECATED
|
|
|
|
|
2006-07-05 21:55:11 +08:00
|
|
|
gchar * gimp_memsize_to_string (guint64 memsize) G_GNUC_MALLOC;
|
2004-07-28 00:39:00 +08:00
|
|
|
|
2008-03-29 00:33:24 +08:00
|
|
|
#endif /* GIMP_DISABLE_DEPRECATED */
|
|
|
|
|
2004-07-28 00:39:00 +08:00
|
|
|
|
2005-01-23 10:09:41 +08:00
|
|
|
/*
|
|
|
|
* GIMP_TYPE_PARAM_MEMSIZE
|
|
|
|
*/
|
|
|
|
|
|
|
|
#define GIMP_TYPE_PARAM_MEMSIZE (gimp_param_memsize_get_type ())
|
|
|
|
#define GIMP_IS_PARAM_SPEC_MEMSIZE(pspec) (G_TYPE_CHECK_INSTANCE_TYPE ((pspec), GIMP_TYPE_PARAM_MEMSIZE))
|
|
|
|
|
|
|
|
GType gimp_param_memsize_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
GParamSpec * gimp_param_spec_memsize (const gchar *name,
|
|
|
|
const gchar *nick,
|
|
|
|
const gchar *blurb,
|
|
|
|
guint64 minimum,
|
|
|
|
guint64 maximum,
|
|
|
|
guint64 default_value,
|
|
|
|
GParamFlags flags);
|
|
|
|
|
|
|
|
|
2004-11-04 18:51:55 +08:00
|
|
|
G_END_DECLS
|
|
|
|
|
2004-07-28 00:39:00 +08:00
|
|
|
#endif /* __GIMP_MEMSIZE_H__ */
|