2006-12-09 13:33:38 -08:00
|
|
|
/* GIMP - The GNU Image Manipulation Program
|
2003-02-05 06:39:40 -08:00
|
|
|
* Copyright (C) 1995 Spencer Kimball and Peter Mattis
|
|
|
|
|
*
|
2009-01-17 14:28:01 -08:00
|
|
|
* This program is free software: you can redistribute it and/or modify
|
2003-02-05 06:39:40 -08:00
|
|
|
* it under the terms of the GNU General Public License as published by
|
2009-01-17 14:28:01 -08:00
|
|
|
* the Free Software Foundation; either version 3 of the License, or
|
2003-02-05 06:39:40 -08:00
|
|
|
* (at your option) any later version.
|
|
|
|
|
*
|
|
|
|
|
* This program 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 General Public License for more details.
|
|
|
|
|
*
|
|
|
|
|
* You should have received a copy of the GNU General Public License
|
2018-07-11 14:47:19 -07:00
|
|
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
2003-02-05 06:39:40 -08:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifndef __GIMP_TEXT_OPTIONS_H__
|
|
|
|
|
#define __GIMP_TEXT_OPTIONS_H__
|
|
|
|
|
|
|
|
|
|
|
2003-06-29 13:40:45 -07:00
|
|
|
#include "core/gimptooloptions.h"
|
2003-02-05 06:39:40 -08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
#define GIMP_TYPE_TEXT_OPTIONS (gimp_text_options_get_type ())
|
|
|
|
|
#define GIMP_TEXT_OPTIONS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GIMP_TYPE_TEXT_OPTIONS, GimpTextOptions))
|
|
|
|
|
#define GIMP_TEXT_OPTIONS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GIMP_TYPE_TEXT_OPTIONS, GimpTextOptionsClass))
|
|
|
|
|
#define GIMP_IS_TEXT_OPTIONS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GIMP_TYPE_TEXT_OPTIONS))
|
|
|
|
|
#define GIMP_IS_TEXT_OPTIONS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GIMP_TYPE_TEXT_OPTIONS))
|
|
|
|
|
#define GIMP_TEXT_OPTIONS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GIMP_TYPE_TEXT_OPTIONS, GimpTextOptionsClass))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
typedef struct _GimpTextOptions GimpTextOptions;
|
|
|
|
|
typedef struct _GimpToolOptionsClass GimpTextOptionsClass;
|
|
|
|
|
|
|
|
|
|
struct _GimpTextOptions
|
|
|
|
|
{
|
2004-03-11 10:47:37 -08:00
|
|
|
GimpToolOptions tool_options;
|
2003-02-05 06:39:40 -08:00
|
|
|
|
2004-03-11 10:47:37 -08:00
|
|
|
GimpUnit unit;
|
|
|
|
|
gdouble font_size;
|
|
|
|
|
gboolean antialias;
|
2008-10-27 00:59:32 -07:00
|
|
|
GimpTextHintStyle hint_style;
|
2004-03-11 10:47:37 -08:00
|
|
|
gchar *language;
|
|
|
|
|
GimpTextDirection base_dir;
|
|
|
|
|
GimpTextJustification justify;
|
|
|
|
|
gdouble indent;
|
|
|
|
|
gdouble line_spacing;
|
2005-03-02 04:54:54 -08:00
|
|
|
gdouble letter_spacing;
|
2010-02-17 11:23:58 -08:00
|
|
|
GimpTextBoxMode box_mode;
|
2004-03-12 19:19:53 -08:00
|
|
|
|
2006-01-13 16:09:22 -08:00
|
|
|
GimpViewType font_view_type;
|
|
|
|
|
GimpViewSize font_view_size;
|
|
|
|
|
|
2008-10-26 10:39:55 -07:00
|
|
|
gboolean use_editor;
|
|
|
|
|
|
2006-05-18 02:41:32 -07:00
|
|
|
/* options gui */
|
|
|
|
|
GtkWidget *size_entry;
|
2003-02-05 06:39:40 -08:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
2004-03-14 09:54:23 -08:00
|
|
|
GType gimp_text_options_get_type (void) G_GNUC_CONST;
|
2004-03-11 10:47:37 -08:00
|
|
|
|
2004-03-14 09:54:23 -08:00
|
|
|
void gimp_text_options_connect_text (GimpTextOptions *options,
|
|
|
|
|
GimpText *text);
|
2003-02-05 06:39:40 -08:00
|
|
|
|
2004-03-14 09:54:23 -08:00
|
|
|
GtkWidget * gimp_text_options_gui (GimpToolOptions *tool_options);
|
2003-03-31 07:10:15 -08:00
|
|
|
|
2006-08-28 08:26:25 -07:00
|
|
|
GtkWidget * gimp_text_options_editor_new (GtkWindow *parent,
|
2011-03-18 04:58:32 -07:00
|
|
|
Gimp *gimp,
|
2006-08-28 08:26:25 -07:00
|
|
|
GimpTextOptions *options,
|
2004-11-22 08:03:54 -08:00
|
|
|
GimpMenuFactory *menu_factory,
|
2008-10-26 10:39:55 -07:00
|
|
|
const gchar *title,
|
2011-03-18 13:16:53 -07:00
|
|
|
GimpText *text,
|
2011-03-18 04:58:32 -07:00
|
|
|
GimpTextBuffer *text_buffer,
|
|
|
|
|
gdouble xres,
|
|
|
|
|
gdouble yres);
|
2003-02-05 06:39:40 -08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif /* __GIMP_TEXT_OPTIONS_H__ */
|