GtkContainer
An abstract class to be extended by widgets that hold one or more other widgets.
オブジェクトの階層
Direct Subclasses
説明
An abstract class to be extended by widget that hole one or more other widgets.
Containers (widgets that extend from GtkContainer) provide a context for the widgets they contain. Containers manage the location, re-sizing and order of their children.
Containers can be broken down into two groups: bins (containers that extend from GtkBin) and multi-child containers. Bins may only have one child and in general provide some additional set of functionality or display enhancement for their child widget. Multi-child containers, on the other hand, normally do not provide any additional functionality and instead focus on organizing a set of widgets.
メソッド
add() Adds the given widget to the container. check_resize() Emits the "check-resize" signal on the container. child_type() Returns the type of the children supported by the container./ children() 非推奨 get_border_width() Returns border width. get_children() Returns an array of all children get_focus_chain() Returns the focus order. get_focus_hadjustment() Retrieves the horizontal focus adjustment. get_focus_vadjustment() Retrieves the vertical focus adjustment. get_resize_mode() Returns the resize mode. propagate_expose() Sends an expose event to a child. remove() Removes a widget from the container. resize_children() Recalculates its and the children's sizes. set_border_width() Sets the border around the container. set_focus_chain() Overrides the automatically computed focus chain. set_focus_child() Emits the "set-focus-child" signal. set_focus_hadjustment() Sets the horizontal adjustment. set_focus_vadjustment() Sets the vertical adjustment. set_reallocate_redraws() Sets the reallocate_redraws flag. set_resize_mode() Sets the resize mode for the container. unset_focus_chain() Removes a focus chain explicitly set.
プロパティ
これらにアクセスするには、get_property および set_property メソッドを使用します。
border-width: Border around the container child: Add a new child to the container. resize-mode: How resize events are handled.
シグナル
"add" Emitted when a child is added to the container with the add method. "check-resize" Recalculation of children is requested. "remove" Widget is removed from container. "set-focus-child" Focus changes.