2
* Copyright © 2008 James Liggett <jrliggett@cox.net>
4
* Licensed under the GNU General Public License Version 2
6
* This program is free software; you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation; either version 2 of the License, or
9
* (at your option) any later version.
11
* This program is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU General Public License for more details.
16
* You should have received a copy of the GNU General Public License
17
* along with this program. If not, see <http://www.gnu.org/licenses/>.
20
#ifndef _CHEESE_PREFS_RESOLUTION_COMBO_H_
21
#define _CHEESE_PREFS_RESOLUTION_COMBO_H_
23
#include <glib-object.h>
24
#include <cheese-camera.h>
25
#include "cheese-prefs-widget.h"
29
#define CHEESE_TYPE_PREFS_RESOLUTION_COMBO (cheese_prefs_resolution_combo_get_type ())
30
#define CHEESE_PREFS_RESOLUTION_COMBO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
31
CHEESE_TYPE_PREFS_RESOLUTION_COMBO, \
32
CheesePrefsResolutionCombo))
33
#define CHEESE_PREFS_RESOLUTION_COMBO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), \
34
CHEESE_TYPE_PREFS_RESOLUTION_COMBO, \
35
CheesePrefsResolutionComboClass))
36
#define CHEESE_IS_PREFS_RESOLUTION_COMBO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
37
CHEESE_TYPE_PREFS_RESOLUTION_COMBO))
38
#define CHEESE_IS_PREFS_RESOLUTION_COMBO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), \
39
CHEESE_TYPE_PREFS_RESOLUTION_COMBO))
40
#define CHEESE_PREFS_RESOLUTION_COMBO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), \
41
CHEESE_TYPE_PREFS_RESOLUTION_COMBO, \
42
CheesePrefsResolutionComboClass))
44
typedef struct _CheesePrefsResolutionComboClass CheesePrefsResolutionComboClass;
45
typedef struct _CheesePrefsResolutionCombo CheesePrefsResolutionCombo;
47
struct _CheesePrefsResolutionComboClass
49
CheesePrefsWidgetClass parent_class;
52
struct _CheesePrefsResolutionCombo
54
CheesePrefsWidget parent_instance;
57
GType cheese_prefs_resolution_combo_get_type (void) G_GNUC_CONST;
58
CheesePrefsResolutionCombo *cheese_prefs_resolution_combo_new (GtkWidget *combo_box,
60
const gchar *x_resolution_key,
61
const gchar *y_resolution_key,
62
unsigned int max_x_resolution,
63
unsigned int max_y_resolution);
65
CheeseVideoFormat *cheese_prefs_resolution_combo_get_selected_format (CheesePrefsResolutionCombo *resolution_combo);
69
#endif /* _CHEESE_PREFS_RESOLUTION_COMBO_H_ */