aboutsummaryrefslogtreecommitdiff
path: root/lib/gtk-experiment-widgets/gtk-experiment-transcript-private.h
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2013-07-19 16:34:22 +0200
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2013-07-19 19:15:52 +0200
commitbef5fb5d5d7fecfed21a13004deb83bd90c2cdfe (patch)
tree1002942ce916399ba0f31c869ba9f39e8b0c1580 /lib/gtk-experiment-widgets/gtk-experiment-transcript-private.h
parentfa36afd4b61811fbce8e7bb8b41a9cf5e902077c (diff)
downloadgtk-vlc-player-bef5fb5d5d7fecfed21a13004deb83bd90c2cdfe.tar.gz
removed everything unrelated to the GtkVlcPlayer widget
Diffstat (limited to 'lib/gtk-experiment-widgets/gtk-experiment-transcript-private.h')
-rw-r--r--lib/gtk-experiment-widgets/gtk-experiment-transcript-private.h140
1 files changed, 0 insertions, 140 deletions
diff --git a/lib/gtk-experiment-widgets/gtk-experiment-transcript-private.h b/lib/gtk-experiment-widgets/gtk-experiment-transcript-private.h
deleted file mode 100644
index 8281b0d..0000000
--- a/lib/gtk-experiment-widgets/gtk-experiment-transcript-private.h
+++ /dev/null
@@ -1,140 +0,0 @@
-/**
- * @file
- * Private header for the \e GtkExperimentTranscript widget
- */
-
-/*
- * Copyright (C) 2012-2013 Otto-von-Guericke-Universität Magdeburg
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (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
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#ifndef __GTK_EXPERIMENT_TRANSCRIPT_PRIVATE_H
-#define __GTK_EXPERIMENT_TRANSCRIPT_PRIVATE_H
-
-#include <glib.h>
-
-#include <gdk/gdk.h>
-#include <gtk/gtk.h>
-
-#include <experiment-reader.h>
-
-#include "gtk-experiment-transcript.h"
-
-/** @private */
-#define GTK_EXPERIMENT_TRANSCRIPT_GET_PRIVATE(obj) \
- (G_TYPE_INSTANCE_GET_PRIVATE((obj), GTK_TYPE_EXPERIMENT_TRANSCRIPT, GtkExperimentTranscriptPrivate))
-
-/** @private */
-typedef struct _GtkExperimentTranscriptFormat {
- GRegex *regexp;
- PangoAttrList *attribs;
-} GtkExperimentTranscriptFormat;
-
-/** @private */
-typedef enum {
- GTK_EXPERIMENT_TRANSCRIPT_REVERSE_MASK = 1 << 0,
- GTK_EXPERIMENT_TRANSCRIPT_USE_BACKDROP_MASK = 1 << 1
-} GtkExperimentTranscriptFlagMask;
-
-/**
- * @private
- * Private instance attribute structure.
- * You can access these attributes using \c klass->priv->attribute.
- */
-struct _GtkExperimentTranscriptPrivate {
- gint flag_mask;
-
- GtkObject *time_adjustment;
- gulong time_adj_on_value_changed_id;
-
- GdkPixmap *layer_text;
- PangoLayout *layer_text_layout;
-
- struct _GtkExperimentTranscriptBackdropArea {
- gint64 start;
- gint64 end;
- } backdrop;
-
- GList *contribs;
- GSList *formats;
- GtkExperimentTranscriptFormat interactive_format;
-
- GtkWidget *menu; /**< Drop-down menu, doesn't have to be unreferenced manually */
- GSList *alignment_group; /**< GtkRadioMenuItem group for Alignment settings (owned by GTK) */
- GtkWidget *menu_reverse_item;
-};
-
-/** @private */
-typedef gboolean (*GtkExperimentTranscriptContribRenderer)
- (GtkExperimentTranscript *, ExperimentReaderContrib *,
- gint64, gint64, gint *);
-
-/** @todo scale should be configurable */
-#define PX_PER_SECOND 15
-#define TIME_TO_PX(TIME) ((TIME)/(1000/PX_PER_SECOND))
-#define PX_TO_TIME(PX) (((PX)*1000)/PX_PER_SECOND)
-
-#define BACKDROP_VALUE \
- ((G_MAXUINT16*GTK_EXPERIMENT_TRANSCRIPT_BACKDROP)/100)
-
-/**
- * @private
- * Unreference object given by variable, but only once.
- * Use it in \ref gtk_experiment_transcript_dispose to unreference object
- * references in public or private instance attributes.
- *
- * @sa gtk_experiment_transcript_dispose
- *
- * @param VAR Variable to unreference
- */
-#define GOBJECT_UNREF_SAFE(VAR) G_STMT_START { \
- if ((VAR) != NULL) { \
- g_object_unref(VAR); \
- VAR = NULL; \
- } \
-} G_STMT_END
-
-/** @private */
-G_GNUC_INTERNAL
-void gtk_experiment_transcript_text_layer_redraw(GtkExperimentTranscript *trans);
-
-/** @private */
-G_GNUC_INTERNAL
-void gtk_experiment_transcript_apply_format(GtkExperimentTranscriptFormat *fmt,
- const gchar *text,
- PangoAttrList *attrib_list);
-
-/** @private */
-static inline void
-gtk_experiment_transcript_free_format(GtkExperimentTranscriptFormat *format)
-{
- if (format->regexp != NULL)
- g_regex_unref(format->regexp);
- if (format->attribs != NULL)
- pango_attr_list_unref(format->attribs);
-}
-
-/** @private */
-G_GNUC_INTERNAL
-void gtk_experiment_transcript_free_formats(GSList *formats);
-
-/** @private */
-static inline gboolean
-is_newline(gchar c)
-{
- return c == '\r' || c == '\n';
-}
-
-#endif