2
* Remmina - The GTK+ Remote Desktop Client
3
* Copyright (C) 2009 - Vic Lee
5
* This program is free software; you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License as published by
7
* the Free Software Foundation; either version 2 of the License, or
8
* (at your option) any later version.
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
15
* You should have received a copy of the GNU General Public License
16
* along with this program; if not, write to the Free Software
17
* Foundation, Inc., 59 Temple Place, Suite 330,
18
* Boston, MA 02111-1307, USA.
21
#ifndef __REMMINASCALER_H__
22
#define __REMMINASCALER_H__
26
#define REMMINA_TYPE_SCALER (remmina_scaler_get_type ())
27
#define REMMINA_SCALER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), REMMINA_TYPE_SCALER, RemminaScaler))
28
#define REMMINA_SCALER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), REMMINA_TYPE_SCALER, RemminaScalerClass))
29
#define REMMINA_IS_SCALER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), REMMINA_TYPE_SCALER))
30
#define REMMINA_IS_SCALER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), REMMINA_TYPE_SCALER))
31
#define REMMINA_SCALER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), REMMINA_TYPE_SCALER, RemminaScalerClass))
33
typedef struct _RemminaScalerPriv RemminaScalerPriv;
35
typedef struct _RemminaScaler
43
RemminaScalerPriv *priv;
46
typedef struct _RemminaScalerClass
48
GtkTableClass parent_class;
50
void (*scaled)(RemminaScaler *scaler);
53
GType remmina_scaler_get_type(void)
56
GtkWidget* remmina_scaler_new(void);
58
void remmina_scaler_set(RemminaScaler *scaler, gint hscale, gint vscale, gboolean chained);
60
void remmina_scaler_set_draw_value(RemminaScaler *scaler, gboolean draw_value);
64
#endif /* __REMMINASCALER_H__ */