Details
GTK_IS_RESIZE_CONTAINER()
#define GTK_IS_RESIZE_CONTAINER(widget) (GTK_IS_CONTAINER (widget) && ((GtkContainer*) (widget))->resize_mode != GTK_RESIZE_PARENT) |
gtk_container_border_width
#define gtk_container_border_width gtk_container_set_border_width |
Warning |
gtk_container_border_width is deprecated and should not be used in newly-written code. |
gtk_container_add ()
Adds widget to container. Typically used for simple containers
such as GtkWindow, GtkFrame, or GtkButton; for more complicated
layout containers such as GtkBox or GtkTable, this function will
pick default packing parameters that may not be correct. So
consider functions such as gtk_box_pack_start() and
gtk_table_attach() as an alternative to gtk_container_add() in
those cases. A widget may be added to only one container at a time;
you can't place the same widget inside two different containers.
gtk_container_remove ()
Removes widget from container. widget must be inside container.
Note that container will own a reference to widget, and that this
may be the last reference held; so removing a widget from its
container can destroy that widget. If you want to use widget
again, you need to add a reference to it while it's not inside
a container, using g_object_ref().
gtk_container_set_resize_mode ()
gtk_container_check_resize ()
gtk_container_foreach_full ()
gtk_container_children
#define gtk_container_children gtk_container_get_children |
Warning |
gtk_container_children is deprecated and should not be used in newly-written code. |
gtk_container_set_reallocate_redraws ()
gtk_container_set_focus_child ()
gtk_container_set_focus_vadjustment ()
gtk_container_set_focus_hadjustment ()
gtk_container_resize_children ()
void gtk_container_resize_children (GtkContainer *container); |
gtk_container_child_type ()
gtk_container_child_set ()
gtk_container_queue_resize ()
gtk_container_clear_resize_widgets ()
void gtk_container_clear_resize_widgets
(GtkContainer *container); |
gtk_container_forall ()
Invokes callback on each child of container, including children
that are considered "internal" (implementation details of the
container). "Internal" children generally weren't added by the user
of the container, but were added by the container implementation
itself. Most applications should use gtk_container_foreach(),
rather than gtk_container_forall().
gtk_container_child_composite_name ()
gtk_container_set_border_width ()
The border width of a container is the amount of space to leave
around the outside of the container. The only exception to this is
GtkWindow; because toplevel windows can't leave space outside,
they leave the space inside. The border is added on all sides of
the container. To add space to only one side, one approach is to
create a GtkAlignment widget, call gtk_widget_set_usize() to give
it a size, and place it on the side of the container as a spacer.
gtk_container_propagate_expose ()
When a container receives an expose event, it must send synthetic
expose events to all children that don't have their own GdkWindows.
This function provides a convenient way of doing this. A container,
when it receives an expose event, gtk_container_propagate_expose()
once for each child, passing in the event the container received.
gtk_container_propagate expose() takes care of deciding whether
an expose event needs to be sent to the child, intersecting
the event's area with the child area, and sending the event.
In most cases, a container can simply either simply inherit the
::expose implementation from GtkContainer, or, do some drawing
and then chain to the ::expose implementation from GtkContainer.
gtk_container_set_focus_chain ()
void gtk_container_set_focus_chain (GtkContainer *container,
GList *focusable_widgets); |
gtk_container_unset_focus_chain ()
void gtk_container_unset_focus_chain (GtkContainer *container); |