* Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
*
* This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Library General Public
+ * modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Library General Public License for more details.
+ * Lesser General Public License for more details.
*
- * You should have received a copy of the GNU Library General Public
+ * You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
*/
/*
- * Modified by the GTK+ Team and others 1997-1999. See the AUTHORS
+ * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS
* file for a list of people on the GTK+ Team. See the ChangeLog
* files for a list of changes. These files are distributed with
* GTK+ at ftp://ftp.gtk.org/pub/gtk/.
GTK_PARENT_SENSITIVE = 1 << 10,
GTK_CAN_FOCUS = 1 << 11,
GTK_HAS_FOCUS = 1 << 12,
+
+ /* widget is allowed to receive the default via gtk_widget_grab_default
+ * and will reserve space to draw the default if possible */
GTK_CAN_DEFAULT = 1 << 13,
+
+ /* the widget currently is receiving the default action and should be drawn
+ * appropriately if possible */
GTK_HAS_DEFAULT = 1 << 14,
+
GTK_HAS_GRAB = 1 << 15,
GTK_RC_STYLE = 1 << 16,
GTK_COMPOSITE_CHILD = 1 << 17,
GTK_NO_REPARENT = 1 << 18,
GTK_APP_PAINTABLE = 1 << 19,
+
+ /* the widget when focused will receive the default action and have
+ * HAS_DEFAULT set even if there is a different widget set as default */
GTK_RECEIVES_DEFAULT = 1 << 20,
+
GTK_DOUBLE_BUFFERED = 1 << 21
} GtkWidgetFlags;
GdkBitmap *shape_mask;
};
-GtkType gtk_widget_get_type (void);
+GtkType gtk_widget_get_type (void) G_GNUC_CONST;
GtkWidget* gtk_widget_new (GtkType type,
const gchar *first_arg_name,
...);
GtkStyle* gtk_widget_get_style (GtkWidget *widget);
void gtk_widget_restore_default_style (GtkWidget *widget);
-void gtk_widget_modify_style (GtkWidget *widget,
- GtkRcStyle *style);
-
-PangoContext *gtk_widget_create_pango_context (GtkWidget *widget);
-PangoLayout *gtk_widget_create_pango_layout (GtkWidget *widget);
+void gtk_widget_modify_style (GtkWidget *widget,
+ GtkRcStyle *style);
+GtkRcStyle *gtk_widget_get_modifier_style (GtkWidget *widget);
+void gtk_widget_modify_fg (GtkWidget *widget,
+ GtkStateType state,
+ GdkColor *color);
+void gtk_widget_modify_bg (GtkWidget *widget,
+ GtkStateType state,
+ GdkColor *color);
+void gtk_widget_modify_text (GtkWidget *widget,
+ GtkStateType state,
+ GdkColor *color);
+void gtk_widget_modify_base (GtkWidget *widget,
+ GtkStateType state,
+ GdkColor *color);
+void gtk_widget_modify_font (GtkWidget *widget,
+ PangoFontDescription *font_desc);
+
+PangoContext *gtk_widget_create_pango_context (GtkWidget *widget);
+PangoContext *gtk_widget_get_pango_context (GtkWidget *widget);
+PangoLayout *gtk_widget_create_pango_layout (GtkWidget *widget,
+ const gchar *text);
+
+GdkPixbuf* gtk_widget_render_stock_icon (GtkWidget *widget,
+ const gchar *stock_id,
+ const gchar *size,
+ const gchar *detail);
/* handle composite names for GTK_COMPOSITE_CHILD widgets,
* the returned name is newly allocated.