IconView

Description GtkIconView provides an alternative view on a list model. It displays the model as a grid of icons with labels. Like GtkTreeView, it allows to select one or multiple items (depending on the selection mode, see gtk_icon_view_set_selection_mode()). In addition to selection with the arrow keys, GtkIconView supports rubberband selection, which is controlled by dragging the pointer.

class IconView : Container , CellLayoutIF {}

Constructors

this
this(GtkIconView* gtkIconView)

Sets our main struct and passes it to the parent class

this
this()

Creates a new GtkIconView widget Since 2.6

this
this(TreeModelIF model)

Creates a new GtkIconView widget with the model model. Since 2.6

Members

Functions

addOnActivateCursorItem
void addOnActivateCursorItem(bool delegate(IconView) dlg, ConnectFlags connectFlags)

A keybinding signal which gets emitted when the user activates the currently focused item. Applications should not connect to it, but may emit it with g_signal_emit_by_name() if they need to control activation programmatically. The default bindings for this signal are Space, Return and Enter.

addOnItemActivated
void addOnItemActivated(void delegate(TreePath, IconView) dlg, ConnectFlags connectFlags)

The ::item-activated signal is emitted when the method gtk_icon_view_item_activated() is called or the user double clicks an item. It is also emitted when a non-editable item is selected and one of the keys: Space, Return or Enter is pressed.

addOnMoveCursor
void addOnMoveCursor(bool delegate(GtkMovementStep, gint, IconView) dlg, ConnectFlags connectFlags)

The ::move-cursor signal is a keybinding signal which gets emitted when the user initiates a cursor movement. Applications should not connect to it, but may emit it with g_signal_emit_by_name() if they need to control the cursor programmatically. The default bindings for this signal include Arrow keys which move by individual steps Home/End keys which move to the first/last item PageUp/PageDown which move by "pages" All of these will extend the selection when combined with the Shift modifier.

addOnSelectAll
void addOnSelectAll(void delegate(IconView) dlg, ConnectFlags connectFlags)

A keybinding signal which gets emitted when the user selects all items. Applications should not connect to it, but may emit it with g_signal_emit_by_name() if they need to control selection programmatically. The default binding for this signal is Ctrl-a.

addOnSelectCursorItem
void addOnSelectCursorItem(void delegate(IconView) dlg, ConnectFlags connectFlags)

A keybinding signal which gets emitted when the user selects the item that is currently focused. Applications should not connect to it, but may emit it with g_signal_emit_by_name() if they need to control selection programmatically. There is no default binding for this signal.

addOnSelectionChanged
void addOnSelectionChanged(void delegate(IconView) dlg, ConnectFlags connectFlags)

The ::selection-changed signal is emitted when the selection (i.e. the set of selected items) changes.

addOnSetScrollAdjustments
void addOnSetScrollAdjustments(void delegate(GtkAdjustment*, GtkAdjustment*, IconView) dlg, ConnectFlags connectFlags)

Set the scroll adjustments for the icon view. Usually scrolled containers like GtkScrolledWindow will emit this signal to connect two instances of GtkScrollbar to the scroll directions of the GtkIconView.

addOnToggleCursorItem
void addOnToggleCursorItem(void delegate(IconView) dlg, ConnectFlags connectFlags)

A keybinding signal which gets emitted when the user toggles whether the currently focused item is selected or not. The exact effect of this depend on the selection mode. Applications should not connect to it, but may emit it with g_signal_emit_by_name() if they need to control selection programmatically. There is no default binding for this signal is Ctrl-Space.

addOnUnselectAll
void addOnUnselectAll(void delegate(IconView) dlg, ConnectFlags connectFlags)

A keybinding signal which gets emitted when the user unselects all items. Applications should not connect to it, but may emit it with g_signal_emit_by_name() if they need to control selection programmatically. The default binding for this signal is Ctrl-Shift-a.

convertWidgetToBinWindowCoords
void convertWidgetToBinWindowCoords(int wx, int wy, int bx, int by)

Converts widget coordinates to coordinates for the bin_window, as expected by e.g. gtk_icon_view_get_path_at_pos(). Since 2.12

createDragIcon
Pixmap createDragIcon(TreePath path)

Creates a GdkPixmap representation of the item at path. This image is used for a drag icon. Since 2.8

enableModelDragDest
void enableModelDragDest(GtkTargetEntry[] targets, GdkDragAction actions)

Turns icon_view into a drop destination for automatic DND. Calling this method sets "reorderable" to FALSE. Since 2.8

enableModelDragSource
void enableModelDragSource(GdkModifierType startButtonMask, GtkTargetEntry[] targets, GdkDragAction actions)

Turns icon_view into a drag source for automatic DND. Calling this method sets "reorderable" to FALSE. Since 2.8

getColumnSpacing
int getColumnSpacing()

Returns the value of the ::column-spacing property. Since 2.6

getColumns
int getColumns()

Returns the value of the ::columns property. Since 2.6

getCursor
int getCursor(TreePath path, CellRenderer cell)

Fills in path and cell with the current cursor path and cell. If the cursor isn't currently set, then *path will be NULL. If no cell currently has focus, then *cell will be NULL. The returned GtkTreePath must be freed with gtk_tree_path_free(). Since 2.8

getDestItemAtPos
int getDestItemAtPos(int dragX, int dragY, TreePath path, GtkIconViewDropPosition pos)

Determines the destination item for a given position. Since 2.8

getDragDestItem
void getDragDestItem(TreePath path, GtkIconViewDropPosition pos)

Gets information about the item that is highlighted for feedback. Since 2.8

getIconViewStruct
GtkIconView* getIconViewStruct()
Undocumented in source. Be warned that the author may not have intended to support it.
getItemAtPos
int getItemAtPos(int x, int y, TreePath path, CellRenderer cell)

Finds the path at the point (x, y), relative to bin_window coordinates. In contrast to gtk_icon_view_get_path_at_pos(), this function also obtains the cell at the specified position. The returned path should be freed with gtk_tree_path_free(). See gtk_icon_view_convert_widget_to_bin_window_coords() for converting widget coordinates to bin_window coordinates. Since 2.8

getItemColumn
int getItemColumn(TreePath path)

Gets the column in which the item path is currently displayed. Column numbers start at 0. Since 2.22

getItemOrientation
GtkOrientation getItemOrientation()

Returns the value of the ::item-orientation property which determines whether the labels are drawn beside the icons instead of below. Since 2.22

getItemPadding
int getItemPadding()

Returns the value of the ::item-padding property. Since 2.18

getItemRow
int getItemRow(TreePath path)

Gets the row in which the item path is currently displayed. Row numbers start at 0. Since 2.22

getItemWidth
int getItemWidth()

Returns the value of the ::item-width property. Since 2.6

getMargin
int getMargin()

Returns the value of the ::margin property. Since 2.6

getMarkupColumn
int getMarkupColumn()

Returns the column with markup text for icon_view. Since 2.6

getModel
TreeModelIF getModel()

Returns the model the GtkIconView is based on. Returns NULL if the model is unset. Since 2.6

getOrientation
GtkOrientation getOrientation()

Warning gtk_icon_view_get_orientation has been deprecated since version 2.22 and should not be used in newly-written code. Use gtk_icon_view_get_item_orientation() Returns the value of the ::orientation property which determines whether the labels are drawn beside the icons instead of below. Since 2.6

getPathAtPos
TreePath getPathAtPos(int x, int y)

Finds the path at the point (x, y), relative to bin_window coordinates. See gtk_icon_view_get_item_at_pos(), if you are also interested in the cell at the specified position. See gtk_icon_view_convert_widget_to_bin_window_coords() for converting widget coordinates to bin_window coordinates. Since 2.6

getPixbufColumn
int getPixbufColumn()

Returns the column with pixbufs for icon_view. Since 2.6

getReorderable
int getReorderable()

Retrieves whether the user can reorder the list via drag-and-drop. See gtk_icon_view_set_reorderable(). Since 2.8

getRowSpacing
int getRowSpacing()

Returns the value of the ::row-spacing property. Since 2.6

getSelectedItems
ListG getSelectedItems()

Creates a list of paths of all selected items. Additionally, if you are planning on modifying the model after calling this function, you may want to convert the returned list into a list of GtkTreeRowReferences. To do this, you can use gtk_tree_row_reference_new(). Since 2.6

getSelectionMode
GtkSelectionMode getSelectionMode()

Gets the selection mode of the icon_view. Since 2.6

getSpacing
int getSpacing()

Returns the value of the ::spacing property. Since 2.6

getStruct
void* getStruct()

the main Gtk struct as a void*

getTextColumn
int getTextColumn()

Returns the column with text for icon_view. Since 2.6

getTooltipColumn
int getTooltipColumn()

Returns the column of icon_view's model which is being used for displaying tooltips on icon_view's rows. Since 2.12

getTooltipContext
int getTooltipContext(int* x, int* y, int keyboardTip, TreeModelIF model, TreePath path, TreeIter iter)

This function is supposed to be used in a "query-tooltip" signal handler for GtkIconView. The x, y and keyboard_tip values which are received in the signal handler, should be passed to this function without modification. The return value indicates whether there is an icon view item at the given coordinates (TRUE) or not (FALSE) for mouse tooltips. For keyboard tooltips the item returned will be the cursor item. When TRUE, then any of model, path and iter which have been provided will be set to point to that row and the corresponding model. x and y will always be converted to be relative to icon_view's bin_window if keyboard_tooltip is FALSE. Since 2.12

getVisibleRange
int getVisibleRange(TreePath startPath, TreePath endPath)

Sets start_path and end_path to be the first and last visible path. Note that there may be invisible paths in between. Both paths should be freed with gtk_tree_path_free() after use. Since 2.8

itemActivated
void itemActivated(TreePath path)

Activates the item determined by path. Since 2.6

pathIsSelected
int pathIsSelected(TreePath path)

Returns TRUE if the icon pointed to by path is currently selected. If path does not point to a valid location, FALSE is returned. Since 2.6

scrollToPath
void scrollToPath(TreePath path, int useAlign, float rowAlign, float colAlign)

Moves the alignments of icon_view to the position specified by path. row_align determines where the row is placed, and col_align determines where column is placed. Both are expected to be between 0.0 and 1.0. 0.0 means left/top alignment, 1.0 means right/bottom alignment, 0.5 means center. If use_align is FALSE, then the alignment arguments are ignored, and the tree does the minimum amount of work to scroll the item onto the screen. This means that the item will be scrolled to the edge closest to its current position. If the item is currently visible on the screen, nothing is done. This function only works if the model is set, and path is a valid row on the model. If the model changes before the icon_view is realized, the centered path will be modified to reflect this change. Since 2.8

selectAll
void selectAll()

Selects all the icons. icon_view must has its selection mode set to GTK_SELECTION_MULTIPLE. Since 2.6

selectPath
void selectPath(TreePath path)

Selects the row at path. Since 2.6

selectedForeach
void selectedForeach(GtkIconViewForeachFunc func, void* data)

Calls a function for each selected icon. Note that the model or selection cannot be modified from within this function. Since 2.6

setColumnSpacing
void setColumnSpacing(int columnSpacing)

Sets the ::column-spacing property which specifies the space which is inserted between the columns of the icon view. Since 2.6

setColumns
void setColumns(int columns)

Sets the ::columns property which determines in how many columns the icons are arranged. If columns is -1, the number of columns will be chosen automatically to fill the available area. Since 2.6

setCursor
void setCursor(TreePath path, CellRenderer cell, int startEditing)

Sets the current keyboard focus to be at path, and selects it. This is useful when you want to focus the user's attention on a particular item. If cell is not NULL, then focus is given to the cell specified by it. Additionally, if start_editing is TRUE, then editing should be started in the specified cell. This function is often followed by gtk_widget_grab_focus (icon_view) in order to give keyboard focus to the widget. Please note that editing can only happen when the widget is realized. Since 2.8

setDragDestItem
void setDragDestItem(TreePath path, GtkIconViewDropPosition pos)

Sets the item that is highlighted for feedback. Since 2.8

setItemOrientation
void setItemOrientation(GtkOrientation orientation)

Sets the ::item-orientation property which determines whether the labels are drawn beside the icons instead of below. Since 2.22

setItemPadding
void setItemPadding(int itemPadding)

Sets the "item-padding" property which specifies the padding around each of the icon view's items. Since 2.18

setItemWidth
void setItemWidth(int itemWidth)

Sets the ::item-width property which specifies the width to use for each item. If it is set to -1, the icon view will automatically determine a suitable item size. Since 2.6

setMargin
void setMargin(int margin)

Sets the ::margin property which specifies the space which is inserted at the top, bottom, left and right of the icon view. Since 2.6

setMarkupColumn
void setMarkupColumn(int column)

Sets the column with markup information for icon_view to be column. The markup column must be of type G_TYPE_STRING. If the markup column is set to something, it overrides the text column set by gtk_icon_view_set_text_column(). Since 2.6

setModel
void setModel(TreeModelIF model)

Sets the model for a GtkIconView. If the icon_view already has a model set, it will remove it before setting the new model. If model is NULL, then it will unset the old model. Since 2.6

setOrientation
void setOrientation(GtkOrientation orientation)

Warning gtk_icon_view_set_orientation has been deprecated since version 2.22 and should not be used in newly-written code. Use gtk_icon_view_set_item_orientation() Sets the ::orientation property which determines whether the labels are drawn beside the icons instead of below. Since 2.6

setPixbufColumn
void setPixbufColumn(int column)

Sets the column with pixbufs for icon_view to be column. The pixbuf column must be of type GDK_TYPE_PIXBUF Since 2.6

setReorderable
void setReorderable(int reorderable)

This function is a convenience function to allow you to reorder models that support the GtkTreeDragSourceIface and the GtkTreeDragDestIface. Both GtkTreeStore and GtkListStore support these. If reorderable is TRUE, then the user can reorder the model by dragging and dropping rows. The developer can listen to these changes by connecting to the model's row_inserted and row_deleted signals. The reordering is implemented by setting up the icon view as a drag source and destination. Therefore, drag and drop can not be used in a reorderable view for any other purpose. This function does not give you any degree of control over the order -- any reordering is allowed. If more control is needed, you should probably handle drag and drop manually. Since 2.8

setRowSpacing
void setRowSpacing(int rowSpacing)

Sets the ::row-spacing property which specifies the space which is inserted between the rows of the icon view. Since 2.6

setSelectionMode
void setSelectionMode(GtkSelectionMode mode)

Sets the selection mode of the icon_view. Since 2.6

setSpacing
void setSpacing(int spacing)

Sets the ::spacing property which specifies the space which is inserted between the cells (i.e. the icon and the text) of an item. Since 2.6

setStruct
void setStruct(GObject* obj)
Undocumented in source. Be warned that the author may not have intended to support it.
setTextColumn
void setTextColumn(int column)

Sets the column with text for icon_view to be column. The text column must be of type G_TYPE_STRING. Since 2.6

setTooltipCell
void setTooltipCell(Tooltip tooltip, TreePath path, CellRenderer cell)

Sets the tip area of tooltip to the area which cell occupies in the item pointed to by path. See also gtk_tooltip_set_tip_area(). See also gtk_icon_view_set_tooltip_column() for a simpler alternative. Since 2.12

setTooltipColumn
void setTooltipColumn(int column)

If you only plan to have simple (text-only) tooltips on full items, you can use this function to have GtkIconView handle these automatically for you. column should be set to the column in icon_view's model containing the tooltip texts, or -1 to disable this feature. When enabled, "has-tooltip" will be set to TRUE and icon_view will connect a "query-tooltip" signal handler. Since 2.12

setTooltipItem
void setTooltipItem(Tooltip tooltip, TreePath path)

Sets the tip area of tooltip to be the area covered by the item at path. See also gtk_icon_view_set_tooltip_column() for a simpler alternative. See also gtk_tooltip_set_tip_area(). Since 2.12

unselectAll
void unselectAll()

Unselects all the icons. Since 2.6

unselectPath
void unselectPath(TreePath path)

Unselects the row at path. Since 2.6

unsetModelDragDest
void unsetModelDragDest()

Undoes the effect of gtk_icon_view_enable_model_drag_dest(). Calling this method sets "reorderable" to FALSE. Since 2.8

unsetModelDragSource
void unsetModelDragSource()

Undoes the effect of gtk_icon_view_enable_model_drag_source(). Calling this method sets "reorderable" to FALSE. Since 2.8

Mixins

__anonymous
mixin CellLayoutT!(GtkIconView)
Undocumented in source.

Static functions

callBackActivateCursorItem
gboolean callBackActivateCursorItem(GtkIconView* iconviewStruct, IconView _iconView)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackItemActivated
void callBackItemActivated(GtkIconView* iconviewStruct, GtkTreePath* path, IconView _iconView)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackMoveCursor
gboolean callBackMoveCursor(GtkIconView* iconviewStruct, GtkMovementStep step, gint count, IconView _iconView)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackSelectAll
void callBackSelectAll(GtkIconView* iconviewStruct, IconView _iconView)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackSelectCursorItem
void callBackSelectCursorItem(GtkIconView* iconviewStruct, IconView _iconView)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackSelectionChanged
void callBackSelectionChanged(GtkIconView* iconviewStruct, IconView _iconView)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackSetScrollAdjustments
void callBackSetScrollAdjustments(GtkIconView* horizontalStruct, GtkAdjustment* vertical, GtkAdjustment* arg2, IconView _iconView)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackToggleCursorItem
void callBackToggleCursorItem(GtkIconView* iconviewStruct, IconView _iconView)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackUnselectAll
void callBackUnselectAll(GtkIconView* iconviewStruct, IconView _iconView)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

connectedSignals
int[string] connectedSignals;
gtkIconView
GtkIconView* gtkIconView;

the main Gtk struct

onActivateCursorItemListeners
bool delegate(IconView)[] onActivateCursorItemListeners;
Undocumented in source.
onItemActivatedListeners
void delegate(TreePath, IconView)[] onItemActivatedListeners;
Undocumented in source.
onMoveCursorListeners
bool delegate(GtkMovementStep, gint, IconView)[] onMoveCursorListeners;
Undocumented in source.
onSelectAllListeners
void delegate(IconView)[] onSelectAllListeners;
Undocumented in source.
onSelectCursorItemListeners
void delegate(IconView)[] onSelectCursorItemListeners;
Undocumented in source.
onSelectionChangedListeners
void delegate(IconView)[] onSelectionChangedListeners;
Undocumented in source.
onSetScrollAdjustmentsListeners
void delegate(GtkAdjustment*, GtkAdjustment*, IconView)[] onSetScrollAdjustmentsListeners;
Undocumented in source.
onToggleCursorItemListeners
void delegate(IconView)[] onToggleCursorItemListeners;
Undocumented in source.
onUnselectAllListeners
void delegate(IconView)[] onUnselectAllListeners;
Undocumented in source.

Inherited Members

From Container

gtkContainer
GtkContainer* gtkContainer;

the main Gtk struct

getContainerStruct
GtkContainer* getContainerStruct()
Undocumented in source. Be warned that the author may not have intended to support it.
getStruct
void* getStruct()

the main Gtk struct as a void*

setStruct
void setStruct(GObject* obj)
Undocumented in source. Be warned that the author may not have intended to support it.
removeAll
void removeAll()

Removes all widgets from the container

connectedSignals
int[string] connectedSignals;
onAddListeners
void delegate(Widget, Container)[] onAddListeners;
Undocumented in source.
addOnAdd
void addOnAdd(void delegate(Widget, Container) dlg, ConnectFlags connectFlags)
callBackAdd
void callBackAdd(GtkContainer* containerStruct, GtkWidget* widget, Container _container)
Undocumented in source. Be warned that the author may not have intended to support it.
onCheckResizeListeners
void delegate(Container)[] onCheckResizeListeners;
Undocumented in source.
addOnCheckResize
void addOnCheckResize(void delegate(Container) dlg, ConnectFlags connectFlags)
callBackCheckResize
void callBackCheckResize(GtkContainer* containerStruct, Container _container)
Undocumented in source. Be warned that the author may not have intended to support it.
onRemoveListeners
void delegate(Widget, Container)[] onRemoveListeners;
Undocumented in source.
addOnRemove
void addOnRemove(void delegate(Widget, Container) dlg, ConnectFlags connectFlags)
callBackRemove
void callBackRemove(GtkContainer* containerStruct, GtkWidget* widget, Container _container)
Undocumented in source. Be warned that the author may not have intended to support it.
onSetFocusChildListeners
void delegate(Widget, Container)[] onSetFocusChildListeners;
Undocumented in source.
addOnSetFocusChild
void addOnSetFocusChild(void delegate(Widget, Container) dlg, ConnectFlags connectFlags)
callBackSetFocusChild
void callBackSetFocusChild(GtkContainer* containerStruct, GtkWidget* widget, Container _container)
Undocumented in source. Be warned that the author may not have intended to support it.
add
void add(Widget widget)

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.

remove
void remove(Widget widget)

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(). If you don't want to use widget again it's usually more efficient to simply destroy it directly using gtk_widget_destroy() since this will remove it from the container and help break any circular reference count cycles.

getResizeMode
GtkResizeMode getResizeMode()

Returns the resize mode for the container. See gtk_container_set_resize_mode().

setResizeMode
void setResizeMode(GtkResizeMode resizeMode)

Sets the resize mode for the container. The resize mode of a container determines whether a resize request will be passed to the container's parent, queued for later execution or executed immediately.

checkResize
void checkResize()
foreac
void foreac(GtkCallback callback, void* callbackData)

Invokes callback on each non-internal child of container. See gtk_container_forall() for details on what constitutes an "internal" child. Most applications should use gtk_container_foreach(), rather than gtk_container_forall().

foreachFull
void foreachFull(GtkCallback callback, GtkCallbackMarshal marshal, void* callbackData, GDestroyNotify notify)

Warning gtk_container_foreach_full is deprecated and should not be used in newly-written code. Use gtk_container_foreach() instead.

getChildren
ListG getChildren()

Returns the container's non-internal children. See gtk_container_forall() for details on what constitutes an "internal" child.

setReallocateRedraws
void setReallocateRedraws(int needsRedraws)

Sets the reallocate_redraws flag of the container to the given value. Containers requesting reallocation redraws get automatically redrawn if any of their children changed allocation.

getFocusChild
Widget getFocusChild()

Returns the current focus child widget inside container. This is not the currently focused widget. That can be obtained by calling gtk_window_get_focus(). Since 2.14

setFocusChild
void setFocusChild(Widget child)

Sets, or unsets if child is NULL, the focused child of container. This function emits the GtkContainer::set_focus_child signal of container. Implementations of GtkContainer can override the default behaviour by overriding the class closure of this signal. This is function is mostly meant to be used by widgets. Applications can use gtk_widget_grab_focus() to manualy set the focus to a specific widget.

getFocusVadjustment
Adjustment getFocusVadjustment()

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

setFocusVadjustment
void setFocusVadjustment(Adjustment 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.

getFocusHadjustment
Adjustment getFocusHadjustment()

Retrieves the horizontal focus adjustment for the container. See gtk_container_set_focus_hadjustment().

setFocusHadjustment
void setFocusHadjustment(Adjustment 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 horizontal alignment. See gtk_scrolled_window_get_hadjustment() for a typical way of obtaining the adjustment and gtk_container_set_focus_vadjustment() for setting the vertical adjustment. The adjustments have to be in pixel units and in the same coordinate system as the allocation for immediate children of the container.

resizeChildren
void resizeChildren()
childType
GType childType()

Returns the type of the children supported by the container. Note that this may return G_TYPE_NONE to indicate that no more children can be added, e.g. for a GtkPaned which already has two children.

childGetProperty
void childGetProperty(Widget child, string propertyName, Value value)

Gets the value of a child property for child and container.

childSetProperty
void childSetProperty(Widget child, string propertyName, Value value)

Sets a child property for child and container.

childGetValist
void childGetValist(Widget child, string firstPropertyName, void* varArgs)

Gets the values of one or more child properties for child and container.

childSetValist
void childSetValist(Widget child, string firstPropertyName, void* varArgs)

Sets one or more child properties for child and container.

forall
void forall(GtkCallback callback, void* callbackData)

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().

getBorderWidth
uint getBorderWidth()

Retrieves the border width of the container. See gtk_container_set_border_width().

setBorderWidth
void setBorderWidth(uint borderWidth)

Sets the border width of the container. 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_size_request() to give it a size, and place it on the side of the container as a spacer.

propagateExpose
void propagateExpose(Widget child, GdkEventExpose* event)

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, calls 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. Note that the ::expose-event signal has been replaced by a ::draw signal in GTK+ 3, and consequently, gtk_container_propagate_expose() has been replaced by gtk_container_propagate_draw(). The GTK+ 3 migration guide for hints on how to port from ::expose-event to ::draw.

getFocusChain
int getFocusChain(ListG focusableWidgets)

Retrieves the focus chain of the container, if one has been set explicitly. If no focus chain has been explicitly set, GTK+ computes the focus chain based on the positions of the children. In that case, GTK+ stores NULL in focusable_widgets and returns FALSE.

setFocusChain
void setFocusChain(ListG focusableWidgets)

Sets a focus chain, overriding the one computed automatically by GTK+. In principle each widget in the chain should be a descendant of the container, but this is not enforced by this method, since it's allowed to set the focus chain before you pack the widgets, or have a widget in the chain that isn't always packed. The necessary checks are done when the focus chain is actually traversed.

unsetFocusChain
void unsetFocusChain()

Removes a focus chain explicitly set with gtk_container_set_focus_chain().

classFindChildProperty
ParamSpec classFindChildProperty(GObjectClass* cclass, string propertyName)

Finds a child property of a container class by name.

classInstallChildProperty
void classInstallChildProperty(Container cclass, uint propertyId, ParamSpec pspec)

Installs a child property on a container class.

classListChildProperties
ParamSpec[] classListChildProperties(GObjectClass* cclass)

Returns all child properties of a container class.

From CellLayoutIF

getCellLayoutTStruct
GtkCellLayout* getCellLayoutTStruct()
Undocumented in source.
getStruct
void* getStruct()

the main Gtk struct as a void*

packStart
void packStart(CellRenderer cell, int expand)

Packs the cell into the beginning of cell_layout. If expand is FALSE, then the cell is allocated no more space than it needs. Any unused space is divided evenly between cells for which expand is TRUE. Note that reusing the same cell renderer is not supported. Since 2.4

packEnd
void packEnd(CellRenderer cell, int expand)

Adds the cell to the end of cell_layout. If expand is FALSE, then the cell is allocated no more space than it needs. Any unused space is divided evenly between cells for which expand is TRUE. Note that reusing the same cell renderer is not supported. Since 2.4

getCells
ListG getCells()

Returns the cell renderers which have been added to cell_layout. Since 2.12

reorder
void reorder(CellRenderer cell, int position)

Re-inserts cell at position. Note that cell has already to be packed into cell_layout for this to function properly. Since 2.4

clear
void clear()

Unsets all the mappings on all renderers on cell_layout and removes all renderers from cell_layout. Since 2.4

addAttribute
void addAttribute(CellRenderer cell, string attribute, int column)

Adds an attribute mapping to the list in cell_layout. The column is the column of the model to get a value from, and the attribute is the parameter on cell to be set from the value. So for example if column 2 of the model contains strings, you could have the "text" attribute of a GtkCellRendererText get its values from column 2. Since 2.4

setCellDataFunc
void setCellDataFunc(CellRenderer cell, GtkCellLayoutDataFunc func, void* funcData, GDestroyNotify destroy)

Sets the GtkCellLayoutDataFunc to use for cell_layout. This function is used instead of the standard attributes mapping for setting the column value, and should set the value of cell_layout's cell renderer(s) as appropriate. func may be NULL to remove and older one. Since 2.4

clearAttributes
void clearAttributes(CellRenderer cell)

Clears all existing attributes previously set with gtk_cell_layout_set_attributes(). Since 2.4

Meta