~ubuntu-branches/ubuntu/utopic/glame/utopic

« back to all changes in this revision

Viewing changes to src/gui/util/glame_param.h

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Kobras
  • Date: 2002-04-09 17:14:12 UTC
  • Revision ID: james.westby@ubuntu.com-20020409171412-jzpnov7mbz2w6zsr
Tags: upstream-0.6.2
ImportĀ upstreamĀ versionĀ 0.6.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef __GLAME_PARAM_H__
 
2
#define __GLAME_PARAM_H__
 
3
 
 
4
/*
 
5
 * glame_param.h
 
6
 *
 
7
 * $Id: glame_param.h,v 1.3 2001/07/31 12:26:32 mag Exp $
 
8
 *
 
9
 * Copyright (C) 2001 Richard Guenther
 
10
 *
 
11
 * This program is free software; you can redistribute it and/or modify
 
12
 * it under the terms of the GNU General Public License as published by
 
13
 * the Free Software Foundation; either version 2 of the License, or
 
14
 * (at your option) any later version.
 
15
 *
 
16
 * This program is distributed in the hope that it will be useful,
 
17
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
18
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
19
 * GNU General Public License for more details.
 
20
 *
 
21
 * You should have received a copy of the GNU General Public License
 
22
 * along with this program; if not, write to the Free Software
 
23
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
24
 *
 
25
 */
 
26
 
 
27
#ifdef HAVE_CONFIG_H
 
28
#include <config.h>
 
29
#endif
 
30
 
 
31
#include <gtk/gtk.h>
 
32
#include "glame_curve.h"
 
33
#include "filter.h"
 
34
#include "glsignal.h"
 
35
 
 
36
 
 
37
#ifdef __cplusplus
 
38
extern "C" {
 
39
#endif /* __cplusplus */
 
40
 
 
41
 
 
42
typedef struct _GlameParam       GlameParam;
 
43
typedef struct _GlameParamClass  GlameParamClass;
 
44
 
 
45
#define GLAME_TYPE_PARAM            (glame_param_get_type ())
 
46
#define GLAME_PARAM(obj)            (GTK_CHECK_CAST ((obj), GLAME_TYPE_PARAM, GlameParam))
 
47
#define GLAME_PARAM_CLASS(klass)    (GTK_CHECK_CLASS_CAST ((klass), GLAME_TYPE_PARAM, GlameParamClass))
 
48
#define GLAME_IS_PARAM(obj)         (GTK_CHECK_TYPE ((obj), GLAME_TYPE_PARAM))
 
49
#define GLAME_IS_PARAM_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GLAME_TYPE_PARAM))
 
50
#define GLAME_PARAM_GET_CLASS(obj)  ((GlameParamClass *)(((GtkObject *)(obj))->klass))
 
51
 
 
52
 
 
53
struct _GlameParam
 
54
{
 
55
        GtkHBox hbox;
 
56
 
 
57
        filter_param_t *param;
 
58
        glsig_handler_t *fhandler;
 
59
 
 
60
        GtkWidget *label;
 
61
        GtkWidget *widget;
 
62
        union {
 
63
                GtkWidget *widget;
 
64
                GtkAdjustment *adj;
 
65
                GtkEditable *edit;
 
66
                GtkMenuShell *menu;
 
67
                GlameCurve *curve;
 
68
        } u;
 
69
 
 
70
        int updating;
 
71
};
 
72
 
 
73
struct _GlameParamClass
 
74
{
 
75
        GtkHBoxClass parent_class;
 
76
};
 
77
 
 
78
 
 
79
GtkType    glame_param_get_type (void);
 
80
GtkWidget* glame_param_new      (filter_param_t *param);
 
81
 
 
82
 
 
83
#ifdef __cplusplus
 
84
}
 
85
#endif /* __cplusplus */
 
86
 
 
87
 
 
88
#endif /* __GLAME_PARAM_H__ */