~ubuntu-branches/ubuntu/raring/fyre/raring

« back to all changes in this revision

Viewing changes to src/cell-renderer-bifurcation.h

  • Committer: Bazaar Package Importer
  • Author(s): Christoph Haas
  • Date: 2005-05-25 21:59:19 UTC
  • Revision ID: james.westby@ubuntu.com-20050525215919-jawtso5ic23qb401
Tags: upstream-1.0.0
ImportĀ upstreamĀ versionĀ 1.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* -*- mode: c; c-basic-offset: 4; -*-
 
2
 *
 
3
 * cell-renderer-bifurcation.h - A GtkCellRenderer for viewing a bifurcation
 
4
 *                               diagram over the range of a keyframe's transition.
 
5
 *
 
6
 * Fyre - rendering and interactive exploration of chaotic functions
 
7
 * Copyright (C) 2004-2005 David Trowbridge and Micah Dowty
 
8
 *
 
9
 * This program is free software; you can redistribute it and/or
 
10
 * modify it under the terms of the GNU General Public License
 
11
 * as published by the Free Software Foundation; either version 2
 
12
 * of the License, or (at your option) any later version.
 
13
 *
 
14
 * This program is distributed in the hope that it will be useful,
 
15
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
16
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
17
 * GNU General Public License for more details.
 
18
 *
 
19
 * You should have received a copy of the GNU General Public License
 
20
 * along with this program; if not, write to the Free Software
 
21
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 
22
 *
 
23
 */
 
24
 
 
25
#ifndef __CELL_RENDERER_BIFURCATION_H__
 
26
#define __CELL_RENDERER_BIFURCATION_H__
 
27
 
 
28
#include <glib.h>
 
29
#include <glib-object.h>
 
30
#include <gtk/gtk.h>
 
31
#include "de-jong.h"
 
32
#include "animation.h"
 
33
 
 
34
G_BEGIN_DECLS
 
35
 
 
36
#define CELL_RENDERER_BIFURCATION_TYPE            (cell_renderer_bifurcation_get_type ())
 
37
#define CELL_RENDERER_BIFURCATION(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), CELL_RENDERER_BIFURCATION_TYPE, CellRendererBifurcation))
 
38
#define CELL_RENDERER_BIFURCATION_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), CELL_RENDERER_BIFURCATION_TYPE, CellRendererBifurcationClass))
 
39
#define IS_CELL_RENDERER_BIFURCATION(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CELL_RENDERER_BIFURCATION_TYPE))
 
40
#define IS_CELL_RENDERER_BIFURCATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CELL_RENDERER_BIFURCATION_TYPE))
 
41
 
 
42
typedef struct _CellRendererBifurcation      CellRendererBifurcation;
 
43
typedef struct _CellRendererBifurcationClass CellRendererBifurcationClass;
 
44
 
 
45
struct _CellRendererBifurcation {
 
46
    GtkCellRenderer parent;
 
47
 
 
48
    Animation *animation;
 
49
    gulong row_id;
 
50
 
 
51
    /* Our parent - yes, I know this makes baby jesus cry. */
 
52
    GtkTreeView *tree;
 
53
};
 
54
 
 
55
struct _CellRendererBifurcationClass {
 
56
    GtkCellRendererClass parent_class;
 
57
 
 
58
    void (* cell_renderer_bifurcation) (CellRendererBifurcation *cb);
 
59
};
 
60
 
 
61
GType            cell_renderer_bifurcation_get_type();
 
62
GtkCellRenderer* cell_renderer_bifurcation_new();
 
63
 
 
64
G_END_DECLS
 
65
 
 
66
#endif /* __CELL_RENDERER_BIFURCATION_H__ */
 
67
 
 
68
/* The End */