blob: 0dd54be4c55fbfb01e9677d4f3b657e46832c36d (
plain)
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
|
// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef VIEWS_WIDGET_GTK_VIEWS_WINDOW_H_
#define VIEWS_WIDGET_GTK_VIEWS_WINDOW_H_
#include <gtk/gtkwindow.h>
// GtkViewsWindow is a subclass of GtkWindow that overrides its move_focus
// method so that we can handle focus traversing by ourselves.
G_BEGIN_DECLS
#define GTK_TYPE_VIEWS_WINDOW (gtk_views_window_get_type ())
#define GTK_VIEWS_WINDOW(obj) \
(G_TYPE_CHECK_INSTANCE_CAST((obj), GTK_TYPE_VIEWS_WINDOW, GtkViewsWindow))
#define GTK_VIEWS_WINDOW_CLASS(klass) \
(G_TYPE_CHECK_CLASS_CAST((klass), GTK_TYPE_VIEWS_WINDOW, \
GtkViewsWindowClass))
#define GTK_IS_VIEWS_WINDOW(obj) \
(G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_VIEWS_WINDOW))
#define GTK_IS_VIEWS_WINDOW_CLASS(klass) \
(G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_VIEWS_WINDOW))
#define GTK_VIEWS_WINDOW_GET_CLASS(obj) \
(G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_VIEWS_WINDOW, GtkViewsWindow))
typedef struct _GtkViewsWindow GtkViewsWindow;
typedef struct _GtkViewsWindowClass GtkViewsWindowClass;
struct _GtkViewsWindow {
GtkWindow window;
};
struct _GtkViewsWindowClass {
GtkWindowClass parent_class;
};
GtkWidget* gtk_views_window_new(GtkWindowType type);
G_END_DECLS
#endif // VIEWS_WIDGET_GTK_VIEWS_WINDOW_H
|