| OLD | NEW |
| 1 // Copyright (c) 2009 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 VIEWS_WIDGET_GTK_VIEWS_FIXED_H_ | 5 #ifndef UI_VIEWS_WIDGET_GTK_VIEWS_FIXED_H_ |
| 6 #define VIEWS_WIDGET_GTK_VIEWS_FIXED_H_ | 6 #define UI_VIEWS_WIDGET_GTK_VIEWS_FIXED_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <gdk/gdk.h> | 9 #include <gdk/gdk.h> |
| 10 #include <gtk/gtkfixed.h> | 10 #include <gtk/gtkfixed.h> |
| 11 | 11 |
| 12 // GtkViewsFixed is a subclass of GtkFixed that can give child widgets | 12 // GtkViewsFixed is a subclass of GtkFixed that can give child widgets |
| 13 // a set size rather than their requisitioned size (which is actually | 13 // a set size rather than their requisitioned size (which is actually |
| 14 // a minimum size, and that can cause issues). This behavior is | 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 | 15 // controlled by gtk_views_fixed_set_widget_size; the default is to |
| 16 // use the Widget's requisitioned size. | 16 // use the Widget's requisitioned size. |
| (...skipping 29 matching lines...) Expand all Loading... |
| 46 | 46 |
| 47 // If width and height are 0, go back to using the requisitioned size. | 47 // If width and height are 0, go back to using the requisitioned size. |
| 48 // Queues up a re-size on the widget. | 48 // Queues up a re-size on the widget. |
| 49 void gtk_views_fixed_set_widget_size(GtkWidget* widget, int width, int height); | 49 void gtk_views_fixed_set_widget_size(GtkWidget* widget, int width, int height); |
| 50 | 50 |
| 51 bool gtk_views_fixed_get_widget_size(GtkWidget* widget, | 51 bool gtk_views_fixed_get_widget_size(GtkWidget* widget, |
| 52 int* width, int* height); | 52 int* width, int* height); |
| 53 | 53 |
| 54 G_END_DECLS | 54 G_END_DECLS |
| 55 | 55 |
| 56 #endif // VIEWS_WIDGET_GTK_VIEWS_FIXED_H | 56 #endif // UI_VIEWS_WIDGET_GTK_VIEWS_FIXED_H_ |
| OLD | NEW |