Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(180)

Side by Side Diff: ui/views/widget/gtk_views_fixed.h

Issue 9728002: Removing deprecated GTK-Views code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/views/widget/drop_target_gtk.cc ('k') | ui/views/widget/gtk_views_fixed.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef UI_VIEWS_WIDGET_GTK_VIEWS_FIXED_H_
6 #define UI_VIEWS_WIDGET_GTK_VIEWS_FIXED_H_
7 #pragma once
8
9 #include <gdk/gdk.h>
10 #include <gtk/gtkfixed.h>
11
12 // GtkViewsFixed is a subclass of GtkFixed that can give child widgets
13 // a set size rather than their requisitioned size (which is actually
14 // a minimum size, and that can cause issues). This behavior is
15 // controlled by gtk_views_fixed_set_widget_size; the default is to
16 // use the Widget's requisitioned size.
17
18 G_BEGIN_DECLS
19
20 #define GTK_TYPE_VIEWS_FIXED (gtk_views_fixed_get_type ())
21 #define GTK_VIEWS_FIXED(obj) \
22 (G_TYPE_CHECK_INSTANCE_CAST((obj), GTK_TYPE_VIEWS_FIXED, GtkViewsFixed))
23 #define GTK_VIEWS_FIXED_CLASS(klass) \
24 (G_TYPE_CHECK_CLASS_CAST((klass), GTK_TYPE_VIEWS_FIXED, GtkViewsFixedClass))
25 #define GTK_IS_VIEWS_FIXED(obj) \
26 (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_VIEWS_FIXED))
27 #define GTK_IS_VIEWS_FIXED_CLASS(klass) \
28 (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_VIEWS_FIXED))
29 #define GTK_VIEWS_FIXED_GET_CLASS(obj) \
30 (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_VIEWS_FIXED, GtkViewsFixed))
31
32 typedef struct _GtkViewsFixed GtkViewsFixed;
33 typedef struct _GtkViewsFixedClass GtkViewsFixedClass;
34
35 struct _GtkViewsFixed {
36 GtkFixed fixed;
37 };
38
39 struct _GtkViewsFixedClass {
40 GtkFixedClass parent_class;
41 };
42
43 GtkWidget* gtk_views_fixed_new();
44
45 GType gtk_views_fixed_get_type();
46
47 // If width and height are 0, go back to using the requisitioned size.
48 // Queues up a re-size on the widget.
49 void gtk_views_fixed_set_widget_size(GtkWidget* widget, int width, int height);
50
51 bool gtk_views_fixed_get_widget_size(GtkWidget* widget,
52 int* width, int* height);
53
54 G_END_DECLS
55
56 #endif // UI_VIEWS_WIDGET_GTK_VIEWS_FIXED_H_
OLDNEW
« no previous file with comments | « ui/views/widget/drop_target_gtk.cc ('k') | ui/views/widget/gtk_views_fixed.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698