1
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
3
/* Marco theme preview widget */
6
* Copyright (C) 2002 Havoc Pennington
8
* This program is free software; you can redistribute it and/or
9
* modify it under the terms of the GNU General Public License as
10
* published by the Free Software Foundation; either version 2 of the
11
* License, or (at your option) any later version.
13
* This program is distributed in the hope that it will be useful, but
14
* WITHOUT ANY WARRANTY; without even the implied warranty of
15
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16
* General Public License for more details.
18
* You should have received a copy of the GNU General Public License
19
* along with this program; if not, write to the Free Software
20
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
27
#ifndef META_PREVIEW_WIDGET_H
28
#define META_PREVIEW_WIDGET_H
30
#define META_TYPE_PREVIEW (meta_preview_get_type ())
31
#define META_PREVIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), META_TYPE_PREVIEW, MetaPreview))
32
#define META_PREVIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), META_TYPE_PREVIEW, MetaPreviewClass))
33
#define META_IS_PREVIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), META_TYPE_PREVIEW))
34
#define META_IS_PREVIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), META_TYPE_PREVIEW))
35
#define META_PREVIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), META_TYPE_PREVIEW, MetaPreviewClass))
37
typedef struct _MetaPreview MetaPreview;
38
typedef struct _MetaPreviewClass MetaPreviewClass;
57
MetaButtonLayout button_layout;
60
struct _MetaPreviewClass
62
GtkBinClass parent_class;
66
GType meta_preview_get_type (void) G_GNUC_CONST;
67
GtkWidget* meta_preview_new (void);
69
void meta_preview_set_theme (MetaPreview *preview,
71
void meta_preview_set_title (MetaPreview *preview,
73
void meta_preview_set_frame_type (MetaPreview *preview,
75
void meta_preview_set_frame_flags (MetaPreview *preview,
76
MetaFrameFlags flags);
77
void meta_preview_set_button_layout (MetaPreview *preview,
78
const MetaButtonLayout *button_layout);
80
GdkRegion * meta_preview_get_clip_region (MetaPreview *preview,
81
gint new_window_width,
82
gint new_window_height);
84
GdkPixbuf* meta_preview_get_icon (void);
85
GdkPixbuf* meta_preview_get_mini_icon (void);