IconView

#GtkIconView provides an alternative view on a #GtkTreeModel. 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.IconView.setSelectionMode). In addition to selection with the arrow keys, #GtkIconView supports rubberband selection, which is controlled by dragging the pointer.

Note that if the tree model is backed by an actual tree store (as opposed to a flat list where the mapping to icons is obvious), #GtkIconView will only display the first level of the tree and ignore the tree’s branches.

CSS nodes

iconview.view
╰── [rubberband]

GtkIconView has a single CSS node with name iconview and style class .view. For rubberband selection, a subnode with name rubberband is used.

class IconView : Container , CellLayout , Scrollable {}

Constructors

this
this(void* ptr, Flag!"Take" take)
this
this()

Creates a new #GtkIconView widget

Members

Functions

connectActivateCursorItem
gulong connectActivateCursorItem(T callback, Flag!"After" after)

Connect to ActivateCursorItem signal.

connectItemActivated
gulong connectItemActivated(T callback, Flag!"After" after)

Connect to ItemActivated signal.

connectMoveCursor
gulong connectMoveCursor(T callback, Flag!"After" after)

Connect to MoveCursor signal.

connectSelectAll
gulong connectSelectAll(T callback, Flag!"After" after)

Connect to SelectAll signal.

connectSelectCursorItem
gulong connectSelectCursorItem(T callback, Flag!"After" after)

Connect to SelectCursorItem signal.

connectSelectionChanged
gulong connectSelectionChanged(T callback, Flag!"After" after)

Connect to SelectionChanged signal.

connectToggleCursorItem
gulong connectToggleCursorItem(T callback, Flag!"After" after)

Connect to ToggleCursorItem signal.

connectUnselectAll
gulong connectUnselectAll(T callback, Flag!"After" after)

Connect to UnselectAll signal.

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.IconView.getPathAtPos.

createDragIcon
cairo.surface.Surface createDragIcon(gtk.tree_path.TreePath path)

Creates a #cairo_surface_t representation of the item at path. This image is used for a drag icon.

enableModelDragDest
void enableModelDragDest(gtk.target_entry.TargetEntry[] targets, gdk.types.DragAction actions)

Turns icon_view into a drop destination for automatic DND. Calling this method sets #GtkIconView:reorderable to false.

enableModelDragSource
void enableModelDragSource(gdk.types.ModifierType startButtonMask, gtk.target_entry.TargetEntry[] targets, gdk.types.DragAction actions)

Turns icon_view into a drag source for automatic DND. Calling this method sets #GtkIconView:reorderable to false.

getActivateOnSingleClick
bool getActivateOnSingleClick()

Gets the setting set by gtk.icon_view.IconView.setActivateOnSingleClick.

getCellRect
bool getCellRect(gtk.tree_path.TreePath path, gtk.cell_renderer.CellRenderer cell, gdk.rectangle.Rectangle rect)

Fills the bounding rectangle in widget coordinates for the cell specified by path and cell. If cell is null the main cell area is used.

getColumnSpacing
int getColumnSpacing()

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

getColumns
int getColumns()

Returns the value of the ::columns property.

getCursor
bool getCursor(gtk.tree_path.TreePath path, gtk.cell_renderer.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.

getDestItemAtPos
bool getDestItemAtPos(int dragX, int dragY, gtk.tree_path.TreePath path, gtk.types.IconViewDropPosition pos)

Determines the destination item for a given position.

getDragDestItem
void getDragDestItem(gtk.tree_path.TreePath path, gtk.types.IconViewDropPosition pos)

Gets information about the item that is highlighted for feedback.

getItemAtPos
bool getItemAtPos(int x, int y, gtk.tree_path.TreePath path, gtk.cell_renderer.CellRenderer cell)

Finds the path at the point (x, y), relative to bin_window coordinates. In contrast to gtk.icon_view.IconView.getPathAtPos, this function also obtains the cell at the specified position. The returned path should be freed with gtk.tree_path.TreePath.free. See gtk.icon_view.IconView.convertWidgetToBinWindowCoords for converting widget coordinates to bin_window coordinates.

getItemColumn
int getItemColumn(gtk.tree_path.TreePath path)

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

getItemOrientation
gtk.types.Orientation getItemOrientation()

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

getItemPadding
int getItemPadding()

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

getItemRow
int getItemRow(gtk.tree_path.TreePath path)

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

getItemWidth
int getItemWidth()

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

getMargin
int getMargin()

Returns the value of the ::margin property.

getMarkupColumn
int getMarkupColumn()

Returns the column with markup text for icon_view.

getModel
gtk.tree_model.TreeModel getModel()

Returns the model the #GtkIconView is based on. Returns null if the model is unset.

getPathAtPos
gtk.tree_path.TreePath getPathAtPos(int x, int y)

Finds the path at the point (x, y), relative to bin_window coordinates. See gtk.icon_view.IconView.getItemAtPos, if you are also interested in the cell at the specified position. See gtk.icon_view.IconView.convertWidgetToBinWindowCoords for converting widget coordinates to bin_window coordinates.

getPixbufColumn
int getPixbufColumn()

Returns the column with pixbufs for icon_view.

getReorderable
bool getReorderable()

Retrieves whether the user can reorder the list via drag-and-drop. See gtk.icon_view.IconView.setReorderable.

getRowSpacing
int getRowSpacing()

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

getSelectedItems
gtk.tree_path.TreePath[] 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.TreeRowReference.new_.

getSelectionMode
gtk.types.SelectionMode getSelectionMode()

Gets the selection mode of the icon_view.

getSpacing
int getSpacing()

Returns the value of the ::spacing property.

getTextColumn
int getTextColumn()

Returns the column with text for icon_view.

getTooltipColumn
int getTooltipColumn()

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

getTooltipContext
bool getTooltipContext(int x, int y, bool keyboardTip, gtk.tree_model.TreeModel model, gtk.tree_path.TreePath path, gtk.tree_iter.TreeIter iter)

This function is supposed to be used in a #GtkWidget::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.

getVisibleRange
bool getVisibleRange(gtk.tree_path.TreePath startPath, gtk.tree_path.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.

itemActivated
void itemActivated(gtk.tree_path.TreePath path)

Activates the item determined by path.

pathIsSelected
bool pathIsSelected(gtk.tree_path.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.

scrollToPath
void scrollToPath(gtk.tree_path.TreePath path, bool 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.

selectAll
void selectAll()

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

selectPath
void selectPath(gtk.tree_path.TreePath path)

Selects the row at path.

selectedForeach
void selectedForeach(gtk.types.IconViewForeachFunc func)

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

self
IconView self()

Returns this, for use in with statements.

setActivateOnSingleClick
void setActivateOnSingleClick(bool single)

Causes the #GtkIconView::item-activated signal to be emitted on a single click instead of a double click.

setColumnSpacing
void setColumnSpacing(int columnSpacing)

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

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.

setCursor
void setCursor(gtk.tree_path.TreePath path, gtk.cell_renderer.CellRenderer cell, bool 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.

setDragDestItem
void setDragDestItem(gtk.tree_path.TreePath path, gtk.types.IconViewDropPosition pos)

Sets the item that is highlighted for feedback.

setItemOrientation
void setItemOrientation(gtk.types.Orientation orientation)

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

setItemPadding
void setItemPadding(int itemPadding)

Sets the #GtkIconView:item-padding property which specifies the padding around each of the icon view’s items.

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.

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.

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.IconView.setTextColumn.

setModel
void setModel(gtk.tree_model.TreeModel 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.

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

setReorderable
void setReorderable(bool 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.

setRowSpacing
void setRowSpacing(int rowSpacing)

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

setSelectionMode
void setSelectionMode(gtk.types.SelectionMode mode)

Sets the selection mode of the icon_view.

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.

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.

setTooltipCell
void setTooltipCell(gtk.tooltip.Tooltip tooltip, gtk.tree_path.TreePath path, gtk.cell_renderer.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.Tooltip.setTipArea.

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.

setTooltipItem
void setTooltipItem(gtk.tooltip.Tooltip tooltip, gtk.tree_path.TreePath path)

Sets the tip area of tooltip to be the area covered by the item at path. See also gtk.icon_view.IconView.setTooltipColumn for a simpler alternative. See also gtk.tooltip.Tooltip.setTipArea.

unselectAll
void unselectAll()

Unselects all the icons.

unselectPath
void unselectPath(gtk.tree_path.TreePath path)

Unselects the row at path.

unsetModelDragDest
void unsetModelDragDest()

Undoes the effect of gtk.icon_view.IconView.enableModelDragDest. Calling this method sets #GtkIconView:reorderable to false.

unsetModelDragSource
void unsetModelDragSource()

Undoes the effect of gtk.icon_view.IconView.enableModelDragSource. Calling this method sets #GtkIconView:reorderable to false.

Properties

_gType
GType _gType [@property getter]
activateOnSingleClick
bool activateOnSingleClick [@property getter]

Get activateOnSingleClick property.

activateOnSingleClick
bool activateOnSingleClick [@property setter]

Set activateOnSingleClick property.

cellArea
gtk.cell_area.CellArea cellArea [@property getter]

Get cellArea property.

columnSpacing
int columnSpacing [@property getter]

Get columnSpacing property.

columnSpacing
int columnSpacing [@property setter]

Set columnSpacing property.

columns
int columns [@property getter]

Get columns property.

columns
int columns [@property setter]

Set columns property.

itemOrientation
gtk.types.Orientation itemOrientation [@property getter]

Get itemOrientation property.

itemOrientation
gtk.types.Orientation itemOrientation [@property setter]

Set itemOrientation property.

itemPadding
int itemPadding [@property getter]

Get itemPadding property.

itemPadding
int itemPadding [@property setter]

Set itemPadding property.

itemWidth
int itemWidth [@property getter]

Get itemWidth property.

itemWidth
int itemWidth [@property setter]

Set itemWidth property.

margin
int margin [@property getter]

Get margin property.

margin
int margin [@property setter]

Set margin property.

markupColumn
int markupColumn [@property getter]

Get markupColumn property.

markupColumn
int markupColumn [@property setter]

Set markupColumn property.

model
gtk.tree_model.TreeModel model [@property getter]
model
gtk.tree_model.TreeModel model [@property setter]
pixbufColumn
int pixbufColumn [@property getter]

Get pixbufColumn property.

pixbufColumn
int pixbufColumn [@property setter]

Set pixbufColumn property.

reorderable
bool reorderable [@property getter]

Get reorderable property.

reorderable
bool reorderable [@property setter]

Set reorderable property.

rowSpacing
int rowSpacing [@property getter]

Get rowSpacing property.

rowSpacing
int rowSpacing [@property setter]

Set rowSpacing property.

selectionMode
gtk.types.SelectionMode selectionMode [@property getter]

Get selectionMode property.

selectionMode
gtk.types.SelectionMode selectionMode [@property setter]

Set selectionMode property.

spacing
int spacing [@property getter]

Get spacing property.

spacing
int spacing [@property setter]

Set spacing property.

textColumn
int textColumn [@property getter]

Get textColumn property.

textColumn
int textColumn [@property setter]

Set textColumn property.

tooltipColumn
int tooltipColumn [@property getter]
tooltipColumn
int tooltipColumn [@property setter]

Static functions

_getGType
GType _getGType()
builder
IconViewGidBuilder builder()

Get builder for gtk.icon_view.IconView

newWithArea
gtk.icon_view.IconView newWithArea(gtk.cell_area.CellArea area)

Creates a new #GtkIconView widget using the specified area to layout cells inside the icons.

newWithModel
gtk.icon_view.IconView newWithModel(gtk.tree_model.TreeModel model)

Creates a new #GtkIconView widget with the model model.

Mixed In Members

From mixin CellLayoutT!()

addAttribute
void addAttribute(gtk.cell_renderer.CellRenderer cell, string attribute, int column)

Adds an attribute mapping to the list in cell_layout.

clear
void clear()

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

clearAttributes
void clearAttributes(gtk.cell_renderer.CellRenderer cell)

Clears all existing attributes previously set with gtk.cell_layout.CellLayout.setAttributes.

getArea
gtk.cell_area.CellArea getArea()

Returns the underlying #GtkCellArea which might be cell_layout if called on a #GtkCellArea or might be null if no #GtkCellArea is used by cell_layout.

getCells
gtk.cell_renderer.CellRenderer[] getCells()

Returns the cell renderers which have been added to cell_layout.

packEnd
void packEnd(gtk.cell_renderer.CellRenderer cell, bool 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.

packStart
void packStart(gtk.cell_renderer.CellRenderer cell, bool 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.

reorder
void reorder(gtk.cell_renderer.CellRenderer cell, int position)

Re-inserts cell at position.

setCellDataFunc
void setCellDataFunc(gtk.cell_renderer.CellRenderer cell, gtk.types.CellLayoutDataFunc func)

Sets the #GtkCellLayoutDataFunc to use for cell_layout.

From mixin ScrollableT!()

hadjustment
gtk.adjustment.Adjustment hadjustment [@property getter]

Get hadjustment property.

hadjustment
gtk.adjustment.Adjustment hadjustment [@property setter]

Set hadjustment property.

hscrollPolicy
gtk.types.ScrollablePolicy hscrollPolicy [@property getter]

Get hscrollPolicy property.

hscrollPolicy
gtk.types.ScrollablePolicy hscrollPolicy [@property setter]

Set hscrollPolicy property.

vadjustment
gtk.adjustment.Adjustment vadjustment [@property getter]

Get vadjustment property.

vadjustment
gtk.adjustment.Adjustment vadjustment [@property setter]

Set vadjustment property.

vscrollPolicy
gtk.types.ScrollablePolicy vscrollPolicy [@property getter]

Get vscrollPolicy property.

vscrollPolicy
gtk.types.ScrollablePolicy vscrollPolicy [@property setter]

Set vscrollPolicy property.

getBorder
bool getBorder(gtk.border.Border border)

Returns the size of a non-scrolling border around the outside of the scrollable. An example for this would be treeview headers. GTK+ can use this information to display overlayed graphics, like the overshoot indication, at the right position.

getHadjustment
gtk.adjustment.Adjustment getHadjustment()

Retrieves the #GtkAdjustment used for horizontal scrolling.

getHscrollPolicy
gtk.types.ScrollablePolicy getHscrollPolicy()

Gets the horizontal #GtkScrollablePolicy.

getVadjustment
gtk.adjustment.Adjustment getVadjustment()

Retrieves the #GtkAdjustment used for vertical scrolling.

getVscrollPolicy
gtk.types.ScrollablePolicy getVscrollPolicy()

Gets the vertical #GtkScrollablePolicy.

setHadjustment
void setHadjustment(gtk.adjustment.Adjustment hadjustment)

Sets the horizontal adjustment of the #GtkScrollable.

setHscrollPolicy
void setHscrollPolicy(gtk.types.ScrollablePolicy policy)

Sets the #GtkScrollablePolicy to determine whether horizontal scrolling should start below the minimum width or below the natural width.

setVadjustment
void setVadjustment(gtk.adjustment.Adjustment vadjustment)

Sets the vertical adjustment of the #GtkScrollable.

setVscrollPolicy
void setVscrollPolicy(gtk.types.ScrollablePolicy policy)

Sets the #GtkScrollablePolicy to determine whether vertical scrolling should start below the minimum height or below the natural height.

Inherited Members

From Container

_getGType
GType _getGType()
_gType
GType _gType [@property getter]
self
Container self()

Returns this, for use in with statements.

builder
ContainerGidBuilder builder()

Get builder for gtk.container.Container

borderWidth
uint borderWidth [@property getter]
borderWidth
uint borderWidth [@property setter]
child
gtk.widget.Widget child [@property setter]
resizeMode
gtk.types.ResizeMode resizeMode [@property getter]
resizeMode
gtk.types.ResizeMode resizeMode [@property setter]
add
void add(gtk.widget.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 #GtkGrid, this function will pick default packing parameters that may not be correct. So consider functions such as gtk.box.Box.packStart and gtk.grid.Grid.attach as an alternative to gtk.container.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.

checkResize
void checkResize()
childGetProperty
void childGetProperty(gtk.widget.Widget child, string propertyName, gobject.value.Value value)

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

childNotify
void childNotify(gtk.widget.Widget child, string childProperty)

Emits a #GtkWidget::child-notify signal for the [child property][child-properties] child_property on the child.

childNotifyByPspec
void childNotifyByPspec(gtk.widget.Widget child, gobject.param_spec.ParamSpec pspec)

Emits a #GtkWidget::child-notify signal for the [child property][child-properties] specified by pspec on the child.

childSetProperty
void childSetProperty(gtk.widget.Widget child, string propertyName, gobject.value.Value value)

Sets a child property for child and container.

childType
gobject.types.GType childType()

Returns the type of the children supported by the container.

forall
void forall(gtk.types.Callback callback)

Invokes callback on each direct 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.

foreach_
void foreach_(gtk.types.Callback callback)

Invokes callback on each non-internal child of container. See gtk.container.Container.forall for details on what constitutes an “internal” child. For all practical purposes, this function should iterate over precisely those child widgets that were added to the container by the application with explicit add() calls.

getBorderWidth
uint getBorderWidth()

Retrieves the border width of the container. See gtk.container.Container.setBorderWidth.

getChildren
gtk.widget.Widget[] getChildren()

Returns the container’s non-internal children. See gtk.container.Container.forall for details on what constitutes an "internal" child.

getFocusChain
bool getFocusChain(gtk.widget.Widget[] 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.

getFocusChild
gtk.widget.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.Window.getFocus.

getFocusHadjustment
gtk.adjustment.Adjustment getFocusHadjustment()

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

getFocusVadjustment
gtk.adjustment.Adjustment getFocusVadjustment()

Retrieves the vertical focus adjustment for the container. See gtk.container.Container.setFocusVadjustment.

getPathForChild
gtk.widget_path.WidgetPath getPathForChild(gtk.widget.Widget child)

Returns a newly created widget path representing all the widget hierarchy from the toplevel down to and including child.

getResizeMode
gtk.types.ResizeMode getResizeMode()

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

propagateDraw
void propagateDraw(gtk.widget.Widget child, cairo.context.Context cr)

When a container receives a call to the draw function, it must send synthetic #GtkWidget::draw calls to all children that don’t have their own #GdkWindows. This function provides a convenient way of doing this. A container, when it receives a call to its #GtkWidget::draw function, calls gtk.container.Container.propagateDraw once for each child, passing in the cr the container received.

remove
void remove(gtk.widget.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 before removing it from a container, using gobject.object.ObjectWrap.ref_. If you don’t want to use widget again it’s usually more efficient to simply destroy it directly using gtk.widget.Widget.destroy since this will remove it from the container and help break any circular reference count cycles.

resizeChildren
void resizeChildren()
setBorderWidth
void setBorderWidth(uint borderWidth)

Sets the border width of the container.

setFocusChain
void setFocusChain(gtk.widget.Widget[] focusableWidgets)

Sets a focus chain, overriding the one computed automatically by GTK+.

setFocusChild
void setFocusChild(gtk.widget.Widget child)

Sets, or unsets if child is null, the focused child of container.

setFocusHadjustment
void setFocusHadjustment(gtk.adjustment.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.ScrolledWindow.getHadjustment for a typical way of obtaining the adjustment and gtk.container.Container.setFocusVadjustment for setting the vertical adjustment.

setFocusVadjustment
void setFocusVadjustment(gtk.adjustment.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.ScrolledWindow.getVadjustment for a typical way of obtaining the adjustment and gtk.container.Container.setFocusHadjustment for setting the horizontal adjustment.

setReallocateRedraws
void setReallocateRedraws(bool needsRedraws)

Sets the reallocate_redraws flag of the container to the given value.

setResizeMode
void setResizeMode(gtk.types.ResizeMode resizeMode)

Sets the resize mode for the container.

unsetFocusChain
void unsetFocusChain()

Removes a focus chain explicitly set with gtk.container.Container.setFocusChain.

connectAdd
gulong connectAdd(T callback, Flag!"After" after)

Connect to Add signal.

connectCheckResize
gulong connectCheckResize(T callback, Flag!"After" after)

Connect to CheckResize signal.

connectRemove
gulong connectRemove(T callback, Flag!"After" after)

Connect to Remove signal.

connectSetFocusChild
gulong connectSetFocusChild(T callback, Flag!"After" after)

Connect to SetFocusChild signal.

From CellLayout

_getGType
GType _getGType()
addAttribute
void addAttribute(gtk.cell_renderer.CellRenderer cell, string attribute, int column)

Adds an attribute mapping to the list in cell_layout.

clear
void clear()

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

clearAttributes
void clearAttributes(gtk.cell_renderer.CellRenderer cell)

Clears all existing attributes previously set with gtk.cell_layout.CellLayout.setAttributes.

getArea
gtk.cell_area.CellArea getArea()

Returns the underlying #GtkCellArea which might be cell_layout if called on a #GtkCellArea or might be null if no #GtkCellArea is used by cell_layout.

getCells
gtk.cell_renderer.CellRenderer[] getCells()

Returns the cell renderers which have been added to cell_layout.

packEnd
void packEnd(gtk.cell_renderer.CellRenderer cell, bool 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.

packStart
void packStart(gtk.cell_renderer.CellRenderer cell, bool 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.

reorder
void reorder(gtk.cell_renderer.CellRenderer cell, int position)

Re-inserts cell at position.

setCellDataFunc
void setCellDataFunc(gtk.cell_renderer.CellRenderer cell, gtk.types.CellLayoutDataFunc func)

Sets the #GtkCellLayoutDataFunc to use for cell_layout.

From Scrollable

_getGType
GType _getGType()
hadjustment
gtk.adjustment.Adjustment hadjustment [@property getter]

Get hadjustment property.

hadjustment
gtk.adjustment.Adjustment hadjustment [@property setter]

Set hadjustment property.

hscrollPolicy
gtk.types.ScrollablePolicy hscrollPolicy [@property getter]

Get hscrollPolicy property.

hscrollPolicy
gtk.types.ScrollablePolicy hscrollPolicy [@property setter]

Set hscrollPolicy property.

vadjustment
gtk.adjustment.Adjustment vadjustment [@property getter]

Get vadjustment property.

vadjustment
gtk.adjustment.Adjustment vadjustment [@property setter]

Set vadjustment property.

vscrollPolicy
gtk.types.ScrollablePolicy vscrollPolicy [@property getter]

Get vscrollPolicy property.

vscrollPolicy
gtk.types.ScrollablePolicy vscrollPolicy [@property setter]

Set vscrollPolicy property.

getBorder
bool getBorder(gtk.border.Border border)

Returns the size of a non-scrolling border around the outside of the scrollable. An example for this would be treeview headers. GTK+ can use this information to display overlayed graphics, like the overshoot indication, at the right position.

getHadjustment
gtk.adjustment.Adjustment getHadjustment()

Retrieves the #GtkAdjustment used for horizontal scrolling.

getHscrollPolicy
gtk.types.ScrollablePolicy getHscrollPolicy()

Gets the horizontal #GtkScrollablePolicy.

getVadjustment
gtk.adjustment.Adjustment getVadjustment()

Retrieves the #GtkAdjustment used for vertical scrolling.

getVscrollPolicy
gtk.types.ScrollablePolicy getVscrollPolicy()

Gets the vertical #GtkScrollablePolicy.

setHadjustment
void setHadjustment(gtk.adjustment.Adjustment hadjustment)

Sets the horizontal adjustment of the #GtkScrollable.

setHscrollPolicy
void setHscrollPolicy(gtk.types.ScrollablePolicy policy)

Sets the #GtkScrollablePolicy to determine whether horizontal scrolling should start below the minimum width or below the natural width.

setVadjustment
void setVadjustment(gtk.adjustment.Adjustment vadjustment)

Sets the vertical adjustment of the #GtkScrollable.

setVscrollPolicy
void setVscrollPolicy(gtk.types.ScrollablePolicy policy)

Sets the #GtkScrollablePolicy to determine whether vertical scrolling should start below the minimum height or below the natural height.