| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef UI_BASE_GTK_GTK_EXPANDED_CONTAINER_H_ | 5 #ifndef UI_BASE_GTK_GTK_EXPANDED_CONTAINER_H_ |
| 6 #define UI_BASE_GTK_GTK_EXPANDED_CONTAINER_H_ | 6 #define UI_BASE_GTK_GTK_EXPANDED_CONTAINER_H_ |
| 7 | 7 |
| 8 #include <gdk/gdk.h> | 8 #include <gdk/gdk.h> |
| 9 #include <gtk/gtk.h> | 9 #include <gtk/gtk.h> |
| 10 | 10 |
| 11 #include "ui/base/ui_export.h" | 11 #include "ui/base/ui_base_export.h" |
| 12 | 12 |
| 13 // A specialized container derived from GtkFixed, which expands the size of its | 13 // A specialized container derived from GtkFixed, which expands the size of its |
| 14 // children to fill the container, in one or both directions. The usage of this | 14 // children to fill the container, in one or both directions. The usage of this |
| 15 // container is similar to GtkFixed. | 15 // container is similar to GtkFixed. |
| 16 // | 16 // |
| 17 // The "child-size-request" signal is optional, if you want to expand child | 17 // The "child-size-request" signal is optional, if you want to expand child |
| 18 // widgets to customized size other than the container's size. It should have | 18 // widgets to customized size other than the container's size. It should have |
| 19 // the following signature: | 19 // the following signature: |
| 20 // | 20 // |
| 21 // void (*child_size_request)(GtkExpandedContainer* container, | 21 // void (*child_size_request)(GtkExpandedContainer* container, |
| (...skipping 28 matching lines...) Expand all Loading... |
| 50 | 50 |
| 51 struct _GtkExpandedContainer { | 51 struct _GtkExpandedContainer { |
| 52 // Parent class. | 52 // Parent class. |
| 53 GtkFixed fixed; | 53 GtkFixed fixed; |
| 54 }; | 54 }; |
| 55 | 55 |
| 56 struct _GtkExpandedContainerClass { | 56 struct _GtkExpandedContainerClass { |
| 57 GtkFixedClass parent_class; | 57 GtkFixedClass parent_class; |
| 58 }; | 58 }; |
| 59 | 59 |
| 60 UI_EXPORT GType gtk_expanded_container_get_type() G_GNUC_CONST; | 60 UI_BASE_EXPORT GType gtk_expanded_container_get_type() G_GNUC_CONST; |
| 61 UI_EXPORT GtkWidget* gtk_expanded_container_new(); | 61 UI_BASE_EXPORT GtkWidget* gtk_expanded_container_new(); |
| 62 UI_EXPORT void gtk_expanded_container_put(GtkExpandedContainer* container, | 62 UI_BASE_EXPORT void gtk_expanded_container_put(GtkExpandedContainer* container, |
| 63 GtkWidget* widget, gint x, gint y); | 63 GtkWidget* widget, |
| 64 UI_EXPORT void gtk_expanded_container_move(GtkExpandedContainer* container, | 64 gint x, |
| 65 GtkWidget* widget, gint x, gint y); | 65 gint y); |
| 66 UI_EXPORT void gtk_expanded_container_set_has_window( | 66 UI_BASE_EXPORT void gtk_expanded_container_move(GtkExpandedContainer* container, |
| 67 GtkWidget* widget, |
| 68 gint x, |
| 69 gint y); |
| 70 UI_BASE_EXPORT void gtk_expanded_container_set_has_window( |
| 67 GtkExpandedContainer* container, | 71 GtkExpandedContainer* container, |
| 68 gboolean has_window); | 72 gboolean has_window); |
| 69 UI_EXPORT gboolean gtk_expanded_container_get_has_window( | 73 UI_BASE_EXPORT gboolean gtk_expanded_container_get_has_window( |
| 70 GtkExpandedContainer* container); | 74 GtkExpandedContainer* container); |
| 71 | 75 |
| 72 G_END_DECLS | 76 G_END_DECLS |
| 73 | 77 |
| 74 #endif // UI_BASE_GTK_GTK_EXPANDED_CONTAINER_H_ | 78 #endif // UI_BASE_GTK_GTK_EXPANDED_CONTAINER_H_ |
| OLD | NEW |