TreeListModel.this

Creates a new empty GtkTreeListModel displaying @root with all rows collapsed.

  1. this(GtkTreeListModel* gtkTreeListModel, bool ownedRef)
  2. this(ListModelIF root, bool passthrough, bool autoexpand, GtkTreeListModelCreateModelFunc createFunc, void* userData, GDestroyNotify userDestroy)

Parameters

root ListModelIF

The GListModel to use as root

passthrough bool

%TRUE to pass through items from the models

autoexpand bool

%TRUE to set the autoexpand property and expand the @root model

createFunc GtkTreeListModelCreateModelFunc

Function to call to create the GListModel for the children of an item

userData void*

Data to pass to @create_func

userDestroy GDestroyNotify

Function to call to free @user_data

Return Value

a newly created GtkTreeListModel.

Throws

ConstructionException GTK+ fails to create the object.

Meta