-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcellrendererspin.h
80 lines (62 loc) · 3.47 KB
/
cellrendererspin.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
/***************************************************************************
* This file is derived from the repository of Veejay project
* - Homepage: http://veejay.dyne.org/
* - File: trunk/veejay-devel/gveejay-reloaded/widgets/cellrendererspin.h
* - Rivision: 501
*
* a little bit modifications are made by Takashi Nakamoto
***************************************************************************/
/***************************************************************************
cellrendererspin.h
------------------
begin : Tue Oct 21 2003
copyright : (C) 2003 by Tim-Philipp M«äller
email : t.i.m at orange dot net
* Copyright (C) 2021 Takao Fujiwara <[email protected]>
***************************************************************************/
/***************************************************************************
* *
* 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 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#ifndef _cellrendererspin_h_included_
#define _cellrendererspin_h_included_
#include <gtk/gtk.h>
G_BEGIN_DECLS
/* Some boilerplate GObject type check and type cast macros */
#define GUI_TYPE_CELL_RENDERER_SPIN (gui_cell_renderer_spin_get_type())
#define GUI_CELL_RENDERER_SPIN(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), GUI_TYPE_CELL_RENDERER_SPIN, GuiCellRendererSpin))
#define GUI_CELL_RENDERER_SPIN_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GUI_TYPE_CELL_RENDERER_SPIN, GuiCellRendererSpinClass))
#define GUI_IS_CELL_RENDERER_SPIN(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GUI_TYPE_CELL_RENDERER_SPIN))
#define GUI_IS_CELL_RENDERER_SPIN_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GUI_TYPE_CELL_RENDERER_SPIN))
#define GUI_CELL_RENDERER_SPIN_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GUI_TYPE_CELL_RENDERER_SPIN, GuiCellRendererSpinClass))
typedef struct _GuiCellRendererSpin GuiCellRendererSpin;
typedef struct _GuiCellRendererSpinClass GuiCellRendererSpinClass;
struct _GuiCellRendererSpin
{
GtkCellRendererText parent;
gdouble lower;
gdouble upper;
gdouble step_inc;
gdouble page_inc;
gdouble page_size;
gdouble climb_rate;
guint digits;
};
struct _GuiCellRendererSpinClass
{
GtkCellRendererTextClass parent_class;
};
GType gui_cell_renderer_spin_get_type (void);
GtkCellRenderer *gui_cell_renderer_spin_new (gdouble lower,
gdouble upper,
gdouble step_inc,
gdouble page_inc,
gdouble page_size,
gdouble climb_rate,
guint digits);
G_END_DECLS
#endif /* _spinbar_renderer_h_included_ */