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

Side by Side Diff: chrome/browser/gtk/gtk_expanded_container.h

Issue 507022: Fix issue 11258: Linux: gracefully handle small browser window... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years 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 | « chrome/browser/gtk/download_shelf_gtk.cc ('k') | chrome/browser/gtk/gtk_expanded_container.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 // Copyright (c) 2009 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 CHROME_BROWSER_GTK_GTK_EXPANDED_CONTAINER_H_
6 #define CHROME_BROWSER_GTK_GTK_EXPANDED_CONTAINER_H_
7
8 #include <gdk/gdk.h>
9 #include <gtk/gtk.h>
10
11 // A specialized container derived from GtkFixed, which expands the size of its
12 // children to fill the container, in one or both directions. The usage of this
13 // container is similar to GtkFixed.
14 //
15 // The "child-size-request" signal is optional, if you want to expand child
16 // widgets to customized size other than the container's size. It should have
17 // the following signature:
18 //
19 // void (*child_size_request)(GtkExpandedContainer* container,
20 // GtkWidget* child,
21 // GtkRequisition* requisition);
22 //
23 // This signal is emitted for each child with the requisition set to the size of
24 // the container. Your handler may adjust the value of the requisition. If the
25 // width or height is set to -1, then that direction will not be expanded, and
26 // the original size request of the child will be used.
27
28 G_BEGIN_DECLS
29
30 #define GTK_TYPE_EXPANDED_CONTAINER \
31 (gtk_expanded_container_get_type())
32 #define GTK_EXPANDED_CONTAINER(obj) \
33 (G_TYPE_CHECK_INSTANCE_CAST((obj), GTK_TYPE_EXPANDED_CONTAINER, \
34 GtkExpandedContainer))
35 #define GTK_EXPANDED_CONTAINER_CLASS(klass) \
36 (G_TYPE_CHECK_CLASS_CAST((klass), GTK_TYPE_EXPANDED_CONTAINER, \
37 GtkExpandedContainerClass))
38 #define GTK_IS_EXPANDED_CONTAINER(obj) \
39 (G_TYPE_CHECK_INSTANCE_TYPE((obj), GTK_TYPE_EXPANDED_CONTAINER))
40 #define GTK_IS_EXPANDED_CONTAINER_CLASS(klass) \
41 (G_TYPE_CHECK_CLASS_TYPE((klass), GTK_TYPE_EXPANDED_CONTAINER))
42 #define GTK_EXPANDED_CONTAINER_GET_CLASS(obj) \
43 (G_TYPE_INSTANCE_GET_CLASS((obj), GTK_TYPE_EXPANDED_CONTAINER, \
44 GtkExpandedContainerClass))
45
46 typedef struct _GtkExpandedContainer GtkExpandedContainer;
47 typedef struct _GtkExpandedContainerClass GtkExpandedContainerClass;
48
49 struct _GtkExpandedContainer {
50 // Parent class.
51 GtkFixed fixed;
52 };
53
54 struct _GtkExpandedContainerClass {
55 GtkFixedClass parent_class;
56 };
57
58 GType gtk_expanded_container_get_type() G_GNUC_CONST;
59 GtkWidget* gtk_expanded_container_new();
60 void gtk_expanded_container_put(GtkExpandedContainer* container,
61 GtkWidget* widget, gint x, gint y);
62 void gtk_expanded_container_move(GtkExpandedContainer* container,
63 GtkWidget* widget, gint x, gint y);
64 void gtk_expanded_container_set_has_window(GtkExpandedContainer* container,
65 gboolean has_window);
66 gboolean gtk_expanded_container_get_has_window(GtkExpandedContainer* container);
67
68 G_END_DECLS
69
70 #endif // CHROME_BROWSER_GTK_GTK_EXPANDED_CONTAINER_H_
OLDNEW
« no previous file with comments | « chrome/browser/gtk/download_shelf_gtk.cc ('k') | chrome/browser/gtk/gtk_expanded_container.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698