close

Gtk 介紹 - GtkContainer 概念介紹

GtkContainer: "gtk_container_get_focus_vadjustment ()

GtkAdjustment* gtk_container_get_focus_vadjustment (GtkContainer *container);

Retrieves the vertical focus adjustment for the container. See gtk_container_set_focus_vadjustment().

container : a GtkContainer
Returns : the vertical focus adjustment, or NULL if none has been set.
gtk_container_set_focus_vadjustment ()

void gtk_container_set_focus_vadjustment (GtkContainer *container,
GtkAdjustment *adjustment);

Hooks up an adjustment to focus handling in a container, so when a child of the container is focused, the adjustment is scrolled to show that widget. This function sets the vertical alignment. See gtk_scrolled_window_get_vadjustment() for a typical way of obtaining the adjustment and gtk_container_set_focus_hadjustment() for setting the horizontal adjustment.

The adjustments have to be in pixel units and in the same coordinate system as the allocation for immediate children of the container.

container : a GtkContainer
adjustment : an adjustment which should be adjusted when the focus is moved among the descendents of container"

arrow
arrow
    文章標籤
    程式 GTK
    全站熱搜
    創作者介紹
    創作者 tttt 的頭像
    tttt

    觀察筆記

    tttt 發表在 痞客邦 留言(0) 人氣()