|
Packit |
a7d494 |
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8; coding: utf-8 -*-
|
|
Packit |
a7d494 |
* gtksourcemarkattributes.h
|
|
Packit |
a7d494 |
* This file is part of GtkSourceView
|
|
Packit |
a7d494 |
*
|
|
Packit |
a7d494 |
* Copyright (C) 2010 - Jesse van den Kieboom
|
|
Packit |
a7d494 |
* Copyright (C) 2010 - Krzesimir Nowak
|
|
Packit |
a7d494 |
*
|
|
Packit |
a7d494 |
* GtkSourceView is free software; you can redistribute it and/or
|
|
Packit |
a7d494 |
* modify it under the terms of the GNU Lesser General Public
|
|
Packit |
a7d494 |
* License as published by the Free Software Foundation; either
|
|
Packit |
a7d494 |
* version 2.1 of the License, or (at your option) any later version.
|
|
Packit |
a7d494 |
*
|
|
Packit |
a7d494 |
* GtkSourceView is distributed in the hope that it will be useful,
|
|
Packit |
a7d494 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit |
a7d494 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit |
a7d494 |
* Lesser General Public License for more details.
|
|
Packit |
a7d494 |
*
|
|
Packit |
a7d494 |
* You should have received a copy of the GNU Lesser General Public
|
|
Packit |
a7d494 |
* License along with this library; if not, write to the Free Software
|
|
Packit |
a7d494 |
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
Packit |
a7d494 |
*/
|
|
Packit |
a7d494 |
|
|
Packit |
a7d494 |
#ifndef GTK_SOURCE_MARK_ATTRIBUTES_H
|
|
Packit |
a7d494 |
#define GTK_SOURCE_MARK_ATTRIBUTES_H
|
|
Packit |
a7d494 |
|
|
Packit |
a7d494 |
#if !defined (GTK_SOURCE_H_INSIDE) && !defined (GTK_SOURCE_COMPILATION)
|
|
Packit |
a7d494 |
# if defined (__GNUC__)
|
|
Packit |
a7d494 |
# warning "Only <gtksourceview/gtksource.h> can be included directly."
|
|
Packit |
a7d494 |
# elif defined (G_OS_WIN32)
|
|
Packit |
a7d494 |
# pragma message("Only <gtksourceview/gtksource.h> can be included directly.")
|
|
Packit |
a7d494 |
# endif
|
|
Packit |
a7d494 |
#endif
|
|
Packit |
a7d494 |
|
|
Packit |
a7d494 |
#include <gtk/gtk.h>
|
|
Packit |
a7d494 |
#include <gtksourceview/gtksourcetypes.h>
|
|
Packit |
a7d494 |
|
|
Packit |
a7d494 |
G_BEGIN_DECLS
|
|
Packit |
a7d494 |
|
|
Packit |
a7d494 |
#define GTK_SOURCE_TYPE_MARK_ATTRIBUTES (gtk_source_mark_attributes_get_type ())
|
|
Packit |
a7d494 |
#define GTK_SOURCE_MARK_ATTRIBUTES(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_SOURCE_TYPE_MARK_ATTRIBUTES, GtkSourceMarkAttributes))
|
|
Packit |
a7d494 |
#define GTK_SOURCE_MARK_ATTRIBUTES_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_SOURCE_TYPE_MARK_ATTRIBUTES, GtkSourceMarkAttributesClass))
|
|
Packit |
a7d494 |
#define GTK_SOURCE_IS_MARK_ATTRIBUTES(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_SOURCE_TYPE_MARK_ATTRIBUTES))
|
|
Packit |
a7d494 |
#define GTK_SOURCE_IS_MARK_ATTRIBUTES_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_SOURCE_TYPE_MARK_ATTRIBUTES))
|
|
Packit |
a7d494 |
#define GTK_SOURCE_MARK_ATTRIBUTES_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_SOURCE_TYPE_MARK_ATTRIBUTES, GtkSourceMarkAttributesClass))
|
|
Packit |
a7d494 |
|
|
Packit |
a7d494 |
typedef struct _GtkSourceMarkAttributesClass GtkSourceMarkAttributesClass;
|
|
Packit |
a7d494 |
typedef struct _GtkSourceMarkAttributesPrivate GtkSourceMarkAttributesPrivate;
|
|
Packit |
a7d494 |
|
|
Packit |
a7d494 |
struct _GtkSourceMarkAttributes
|
|
Packit |
a7d494 |
{
|
|
Packit |
a7d494 |
/*< private >*/
|
|
Packit |
a7d494 |
GObject parent;
|
|
Packit |
a7d494 |
|
|
Packit |
a7d494 |
GtkSourceMarkAttributesPrivate *priv;
|
|
Packit |
a7d494 |
|
|
Packit |
a7d494 |
/*< public >*/
|
|
Packit |
a7d494 |
};
|
|
Packit |
a7d494 |
|
|
Packit |
a7d494 |
struct _GtkSourceMarkAttributesClass
|
|
Packit |
a7d494 |
{
|
|
Packit |
a7d494 |
/*< private >*/
|
|
Packit |
a7d494 |
GObjectClass parent_class;
|
|
Packit |
a7d494 |
|
|
Packit |
a7d494 |
/*< public >*/
|
|
Packit |
a7d494 |
};
|
|
Packit |
a7d494 |
|
|
Packit |
a7d494 |
GTK_SOURCE_AVAILABLE_IN_ALL
|
|
Packit |
a7d494 |
GType gtk_source_mark_attributes_get_type (void) G_GNUC_CONST;
|
|
Packit |
a7d494 |
|
|
Packit |
a7d494 |
GTK_SOURCE_AVAILABLE_IN_ALL
|
|
Packit |
a7d494 |
GtkSourceMarkAttributes *gtk_source_mark_attributes_new (void);
|
|
Packit |
a7d494 |
|
|
Packit |
a7d494 |
GTK_SOURCE_AVAILABLE_IN_ALL
|
|
Packit |
a7d494 |
void gtk_source_mark_attributes_set_background (GtkSourceMarkAttributes *attributes,
|
|
Packit |
a7d494 |
const GdkRGBA *background);
|
|
Packit |
a7d494 |
|
|
Packit |
a7d494 |
GTK_SOURCE_AVAILABLE_IN_ALL
|
|
Packit |
a7d494 |
gboolean gtk_source_mark_attributes_get_background (GtkSourceMarkAttributes *attributes,
|
|
Packit |
a7d494 |
GdkRGBA *background);
|
|
Packit |
a7d494 |
|
|
Packit |
a7d494 |
GTK_SOURCE_DEPRECATED_IN_3_10
|
|
Packit |
a7d494 |
void gtk_source_mark_attributes_set_stock_id (GtkSourceMarkAttributes *attributes,
|
|
Packit |
a7d494 |
const gchar *stock_id);
|
|
Packit |
a7d494 |
|
|
Packit |
a7d494 |
GTK_SOURCE_DEPRECATED_IN_3_10
|
|
Packit |
a7d494 |
const gchar *gtk_source_mark_attributes_get_stock_id (GtkSourceMarkAttributes *attributes);
|
|
Packit |
a7d494 |
|
|
Packit |
a7d494 |
GTK_SOURCE_AVAILABLE_IN_ALL
|
|
Packit |
a7d494 |
void gtk_source_mark_attributes_set_icon_name (GtkSourceMarkAttributes *attributes,
|
|
Packit |
a7d494 |
const gchar *icon_name);
|
|
Packit |
a7d494 |
|
|
Packit |
a7d494 |
GTK_SOURCE_AVAILABLE_IN_ALL
|
|
Packit |
a7d494 |
const gchar *gtk_source_mark_attributes_get_icon_name (GtkSourceMarkAttributes *attributes);
|
|
Packit |
a7d494 |
|
|
Packit |
a7d494 |
GTK_SOURCE_AVAILABLE_IN_ALL
|
|
Packit |
a7d494 |
void gtk_source_mark_attributes_set_gicon (GtkSourceMarkAttributes *attributes,
|
|
Packit |
a7d494 |
GIcon *gicon);
|
|
Packit |
a7d494 |
|
|
Packit |
a7d494 |
GTK_SOURCE_AVAILABLE_IN_ALL
|
|
Packit |
a7d494 |
GIcon *gtk_source_mark_attributes_get_gicon (GtkSourceMarkAttributes *attributes);
|
|
Packit |
a7d494 |
|
|
Packit |
a7d494 |
GTK_SOURCE_AVAILABLE_IN_ALL
|
|
Packit |
a7d494 |
void gtk_source_mark_attributes_set_pixbuf (GtkSourceMarkAttributes *attributes,
|
|
Packit |
a7d494 |
const GdkPixbuf *pixbuf);
|
|
Packit |
a7d494 |
|
|
Packit |
a7d494 |
GTK_SOURCE_AVAILABLE_IN_ALL
|
|
Packit |
a7d494 |
const GdkPixbuf *gtk_source_mark_attributes_get_pixbuf (GtkSourceMarkAttributes *attributes);
|
|
Packit |
a7d494 |
|
|
Packit |
a7d494 |
GTK_SOURCE_AVAILABLE_IN_ALL
|
|
Packit |
a7d494 |
const GdkPixbuf *gtk_source_mark_attributes_render_icon (GtkSourceMarkAttributes *attributes,
|
|
Packit |
a7d494 |
GtkWidget *widget,
|
|
Packit |
a7d494 |
gint size);
|
|
Packit |
a7d494 |
|
|
Packit |
a7d494 |
GTK_SOURCE_AVAILABLE_IN_ALL
|
|
Packit |
a7d494 |
gchar *gtk_source_mark_attributes_get_tooltip_text (GtkSourceMarkAttributes *attributes,
|
|
Packit |
a7d494 |
GtkSourceMark *mark);
|
|
Packit |
a7d494 |
|
|
Packit |
a7d494 |
GTK_SOURCE_AVAILABLE_IN_ALL
|
|
Packit |
a7d494 |
gchar *gtk_source_mark_attributes_get_tooltip_markup (GtkSourceMarkAttributes *attributes,
|
|
Packit |
a7d494 |
GtkSourceMark *mark);
|
|
Packit |
a7d494 |
|
|
Packit |
a7d494 |
G_END_DECLS
|
|
Packit |
a7d494 |
|
|
Packit |
a7d494 |
#endif /* GTK_SOURCE_MARK_ATTRIBUTES_H */
|