mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-12-29 15:25:36 +00:00
91d63cee7a
svn path=/trunk/gtk-sharp/; revision=71149
1276 lines
50 KiB
XML
1276 lines
50 KiB
XML
<Type Name="IconView" FullName="Gtk.IconView">
|
|
<TypeSignature Language="C#" Maintainer="auto" Value="public class IconView : Gtk.Container, Gtk.CellLayout" />
|
|
<AssemblyInfo>
|
|
<AssemblyName>gtk-sharp</AssemblyName>
|
|
<AssemblyPublicKey>[00 24 00 00 04 80 00 00 94 00 00 00 06 02 00 00 00 24 00 00 52 53 41 31 00 04 00 00 01 00 01 00 71 EB 6C 55 75 52 9C BF 72 44 F7 A6 EA 05 62 84 F9 EA E0 3B CF F2 CC 13 2C 9C 49 0A B3 09 EA B0 B5 6B CE 44 9D F5 03 D9 C0 A8 1E 52 05 85 CD BE 70 E2 FB 90 43 4B AC 04 FA 62 22 A8 00 98 B7 A1 A7 B3 AF 99 1A 41 23 24 BB 43 25 F6 B8 65 BB 64 EB F6 D1 C2 06 D5 73 2D DF BC 70 A7 38 9E E5 3E 0C 24 6E 32 79 74 1A D0 05 03 E4 98 42 E1 9B F3 7B 19 8B 40 21 26 CB 36 89 C2 EA 64 96 A4 7C B4]</AssemblyPublicKey>
|
|
<AssemblyVersion>2.10.0.0</AssemblyVersion>
|
|
</AssemblyInfo>
|
|
<ThreadSafetyStatement>Gtk# is thread aware, but not thread safe; See the <link location="node:gtk-sharp/programming/threads">Gtk# Thread Programming</link> for details.</ThreadSafetyStatement>
|
|
<Docs>
|
|
<summary>A widget which displays a list of icons in a grid</summary>
|
|
<remarks>
|
|
<see cref="T:Gtk.IconView" /> provides an alternative view on a list model. It displays the model as a grid of icons with labels. Like <see cref="T:Gtk.TreeView" />, it allows to select one or multiple items (depending on the selection mode, see <see cref="P:Gtk.IconView.SelectionMode" />). In addition to selection with the arrow keys, <see cref="T:Gtk.IconView" /> supports rubberband selection, which is controlled by dragging the pointer.</remarks>
|
|
<example>
|
|
<code lang="C#">
|
|
using System;
|
|
using System.IO;
|
|
using Gtk;
|
|
|
|
public class DemoIconView : Window
|
|
{
|
|
const int COL_PATH = 0;
|
|
const int COL_DISPLAY_NAME = 1;
|
|
const int COL_PIXBUF = 2;
|
|
const int COL_IS_DIRECTORY = 3;
|
|
|
|
DirectoryInfo parent = new DirectoryInfo ("/");
|
|
Gdk.Pixbuf dirIcon, fileIcon;
|
|
ListStore store;
|
|
ToolButton upButton;
|
|
|
|
static void Main ()
|
|
{
|
|
Application.Init ();
|
|
new DemoIconView ();
|
|
Application.Run ();
|
|
}
|
|
|
|
public DemoIconView () : base ("Gtk.IconView demo")
|
|
{
|
|
SetDefaultSize (650, 400);
|
|
DeleteEvent += new DeleteEventHandler (OnWinDelete);
|
|
|
|
VBox vbox = new VBox (false, 0);
|
|
Add (vbox);
|
|
|
|
Toolbar toolbar = new Toolbar ();
|
|
vbox.PackStart (toolbar, false, false, 0);
|
|
|
|
upButton = new ToolButton (Stock.GoUp);
|
|
upButton.IsImportant = true;
|
|
upButton.Sensitive = false;
|
|
toolbar.Insert (upButton, -1);
|
|
|
|
ToolButton homeButton = new ToolButton (Stock.Home);
|
|
homeButton.IsImportant = true;
|
|
toolbar.Insert (homeButton, -1);
|
|
|
|
fileIcon = GetIcon ("gnome-fs-regular");
|
|
dirIcon = GetIcon ("gnome-fs-directory");
|
|
|
|
ScrolledWindow sw = new ScrolledWindow ();
|
|
sw.ShadowType = ShadowType.EtchedIn;
|
|
sw.SetPolicy (PolicyType.Automatic, PolicyType.Automatic);
|
|
vbox.PackStart (sw, true, true, 0);
|
|
|
|
// Create the store and fill it with the contents of '/'
|
|
store = CreateStore ();
|
|
FillStore ();
|
|
|
|
IconView iconView = new IconView (store);
|
|
iconView.SelectionMode = SelectionMode.Multiple;
|
|
|
|
upButton.Clicked += OnUpClicked;
|
|
homeButton.Clicked += OnHomeClicked;
|
|
|
|
iconView.TextColumn = COL_DISPLAY_NAME;
|
|
iconView.PixbufColumn = COL_PIXBUF;
|
|
|
|
iconView.ItemActivated += new ItemActivatedHandler (OnItemActivated);
|
|
sw.Add (iconView);
|
|
iconView.GrabFocus ();
|
|
|
|
ShowAll ();
|
|
}
|
|
|
|
Gdk.Pixbuf GetIcon (string name)
|
|
{
|
|
return Gtk.IconTheme.Default.LoadIcon (name, 48, (IconLookupFlags) 0);
|
|
}
|
|
|
|
ListStore CreateStore ()
|
|
{
|
|
// path, name, pixbuf, is_dir
|
|
ListStore store = new ListStore (typeof (string), typeof (string), typeof (Gdk.Pixbuf), typeof (bool));
|
|
|
|
// Set sort column and function
|
|
store.DefaultSortFunc = SortFunc;
|
|
store.SetSortColumnId (COL_DISPLAY_NAME, SortType.Ascending);
|
|
|
|
return store;
|
|
}
|
|
|
|
void FillStore ()
|
|
{
|
|
// first clear the store
|
|
store.Clear ();
|
|
|
|
// Now go through the directory and extract all the file information
|
|
if (!parent.Exists)
|
|
return;
|
|
|
|
foreach (DirectoryInfo di in parent.GetDirectories ())
|
|
{
|
|
if (!di.Name.StartsWith ("."))
|
|
store.AppendValues (di.FullName, di.Name, dirIcon, true);
|
|
}
|
|
|
|
foreach (FileInfo file in parent.GetFiles ())
|
|
{
|
|
if (!file.Name.StartsWith ("."))
|
|
store.AppendValues (file.FullName, file.Name, fileIcon, false);
|
|
}
|
|
}
|
|
|
|
int SortFunc (TreeModel model, TreeIter a, TreeIter b)
|
|
{
|
|
// sorts folders before files
|
|
bool a_is_dir = (bool) model.GetValue (a, COL_IS_DIRECTORY);
|
|
bool b_is_dir = (bool) model.GetValue (b, COL_IS_DIRECTORY);
|
|
string a_name = (string) model.GetValue (a, COL_DISPLAY_NAME);
|
|
string b_name = (string) model.GetValue (b, COL_DISPLAY_NAME);
|
|
|
|
if (!a_is_dir && b_is_dir)
|
|
return 1;
|
|
else if (a_is_dir && !b_is_dir)
|
|
return -1;
|
|
else
|
|
return String.Compare (a_name, b_name);
|
|
}
|
|
|
|
void OnHomeClicked (object sender, EventArgs a)
|
|
{
|
|
parent = new DirectoryInfo (Environment.GetFolderPath (Environment.SpecialFolder.Personal));
|
|
FillStore ();
|
|
upButton.Sensitive = true;
|
|
}
|
|
|
|
void OnItemActivated (object sender, ItemActivatedArgs a)
|
|
{
|
|
TreeIter iter;
|
|
store.GetIter (out iter, a.Path);
|
|
string path = (string) store.GetValue (iter, COL_PATH);
|
|
bool isDir = (bool) store.GetValue (iter, COL_IS_DIRECTORY);
|
|
|
|
if (!isDir)
|
|
return;
|
|
|
|
// Replace parent with path and re-fill the model
|
|
parent = new DirectoryInfo (path);
|
|
FillStore ();
|
|
|
|
// Sensitize the up button
|
|
upButton.Sensitive = true;
|
|
}
|
|
|
|
void OnUpClicked (object sender, EventArgs a)
|
|
{
|
|
parent = parent.Parent;
|
|
FillStore ();
|
|
upButton.Sensitive = (parent.FullName == "/" ? false : true);
|
|
}
|
|
|
|
void OnWinDelete (object sender, DeleteEventArgs a)
|
|
{
|
|
Application.Quit ();
|
|
a.RetVal = true;
|
|
}
|
|
}
|
|
</code>
|
|
</example>
|
|
<since version="Gtk# 2.6" />
|
|
</Docs>
|
|
<Base>
|
|
<BaseTypeName>Gtk.Container</BaseTypeName>
|
|
</Base>
|
|
<Interfaces>
|
|
<Interface>
|
|
<InterfaceName>Gtk.CellLayout</InterfaceName>
|
|
</Interface>
|
|
</Interfaces>
|
|
<Members>
|
|
<Member MemberName="OnSelectionChanged">
|
|
<MemberSignature Language="C#" Value="protected virtual void OnSelectionChanged ();" />
|
|
<MemberType>Method</MemberType>
|
|
<ReturnValue>
|
|
<ReturnType>System.Void</ReturnType>
|
|
</ReturnValue>
|
|
<Parameters />
|
|
<Docs>
|
|
<summary>Default handler for the <see cref="M:Gtk.IconView.SelectionChanged" /> event.</summary>
|
|
<remarks>Override this method in a subclass to provide a default handler for the <see cref="M:Gtk.IconView.SelectionChanged" /> event.</remarks>
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName="OnAllUnselected">
|
|
<MemberSignature Language="C#" Value="protected virtual void OnAllUnselected ();" />
|
|
<MemberType>Method</MemberType>
|
|
<ReturnValue>
|
|
<ReturnType>System.Void</ReturnType>
|
|
</ReturnValue>
|
|
<Parameters />
|
|
<Docs>
|
|
<summary>Default handler for the <see cref="M:Gtk.IconView.AllUnselected" /> event.</summary>
|
|
<remarks>Override this method in a subclass to provide a default handler for the <see cref="M:Gtk.IconView.AllUnselected" /> event.</remarks>
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName="OnItemActivated">
|
|
<MemberSignature Language="C#" Value="protected virtual void OnItemActivated (Gtk.TreePath path);" />
|
|
<MemberType>Method</MemberType>
|
|
<ReturnValue>
|
|
<ReturnType>System.Void</ReturnType>
|
|
</ReturnValue>
|
|
<Parameters>
|
|
<Parameter Name="path" Type="Gtk.TreePath" />
|
|
</Parameters>
|
|
<Docs>
|
|
<summary>Default handler for the <see cref="M:Gtk.IconView.ItemActivated" /> event.</summary>
|
|
<param name="path">a <see cref="T:Gtk.TreePath" /></param>
|
|
<remarks>Override this method in a subclass to provide a default handler for the <see cref="M:Gtk.IconView.ItemActivated" /> event.</remarks>
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName="OnAllSelected">
|
|
<MemberSignature Language="C#" Value="protected virtual void OnAllSelected ();" />
|
|
<MemberType>Method</MemberType>
|
|
<ReturnValue>
|
|
<ReturnType>System.Void</ReturnType>
|
|
</ReturnValue>
|
|
<Parameters />
|
|
<Docs>
|
|
<summary>Default handler for the <see cref="M:Gtk.IconView.AllSelected" /> event.</summary>
|
|
<remarks>Override this method in a subclass to provide a default handler for the <see cref="M:Gtk.IconView.AllSelected" /> event.</remarks>
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName="OnToggleCursorItem">
|
|
<MemberSignature Language="C#" Value="protected virtual void OnToggleCursorItem ();" />
|
|
<MemberType>Method</MemberType>
|
|
<ReturnValue>
|
|
<ReturnType>System.Void</ReturnType>
|
|
</ReturnValue>
|
|
<Parameters />
|
|
<Docs>
|
|
<summary>Default handler for the <see cref="M:Gtk.IconView.ToggleCursorItem" /> event.</summary>
|
|
<remarks>Override this method in a subclass to provide a default handler for the <see cref="M:Gtk.IconView.ToggleCursorItem" /> event.</remarks>
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName="OnMoveCursor">
|
|
<MemberSignature Language="C#" Value="protected virtual bool OnMoveCursor (Gtk.MovementStep step, int count);" />
|
|
<MemberType>Method</MemberType>
|
|
<ReturnValue>
|
|
<ReturnType>System.Boolean</ReturnType>
|
|
</ReturnValue>
|
|
<Parameters>
|
|
<Parameter Name="step" Type="Gtk.MovementStep" />
|
|
<Parameter Name="count" Type="System.Int32" />
|
|
</Parameters>
|
|
<Docs>
|
|
<summary>Default handler for the <see cref="M:Gtk.IconView.MoveCursor" /> event.</summary>
|
|
<param name="step">a <see cref="T:System.Int32" /></param>
|
|
<param name="count">a <see cref="T:System.Int32" /></param>
|
|
<returns>a <see cref="T:System.Boolean" /></returns>
|
|
<remarks>Override this method in a subclass to provide a default handler for the <see cref="M:Gtk.IconView.MoveCursor" /> event.</remarks>
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName="OnActivateCursorItem">
|
|
<MemberSignature Language="C#" Value="protected virtual bool OnActivateCursorItem ();" />
|
|
<MemberType>Method</MemberType>
|
|
<ReturnValue>
|
|
<ReturnType>System.Boolean</ReturnType>
|
|
</ReturnValue>
|
|
<Parameters />
|
|
<Docs>
|
|
<summary>Default handler for the <see cref="M:Gtk.IconView.ActivateCursorItem" /> event.</summary>
|
|
<returns>a <see cref="T:System.Boolean" /></returns>
|
|
<remarks>Override this method in a subclass to provide a default handler for the <see cref="M:Gtk.IconView.ActivateCursorItem" /> event.</remarks>
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName="OnSelectCursorItem">
|
|
<MemberSignature Language="C#" Value="protected virtual void OnSelectCursorItem ();" />
|
|
<MemberType>Method</MemberType>
|
|
<ReturnValue>
|
|
<ReturnType>System.Void</ReturnType>
|
|
</ReturnValue>
|
|
<Parameters />
|
|
<Docs>
|
|
<summary>Default handler for the <see cref="M:Gtk.IconView.SelectCursorItem" /> event.</summary>
|
|
<remarks>Override this method in a subclass to provide a default handler for the <see cref="M:Gtk.IconView.SelectCursorItem" /> event.</remarks>
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName="UnselectAll">
|
|
<MemberSignature Language="C#" Value="public void UnselectAll ();" />
|
|
<MemberType>Method</MemberType>
|
|
<ReturnValue>
|
|
<ReturnType>System.Void</ReturnType>
|
|
</ReturnValue>
|
|
<Parameters />
|
|
<Docs>
|
|
<summary>Unselects all the icons.</summary>
|
|
<remarks />
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName="SelectedForeach">
|
|
<MemberSignature Language="C#" Value="public void SelectedForeach (Gtk.IconViewForeachFunc func);" />
|
|
<MemberType>Method</MemberType>
|
|
<ReturnValue>
|
|
<ReturnType>System.Void</ReturnType>
|
|
</ReturnValue>
|
|
<Parameters>
|
|
<Parameter Name="func" Type="Gtk.IconViewForeachFunc" />
|
|
</Parameters>
|
|
<Docs>
|
|
<summary>Calls a function for each selected icon.</summary>
|
|
<param name="func">a <see cref="T:Gtk.IconViewForeachFunc" /></param>
|
|
<remarks>Note that the model or selection cannot be modified from within this function.</remarks>
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName="UnselectPath">
|
|
<MemberSignature Language="C#" Value="public void UnselectPath (Gtk.TreePath path);" />
|
|
<MemberType>Method</MemberType>
|
|
<ReturnValue>
|
|
<ReturnType>System.Void</ReturnType>
|
|
</ReturnValue>
|
|
<Parameters>
|
|
<Parameter Name="path" Type="Gtk.TreePath" />
|
|
</Parameters>
|
|
<Docs>
|
|
<summary>Unselects the row at <paramref name="path" />.</summary>
|
|
<param name="path">a <see cref="T:Gtk.TreePath" /></param>
|
|
<remarks />
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName="SelectAll">
|
|
<MemberSignature Language="C#" Value="public void SelectAll ();" />
|
|
<MemberType>Method</MemberType>
|
|
<ReturnValue>
|
|
<ReturnType>System.Void</ReturnType>
|
|
</ReturnValue>
|
|
<Parameters />
|
|
<Docs>
|
|
<summary>Selects all the icons.</summary>
|
|
<remarks>The IconView must has its selection mode set to <see cref="F:Gtk.SelectionMode.Multiple" />.</remarks>
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName="PathIsSelected">
|
|
<MemberSignature Language="C#" Value="public bool PathIsSelected (Gtk.TreePath path);" />
|
|
<MemberType>Method</MemberType>
|
|
<ReturnValue>
|
|
<ReturnType>System.Boolean</ReturnType>
|
|
</ReturnValue>
|
|
<Parameters>
|
|
<Parameter Name="path" Type="Gtk.TreePath" />
|
|
</Parameters>
|
|
<Docs>
|
|
<summary>Returns <see langword="true" /> if the icon pointed to by <paramref name="path" /> is currently selected.</summary>
|
|
<param name="path">a <see cref="T:Gtk.TreePath" /></param>
|
|
<returns>a <see cref="T:System.Boolean" /></returns>
|
|
<remarks>If <paramref name="path" /> does not point to a valid location, <see langword="false" /> is returned.</remarks>
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName="GetPathAtPos">
|
|
<MemberSignature Language="C#" Value="public Gtk.TreePath GetPathAtPos (int x, int y);" />
|
|
<MemberType>Method</MemberType>
|
|
<ReturnValue>
|
|
<ReturnType>Gtk.TreePath</ReturnType>
|
|
</ReturnValue>
|
|
<Parameters>
|
|
<Parameter Name="x" Type="System.Int32" />
|
|
<Parameter Name="y" Type="System.Int32" />
|
|
</Parameters>
|
|
<Docs>
|
|
<summary>To be added</summary>
|
|
<param name="x">a <see cref="T:System.Int32" /></param>
|
|
<param name="y">a <see cref="T:System.Int32" /></param>
|
|
<returns>a <see cref="T:Gtk.TreePath" /></returns>
|
|
<remarks>To be added</remarks>
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName="ActivateItem">
|
|
<MemberSignature Language="C#" Value="public void ActivateItem (Gtk.TreePath path);" />
|
|
<MemberType>Method</MemberType>
|
|
<ReturnValue>
|
|
<ReturnType>System.Void</ReturnType>
|
|
</ReturnValue>
|
|
<Parameters>
|
|
<Parameter Name="path" Type="Gtk.TreePath" />
|
|
</Parameters>
|
|
<Docs>
|
|
<summary>Activates the item determined by <paramref name="path" />.</summary>
|
|
<param name="path">a <see cref="T:Gtk.TreePath" /></param>
|
|
<remarks />
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName="SelectPath">
|
|
<MemberSignature Language="C#" Value="public void SelectPath (Gtk.TreePath path);" />
|
|
<MemberType>Method</MemberType>
|
|
<ReturnValue>
|
|
<ReturnType>System.Void</ReturnType>
|
|
</ReturnValue>
|
|
<Parameters>
|
|
<Parameter Name="path" Type="Gtk.TreePath" />
|
|
</Parameters>
|
|
<Docs>
|
|
<summary>Selects the row at <paramref name="path" />.</summary>
|
|
<param name="path">a <see cref="T:Gtk.TreePath" /></param>
|
|
<remarks />
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName=".ctor">
|
|
<MemberSignature Language="C#" Value="protected IconView (GLib.GType gtype);" />
|
|
<MemberType>Constructor</MemberType>
|
|
<ReturnValue />
|
|
<Parameters>
|
|
<Parameter Name="gtype" Type="GLib.GType" />
|
|
</Parameters>
|
|
<Docs>
|
|
<summary>Protected Constructor.</summary>
|
|
<param name="gtype">a <see cref="T:GLib.GType" /></param>
|
|
<remarks>Chain to this constructor if you have manually registered a native <see cref="T:GLib.GType" /> value for your subclass.</remarks>
|
|
</Docs>
|
|
<Attributes>
|
|
<Attribute>
|
|
<AttributeName>System.Obsolete</AttributeName>
|
|
</Attribute>
|
|
</Attributes>
|
|
</Member>
|
|
<Member MemberName=".ctor">
|
|
<MemberSignature Language="C#" Value="public IconView (IntPtr raw);" />
|
|
<MemberType>Constructor</MemberType>
|
|
<ReturnValue />
|
|
<Parameters>
|
|
<Parameter Name="raw" Type="System.IntPtr" />
|
|
</Parameters>
|
|
<Docs>
|
|
<summary>Internal constructor</summary>
|
|
<param name="raw">a <see cref="T:System.IntPtr" /></param>
|
|
<remarks>This is not typically used by C# code.</remarks>
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName=".ctor">
|
|
<MemberSignature Language="C#" Value="public IconView ();" />
|
|
<MemberType>Constructor</MemberType>
|
|
<ReturnValue />
|
|
<Parameters />
|
|
<Docs>
|
|
<summary>Default constructor</summary>
|
|
<remarks />
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName=".ctor">
|
|
<MemberSignature Language="C#" Value="public IconView (Gtk.TreeModel model);" />
|
|
<MemberType>Constructor</MemberType>
|
|
<ReturnValue />
|
|
<Parameters>
|
|
<Parameter Name="model" Type="Gtk.TreeModel" />
|
|
</Parameters>
|
|
<Docs>
|
|
<summary>Create a new IconView with a model.</summary>
|
|
<param name="model">a <see cref="T:Gtk.TreeModel" /></param>
|
|
<remarks />
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName="GType">
|
|
<MemberSignature Language="C#" Value="public static GLib.GType GType { get; };" />
|
|
<MemberType>Property</MemberType>
|
|
<ReturnValue>
|
|
<ReturnType>GLib.GType</ReturnType>
|
|
</ReturnValue>
|
|
<Parameters />
|
|
<Docs>
|
|
<summary>GType Property.</summary>
|
|
<value>a <see cref="T:GLib.GType" /></value>
|
|
<remarks>Returns the native <see cref="T:GLib.GType" /> value for <see cref="T:Gtk.IconView" />.</remarks>
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName="SelectionMode">
|
|
<MemberSignature Language="C#" Value="public Gtk.SelectionMode SelectionMode { set; get; };" />
|
|
<MemberType>Property</MemberType>
|
|
<ReturnValue>
|
|
<ReturnType>Gtk.SelectionMode</ReturnType>
|
|
</ReturnValue>
|
|
<Parameters />
|
|
<Docs>
|
|
<summary>Specifies the selection mode of icon view.</summary>
|
|
<value>a <see cref="T:Gtk.SelectionMode" /></value>
|
|
<remarks>If the mode is <see cref="F:Gtk.SelectionMode.Multiple" />, rubberband selection is enabled, for the other modes, only keyboard selection is possible.</remarks>
|
|
</Docs>
|
|
<Attributes>
|
|
<Attribute>
|
|
<AttributeName>GLib.Property("selection-mode")</AttributeName>
|
|
</Attribute>
|
|
</Attributes>
|
|
</Member>
|
|
<Member MemberName="Columns">
|
|
<MemberSignature Language="C#" Value="public int Columns { set; get; };" />
|
|
<MemberType>Property</MemberType>
|
|
<ReturnValue>
|
|
<ReturnType>System.Int32</ReturnType>
|
|
</ReturnValue>
|
|
<Parameters />
|
|
<Docs>
|
|
<summary>The columns property contains the number of the columns in which the items should be displayed.</summary>
|
|
<value>a <see cref="T:System.Int32" /></value>
|
|
<remarks>If it is -1, the number of columns will be chosen automatically to fill the available area.</remarks>
|
|
</Docs>
|
|
<Attributes>
|
|
<Attribute>
|
|
<AttributeName>GLib.Property("columns")</AttributeName>
|
|
</Attribute>
|
|
</Attributes>
|
|
</Member>
|
|
<Member MemberName="Margin">
|
|
<MemberSignature Language="C#" Value="public int Margin { set; get; };" />
|
|
<MemberType>Property</MemberType>
|
|
<ReturnValue>
|
|
<ReturnType>System.Int32</ReturnType>
|
|
</ReturnValue>
|
|
<Parameters />
|
|
<Docs>
|
|
<summary>Space which is inserted at the edges of the icon view.</summary>
|
|
<value>a <see cref="T:System.Int32" /></value>
|
|
<remarks>Default value is 6.</remarks>
|
|
</Docs>
|
|
<Attributes>
|
|
<Attribute>
|
|
<AttributeName>GLib.Property("margin")</AttributeName>
|
|
</Attribute>
|
|
</Attributes>
|
|
</Member>
|
|
<Member MemberName="Orientation">
|
|
<MemberSignature Language="C#" Value="public Gtk.Orientation Orientation { set; get; };" />
|
|
<MemberType>Property</MemberType>
|
|
<ReturnValue>
|
|
<ReturnType>Gtk.Orientation</ReturnType>
|
|
</ReturnValue>
|
|
<Parameters />
|
|
<Docs>
|
|
<summary>How the text and icon of each item are positioned relative to each other.
|
|
|
|
</summary>
|
|
<value>a <see cref="T:Gtk.Orientation" /></value>
|
|
<remarks>Default value is <see cref="F:Gtk.Orientation.Vertical" /></remarks>
|
|
</Docs>
|
|
<Attributes>
|
|
<Attribute>
|
|
<AttributeName>GLib.Property("orientation")</AttributeName>
|
|
</Attribute>
|
|
</Attributes>
|
|
</Member>
|
|
<Member MemberName="ItemWidth">
|
|
<MemberSignature Language="C#" Value="public int ItemWidth { set; get; };" />
|
|
<MemberType>Property</MemberType>
|
|
<ReturnValue>
|
|
<ReturnType>System.Int32</ReturnType>
|
|
</ReturnValue>
|
|
<Parameters />
|
|
<Docs>
|
|
<summary>The width used for each item.</summary>
|
|
<value>a <see cref="T:System.Int32" /></value>
|
|
<remarks />
|
|
</Docs>
|
|
<Attributes>
|
|
<Attribute>
|
|
<AttributeName>GLib.Property("item-width")</AttributeName>
|
|
</Attribute>
|
|
</Attributes>
|
|
</Member>
|
|
<Member MemberName="TextColumn">
|
|
<MemberSignature Language="C#" Value="public int TextColumn { set; get; };" />
|
|
<MemberType>Property</MemberType>
|
|
<ReturnValue>
|
|
<ReturnType>System.Int32</ReturnType>
|
|
</ReturnValue>
|
|
<Parameters />
|
|
<Docs>
|
|
<summary>Contains the number of the model column containing the texts which are displayed.</summary>
|
|
<value>a <see cref="T:System.Int32" /></value>
|
|
<remarks>The text column must be of type <see cref="F:GLib.GType.String" />. If this property and the MarkupColumn property are both set to -1, no text is displayed.</remarks>
|
|
</Docs>
|
|
<Attributes>
|
|
<Attribute>
|
|
<AttributeName>GLib.Property("text-column")</AttributeName>
|
|
</Attribute>
|
|
</Attributes>
|
|
</Member>
|
|
<Member MemberName="Spacing">
|
|
<MemberSignature Language="C#" Value="public int Spacing { set; get; };" />
|
|
<MemberType>Property</MemberType>
|
|
<ReturnValue>
|
|
<ReturnType>System.Int32</ReturnType>
|
|
</ReturnValue>
|
|
<Parameters />
|
|
<Docs>
|
|
<summary>Space which is inserted between cells of an item.</summary>
|
|
<value>a <see cref="T:System.Int32" /></value>
|
|
<remarks>To be added</remarks>
|
|
</Docs>
|
|
<Attributes>
|
|
<Attribute>
|
|
<AttributeName>GLib.Property("spacing")</AttributeName>
|
|
</Attribute>
|
|
</Attributes>
|
|
</Member>
|
|
<Member MemberName="PixbufColumn">
|
|
<MemberSignature Language="C#" Value="public int PixbufColumn { set; get; };" />
|
|
<MemberType>Property</MemberType>
|
|
<ReturnValue>
|
|
<ReturnType>System.Int32</ReturnType>
|
|
</ReturnValue>
|
|
<Parameters />
|
|
<Docs>
|
|
<summary>Contains the number of the model column containing the pixbufs which are displayed</summary>
|
|
<value>a <see cref="T:System.Int32" /></value>
|
|
<remarks>The pixbuf column must be of type <see cref="P:Gdk.Pixbuf.GType" />. Setting this property to -1 turns off the display of pixbufs.</remarks>
|
|
</Docs>
|
|
<Attributes>
|
|
<Attribute>
|
|
<AttributeName>GLib.Property("pixbuf-column")</AttributeName>
|
|
</Attribute>
|
|
</Attributes>
|
|
</Member>
|
|
<Member MemberName="RowSpacing">
|
|
<MemberSignature Language="C#" Value="public int RowSpacing { set; get; };" />
|
|
<MemberType>Property</MemberType>
|
|
<ReturnValue>
|
|
<ReturnType>System.Int32</ReturnType>
|
|
</ReturnValue>
|
|
<Parameters />
|
|
<Docs>
|
|
<summary>Space which is inserted between grid rows.</summary>
|
|
<value>a <see cref="T:System.Int32" /></value>
|
|
<remarks>Default value is 6.</remarks>
|
|
</Docs>
|
|
<Attributes>
|
|
<Attribute>
|
|
<AttributeName>GLib.Property("row-spacing")</AttributeName>
|
|
</Attribute>
|
|
</Attributes>
|
|
</Member>
|
|
<Member MemberName="ColumnSpacing">
|
|
<MemberSignature Language="C#" Value="public int ColumnSpacing { set; get; };" />
|
|
<MemberType>Property</MemberType>
|
|
<ReturnValue>
|
|
<ReturnType>System.Int32</ReturnType>
|
|
</ReturnValue>
|
|
<Parameters />
|
|
<Docs>
|
|
<summary>Space which is inserted between grid column.</summary>
|
|
<value>a <see cref="T:System.Int32" /></value>
|
|
<remarks>Default value is 6.</remarks>
|
|
</Docs>
|
|
<Attributes>
|
|
<Attribute>
|
|
<AttributeName>GLib.Property("column-spacing")</AttributeName>
|
|
</Attribute>
|
|
</Attributes>
|
|
</Member>
|
|
<Member MemberName="MarkupColumn">
|
|
<MemberSignature Language="C#" Value="public int MarkupColumn { set; get; };" />
|
|
<MemberType>Property</MemberType>
|
|
<ReturnValue>
|
|
<ReturnType>System.Int32</ReturnType>
|
|
</ReturnValue>
|
|
<Parameters />
|
|
<Docs>
|
|
<summary>Contains the number of the model column containing markup information to be displayed.</summary>
|
|
<value>a <see cref="T:System.Int32" /></value>
|
|
<remarks>The markup column must be of type <see cref="F:GLib.GType.String" />. If this property and the TextColumn property are both set to column numbers, it overrides the text column. If both are set to -1, no texts are displayed.</remarks>
|
|
</Docs>
|
|
<Attributes>
|
|
<Attribute>
|
|
<AttributeName>GLib.Property("markup-column")</AttributeName>
|
|
</Attribute>
|
|
</Attributes>
|
|
</Member>
|
|
<Member MemberName="Model">
|
|
<MemberSignature Language="C#" Value="public Gtk.TreeModel Model { set; get; };" />
|
|
<MemberType>Property</MemberType>
|
|
<ReturnValue>
|
|
<ReturnType>Gtk.TreeModel</ReturnType>
|
|
</ReturnValue>
|
|
<Parameters />
|
|
<Docs>
|
|
<summary>The model for the icon view.</summary>
|
|
<value>a <see cref="T:Gtk.TreeModel" /></value>
|
|
<remarks />
|
|
</Docs>
|
|
<Attributes>
|
|
<Attribute>
|
|
<AttributeName>GLib.Property("model")</AttributeName>
|
|
</Attribute>
|
|
</Attributes>
|
|
</Member>
|
|
<Member MemberName="SelectedItems">
|
|
<MemberSignature Language="C#" Value="public Gtk.TreePath[] SelectedItems { get; };" />
|
|
<MemberType>Property</MemberType>
|
|
<ReturnValue>
|
|
<ReturnType>Gtk.TreePath[]</ReturnType>
|
|
</ReturnValue>
|
|
<Parameters />
|
|
<Docs>
|
|
<summary>Creates a list of paths of all selected items.</summary>
|
|
<value>a <see cref="T:GLib.List" /></value>
|
|
<remarks />
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName="SelectionChanged">
|
|
<MemberSignature Language="C#" Value="public event EventHandler SelectionChanged;" />
|
|
<MemberType>Event</MemberType>
|
|
<ReturnValue>
|
|
<ReturnType>System.EventHandler</ReturnType>
|
|
</ReturnValue>
|
|
<Parameters />
|
|
<Docs>
|
|
<summary>Emitted when the current selection changes.</summary>
|
|
<remarks>To be added</remarks>
|
|
</Docs>
|
|
<Attributes>
|
|
<Attribute>
|
|
<AttributeName>GLib.Signal("selection_changed")</AttributeName>
|
|
</Attribute>
|
|
</Attributes>
|
|
</Member>
|
|
<Member MemberName="AllUnselected">
|
|
<MemberSignature Language="C#" Value="public event EventHandler AllUnselected;" />
|
|
<MemberType>Event</MemberType>
|
|
<ReturnValue>
|
|
<ReturnType>System.EventHandler</ReturnType>
|
|
</ReturnValue>
|
|
<Parameters />
|
|
<Docs>
|
|
<summary>Emitted when UnselectAll () is called.</summary>
|
|
<remarks />
|
|
</Docs>
|
|
<Attributes>
|
|
<Attribute>
|
|
<AttributeName>GLib.Signal("unselect_all")</AttributeName>
|
|
</Attribute>
|
|
</Attributes>
|
|
</Member>
|
|
<Member MemberName="ItemActivated">
|
|
<MemberSignature Language="C#" Value="public event Gtk.ItemActivatedHandler ItemActivated;" />
|
|
<MemberType>Event</MemberType>
|
|
<ReturnValue>
|
|
<ReturnType>Gtk.ItemActivatedHandler</ReturnType>
|
|
</ReturnValue>
|
|
<Parameters />
|
|
<Docs>
|
|
<summary>Emitted when an item is activated.</summary>
|
|
<remarks />
|
|
</Docs>
|
|
<Attributes>
|
|
<Attribute>
|
|
<AttributeName>GLib.Signal("item_activated")</AttributeName>
|
|
</Attribute>
|
|
</Attributes>
|
|
</Member>
|
|
<Member MemberName="AllSelected">
|
|
<MemberSignature Language="C#" Value="public event EventHandler AllSelected;" />
|
|
<MemberType>Event</MemberType>
|
|
<ReturnValue>
|
|
<ReturnType>System.EventHandler</ReturnType>
|
|
</ReturnValue>
|
|
<Parameters />
|
|
<Docs>
|
|
<summary>Emitted when SelectAll () is called.</summary>
|
|
<remarks />
|
|
</Docs>
|
|
<Attributes>
|
|
<Attribute>
|
|
<AttributeName>GLib.Signal("select_all")</AttributeName>
|
|
</Attribute>
|
|
</Attributes>
|
|
</Member>
|
|
<Member MemberName="ToggleCursorItem">
|
|
<MemberSignature Language="C#" Value="public event EventHandler ToggleCursorItem;" />
|
|
<MemberType>Event</MemberType>
|
|
<ReturnValue>
|
|
<ReturnType>System.EventHandler</ReturnType>
|
|
</ReturnValue>
|
|
<Parameters />
|
|
<Docs>
|
|
<summary>To be added</summary>
|
|
<remarks />
|
|
</Docs>
|
|
<Attributes>
|
|
<Attribute>
|
|
<AttributeName>GLib.Signal("toggle_cursor_item")</AttributeName>
|
|
</Attribute>
|
|
</Attributes>
|
|
</Member>
|
|
<Member MemberName="MoveCursor">
|
|
<MemberSignature Language="C#" Value="public event Gtk.MoveCursorHandler MoveCursor;" />
|
|
<MemberType>Event</MemberType>
|
|
<ReturnValue>
|
|
<ReturnType>Gtk.MoveCursorHandler</ReturnType>
|
|
</ReturnValue>
|
|
<Parameters />
|
|
<Docs>
|
|
<summary>To be added</summary>
|
|
<remarks />
|
|
</Docs>
|
|
<Attributes>
|
|
<Attribute>
|
|
<AttributeName>GLib.Signal("move_cursor")</AttributeName>
|
|
</Attribute>
|
|
</Attributes>
|
|
</Member>
|
|
<Member MemberName="ActivateCursorItem">
|
|
<MemberSignature Language="C#" Value="public event Gtk.ActivateCursorItemHandler ActivateCursorItem;" />
|
|
<MemberType>Event</MemberType>
|
|
<ReturnValue>
|
|
<ReturnType>Gtk.ActivateCursorItemHandler</ReturnType>
|
|
</ReturnValue>
|
|
<Parameters />
|
|
<Docs>
|
|
<summary>To be added</summary>
|
|
<remarks>To be added</remarks>
|
|
</Docs>
|
|
<Attributes>
|
|
<Attribute>
|
|
<AttributeName>GLib.Signal("activate_cursor_item")</AttributeName>
|
|
</Attribute>
|
|
</Attributes>
|
|
</Member>
|
|
<Member MemberName="SelectCursorItem">
|
|
<MemberSignature Language="C#" Value="public event EventHandler SelectCursorItem;" />
|
|
<MemberType>Event</MemberType>
|
|
<ReturnValue>
|
|
<ReturnType>System.EventHandler</ReturnType>
|
|
</ReturnValue>
|
|
<Parameters />
|
|
<Docs>
|
|
<summary>To be added</summary>
|
|
<remarks />
|
|
</Docs>
|
|
<Attributes>
|
|
<Attribute>
|
|
<AttributeName>GLib.Signal("select_cursor_item")</AttributeName>
|
|
</Attribute>
|
|
</Attributes>
|
|
</Member>
|
|
<Member MemberName="GetCursor">
|
|
<MemberSignature Language="C#" Value="public bool GetCursor (out Gtk.TreePath path, out Gtk.CellRenderer cell);" />
|
|
<MemberType>Method</MemberType>
|
|
<ReturnValue>
|
|
<ReturnType>System.Boolean</ReturnType>
|
|
</ReturnValue>
|
|
<Parameters>
|
|
<Parameter Name="path" Type="Gtk.TreePath&" RefType="out" />
|
|
<Parameter Name="cell" Type="Gtk.CellRenderer&" RefType="out" />
|
|
</Parameters>
|
|
<Docs>
|
|
<param name="path">The cursor path.</param>
|
|
<param name="cell">The currently focused cell.</param>
|
|
<summary>Gets the path and cell of the current cursor location.</summary>
|
|
<returns>
|
|
<see langword="true" />if the cursor is set.</returns>
|
|
<remarks>The <paramref name="path" /> will be <see langword="null" /> if the cursor is not currently set. The <paramref name="cell" /> will be <see langword="null" /> if no cell has focus.</remarks>
|
|
<since version="Gtk# 2.8" />
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName="CreateDragIcon">
|
|
<MemberSignature Language="C#" Value="public Gdk.Pixmap CreateDragIcon (Gtk.TreePath path);" />
|
|
<MemberType>Method</MemberType>
|
|
<ReturnValue>
|
|
<ReturnType>Gdk.Pixmap</ReturnType>
|
|
</ReturnValue>
|
|
<Parameters>
|
|
<Parameter Name="path" Type="Gtk.TreePath" />
|
|
</Parameters>
|
|
<Docs>
|
|
<param name="path">a <see cref="T:Gtk.TreePath" /> to an item in the view.</param>
|
|
<summary>Creates a pixmap representation of an item.</summary>
|
|
<returns>a <see cref="T:Gdk.Pixmap" /> representation of the item at <paramref name="path" />.</returns>
|
|
<remarks />
|
|
<since version="Gtk# 2.8" />
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName="UnsetModelDragDest">
|
|
<MemberSignature Language="C#" Value="public void UnsetModelDragDest ();" />
|
|
<MemberType>Method</MemberType>
|
|
<ReturnValue>
|
|
<ReturnType>System.Void</ReturnType>
|
|
</ReturnValue>
|
|
<Parameters />
|
|
<Docs>
|
|
<summary>Unsets the view as a Drag destination.</summary>
|
|
<remarks>Reverses the effects of <see cref="M:Gtk.IconView.EnableModelDragDest" />.</remarks>
|
|
<since version="Gtk# 2.8" />
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName="GetVisibleRange">
|
|
<MemberSignature Language="C#" Value="public bool GetVisibleRange (out Gtk.TreePath start_path, out Gtk.TreePath end_path);" />
|
|
<MemberType>Method</MemberType>
|
|
<ReturnValue>
|
|
<ReturnType>System.Boolean</ReturnType>
|
|
</ReturnValue>
|
|
<Parameters>
|
|
<Parameter Name="start_path" Type="Gtk.TreePath&" RefType="out" />
|
|
<Parameter Name="end_path" Type="Gtk.TreePath&" RefType="out" />
|
|
</Parameters>
|
|
<Docs>
|
|
<param name="start_path">The first visible item.</param>
|
|
<param name="end_path">The last visible item.</param>
|
|
<summary>Gets the visible range of items in the view.</summary>
|
|
<returns>
|
|
<see langword="true" /> if the start and end paths were set.</returns>
|
|
<remarks>There may be invisible paths between the start and end paths.</remarks>
|
|
<since version="Gtk# 2.8" />
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName="GetDestItemAtPos">
|
|
<MemberSignature Language="C#" Value="public bool GetDestItemAtPos (int drag_x, int drag_y, out Gtk.TreePath path, out Gtk.IconViewDropPosition pos);" />
|
|
<MemberType>Method</MemberType>
|
|
<ReturnValue>
|
|
<ReturnType>System.Boolean</ReturnType>
|
|
</ReturnValue>
|
|
<Parameters>
|
|
<Parameter Name="drag_x" Type="System.Int32" />
|
|
<Parameter Name="drag_y" Type="System.Int32" />
|
|
<Parameter Name="path" Type="Gtk.TreePath&" RefType="out" />
|
|
<Parameter Name="pos" Type="Gtk.IconViewDropPosition&" RefType="out" />
|
|
</Parameters>
|
|
<Docs>
|
|
<param name="drag_x">x coordinate of position.</param>
|
|
<param name="drag_y">y coordinate of position.</param>
|
|
<param name="path">returns a <see cref="T:Gtk.TreePath" /> for the item.</param>
|
|
<param name="pos">returns a <see cref="T:Gtk.IconViewDropPosition" />.</param>
|
|
<summary>Determines the destination item at a position.</summary>
|
|
<returns>
|
|
<see langword="true" /> if there is an item at the position.</returns>
|
|
<remarks />
|
|
<since version="Gtk# 2.8" />
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName="GetItemAtPos">
|
|
<MemberSignature Language="C#" Value="public bool GetItemAtPos (int x, int y, out Gtk.TreePath path, out Gtk.CellRenderer cell);" />
|
|
<MemberType>Method</MemberType>
|
|
<ReturnValue>
|
|
<ReturnType>System.Boolean</ReturnType>
|
|
</ReturnValue>
|
|
<Parameters>
|
|
<Parameter Name="x" Type="System.Int32" />
|
|
<Parameter Name="y" Type="System.Int32" />
|
|
<Parameter Name="path" Type="Gtk.TreePath&" RefType="out" />
|
|
<Parameter Name="cell" Type="Gtk.CellRenderer&" RefType="out" />
|
|
</Parameters>
|
|
<Docs>
|
|
<param name="x">x position in widget coordinates.</param>
|
|
<param name="y">y position in widget coordinates.</param>
|
|
<param name="path">returns a <see cref="T:Gtk.TreePath" /> representing the item at the position.</param>
|
|
<param name="cell">returns a <see cref="T:Gtk.CellRenderer" /> representing the cell at the position.</param>
|
|
<summary>Obtains the item and cell at a given position.</summary>
|
|
<returns>
|
|
<see langword="true" /> if there is an item at the position.</returns>
|
|
<remarks>Extends on <see cref="M:Gtk.IconView.GetPathAtPos" /> by additionally returning a cell renderer at the specified position.</remarks>
|
|
<since version="Gtk# 2.8" />
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName="SetDragDestItem">
|
|
<MemberSignature Language="C#" Value="public void SetDragDestItem (Gtk.TreePath path, Gtk.IconViewDropPosition pos);" />
|
|
<MemberType>Method</MemberType>
|
|
<ReturnValue>
|
|
<ReturnType>System.Void</ReturnType>
|
|
</ReturnValue>
|
|
<Parameters>
|
|
<Parameter Name="path" Type="Gtk.TreePath" />
|
|
<Parameter Name="pos" Type="Gtk.IconViewDropPosition" />
|
|
</Parameters>
|
|
<Docs>
|
|
<param name="path">The item to highlight, or <see langword="null" />.</param>
|
|
<param name="pos">Indicates where to drop relative to the item.</param>
|
|
<summary>Sets up drag feedback for an item.</summary>
|
|
<remarks />
|
|
<since version="Gtk# 2.8" />
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName="UnsetModelDragSource">
|
|
<MemberSignature Language="C#" Value="public void UnsetModelDragSource ();" />
|
|
<MemberType>Method</MemberType>
|
|
<ReturnValue>
|
|
<ReturnType>System.Void</ReturnType>
|
|
</ReturnValue>
|
|
<Parameters />
|
|
<Docs>
|
|
<summary>Unsets the view as a drag source.</summary>
|
|
<remarks>Reverses the effects of <see cref="M:Gtk.IconView.EnableModelDragSource" />.</remarks>
|
|
<since version="Gtk# 2.8" />
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName="SetCursor">
|
|
<MemberSignature Language="C#" Value="public void SetCursor (Gtk.TreePath path, Gtk.CellRenderer cell, bool start_editing);" />
|
|
<MemberType>Method</MemberType>
|
|
<ReturnValue>
|
|
<ReturnType>System.Void</ReturnType>
|
|
</ReturnValue>
|
|
<Parameters>
|
|
<Parameter Name="path" Type="Gtk.TreePath" />
|
|
<Parameter Name="cell" Type="Gtk.CellRenderer" />
|
|
<Parameter Name="start_editing" Type="System.Boolean" />
|
|
</Parameters>
|
|
<Docs>
|
|
<param name="path">the item to select.</param>
|
|
<param name="cell">the cell to focus, or <see langword="null" />.</param>
|
|
<param name="start_editing">indicates if the cell should be placed in edit mode.</param>
|
|
<summary>Selects an item and sets keyboard focus to a cell.</summary>
|
|
<remarks>Normally followed by a call to <see cref="M:Gtk.Widget.GrabFocus" />.</remarks>
|
|
<since version="Gtk# 2.8" />
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName="Reorderable">
|
|
<MemberSignature Language="C#" Value="public bool Reorderable { set; get; };" />
|
|
<MemberType>Property</MemberType>
|
|
<Attributes>
|
|
<Attribute>
|
|
<AttributeName>GLib.Property("reorderable")</AttributeName>
|
|
</Attribute>
|
|
</Attributes>
|
|
<ReturnValue>
|
|
<ReturnType>System.Boolean</ReturnType>
|
|
</ReturnValue>
|
|
<Docs>
|
|
<summary>Indicates whether the list can be reordered via Drag and Drop.</summary>
|
|
<value>
|
|
<see langword="true" /> to allow reordering.</value>
|
|
<remarks />
|
|
<since version="Gtk# 2.8" />
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName="EnableModelDragSource">
|
|
<MemberSignature Language="C#" Value="public void EnableModelDragSource (Gdk.ModifierType start_button_mask, Gtk.TargetEntry[] targets, Gdk.DragAction actions);" />
|
|
<MemberType>Method</MemberType>
|
|
<ReturnValue>
|
|
<ReturnType>System.Void</ReturnType>
|
|
</ReturnValue>
|
|
<Parameters>
|
|
<Parameter Name="start_button_mask" Type="Gdk.ModifierType" />
|
|
<Parameter Name="targets" Type="Gtk.TargetEntry[]" />
|
|
<Parameter Name="actions" Type="Gdk.DragAction" />
|
|
</Parameters>
|
|
<Docs>
|
|
<param name="start_button_mask">buttons allowed to start drag.</param>
|
|
<param name="targets">an array of <see cref="Gtk.TargetEntry" /> items supported.</param>
|
|
<param name="actions">drag actions supported from the view.</param>
|
|
<summary>Enables the view as a Drag source.</summary>
|
|
<remarks />
|
|
<since version="Gtk# 2.8" />
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName="EnableModelDragDest">
|
|
<MemberSignature Language="C#" Value="public void EnableModelDragDest (Gtk.TargetEntry[] targets, Gdk.DragAction actions);" />
|
|
<MemberType>Method</MemberType>
|
|
<ReturnValue>
|
|
<ReturnType>System.Void</ReturnType>
|
|
</ReturnValue>
|
|
<Parameters>
|
|
<Parameter Name="targets" Type="Gtk.TargetEntry[]" />
|
|
<Parameter Name="actions" Type="Gdk.DragAction" />
|
|
</Parameters>
|
|
<Docs>
|
|
<param name="targets">an array of <see cref="Gtk.TargetEntry" /> items supported.</param>
|
|
<param name="actions">drop actions supported by the view.</param>
|
|
<summary>Enables the view as a Drop destination.</summary>
|
|
<remarks />
|
|
<since version="Gtk# 2.8" />
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName="GetDragDestItem">
|
|
<MemberSignature Language="C#" Value="public void GetDragDestItem (out Gtk.TreePath path, out Gtk.IconViewDropPosition pos);" />
|
|
<MemberType>Method</MemberType>
|
|
<ReturnValue>
|
|
<ReturnType>System.Void</ReturnType>
|
|
</ReturnValue>
|
|
<Parameters>
|
|
<Parameter Name="path" Type="Gtk.TreePath&" RefType="out" />
|
|
<Parameter Name="pos" Type="Gtk.IconViewDropPosition&" RefType="out" />
|
|
</Parameters>
|
|
<Docs>
|
|
<param name="path">returns a <see cref="T:Gtk.TreePath" /> for the highlighted item, or <see langword="null" />.</param>
|
|
<param name="pos">returns the relative drop information for the highlighted item.</param>
|
|
<summary>Gets Drag information for the currently highlighted item.</summary>
|
|
<remarks />
|
|
<since version="Gtk# 2.8" />
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName="ScrollToPath">
|
|
<MemberSignature Language="C#" Value="public void ScrollToPath (Gtk.TreePath path);" />
|
|
<MemberType>Method</MemberType>
|
|
<ReturnValue>
|
|
<ReturnType>System.Void</ReturnType>
|
|
</ReturnValue>
|
|
<Parameters>
|
|
<Parameter Name="path" Type="Gtk.TreePath" />
|
|
</Parameters>
|
|
<Docs>
|
|
<param name="path">a <see cref="T:Gtk.TreePath" /> of the item to be made visible by scrolling.</param>
|
|
<summary>Scrolls the view to make an item visible.</summary>
|
|
<remarks>The minimum amount of scrolling will be done to make the item visible. To control the item's final position within the visible part of the widget, use the other overload of this method.</remarks>
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName="ScrollToPath">
|
|
<MemberSignature Language="C#" Value="public void ScrollToPath (Gtk.TreePath path, float row_align, float col_align);" />
|
|
<MemberType>Method</MemberType>
|
|
<ReturnValue>
|
|
<ReturnType>System.Void</ReturnType>
|
|
</ReturnValue>
|
|
<Parameters>
|
|
<Parameter Name="path" Type="Gtk.TreePath" />
|
|
<Parameter Name="row_align" Type="System.Single" />
|
|
<Parameter Name="col_align" Type="System.Single" />
|
|
</Parameters>
|
|
<Docs>
|
|
<param name="path">a <see cref="T:Gtk.TreePath" /> of the item to be made visible by scrolling.</param>
|
|
<param name="row_align">a value between 0.0 and 1.0.</param>
|
|
<param name="col_align">a value between 0.0 and 1.0.</param>
|
|
<summary>Scrolls the view to make an item visible.</summary>
|
|
<remarks>Using row_align of 0.5 and col_align of 0.5 will try to center the item in the visible part of the widget.</remarks>
|
|
<since version="Gtk# 2.8" />
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName="SetCellDataFunc">
|
|
<MemberSignature Language="C#" Value="public void SetCellDataFunc (Gtk.CellRenderer cell, Gtk.CellLayoutDataFunc func);" />
|
|
<MemberType>Method</MemberType>
|
|
<ReturnValue>
|
|
<ReturnType>System.Void</ReturnType>
|
|
</ReturnValue>
|
|
<Parameters>
|
|
<Parameter Name="cell" Type="Gtk.CellRenderer" />
|
|
<Parameter Name="func" Type="Gtk.CellLayoutDataFunc" />
|
|
</Parameters>
|
|
<Docs>
|
|
<param name="cell">a <see cref="T:Gtk.CellRenderer" /> of the view.</param>
|
|
<param name="func">a <see cref="T:Gtk.CellLayoutDataFunc" />, or <see langword="null" /> to remove an existing delegate.</param>
|
|
<summary>Sets the Cell Data delegate for a renderer.</summary>
|
|
<remarks>The Cell data func is an alternative to binding attributes to model columns. The delegate is invoked any time the cell is renderer and it should set up all the appropriate renderer information.</remarks>
|
|
<since version="Gtk# 2.8" />
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName="ClearAttributes">
|
|
<MemberSignature Language="C#" Value="public void ClearAttributes (Gtk.CellRenderer cell);" />
|
|
<MemberType>Method</MemberType>
|
|
<ReturnValue>
|
|
<ReturnType>System.Void</ReturnType>
|
|
</ReturnValue>
|
|
<Parameters>
|
|
<Parameter Name="cell" Type="Gtk.CellRenderer" />
|
|
</Parameters>
|
|
<Docs>
|
|
<param name="cell">a <see cref="T:Gtk.CellRenderer" /> of the view.</param>
|
|
<summary>Clears attribute bindings for a cell renderer.</summary>
|
|
<remarks />
|
|
<since version="Gtk# 2.8" />
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName="Clear">
|
|
<MemberSignature Language="C#" Value="public void Clear ();" />
|
|
<MemberType>Method</MemberType>
|
|
<ReturnValue>
|
|
<ReturnType>System.Void</ReturnType>
|
|
</ReturnValue>
|
|
<Parameters />
|
|
<Docs>
|
|
<summary>Clears attribute bindings and removes all renderers.</summary>
|
|
<remarks />
|
|
<since version="Gtk# 2.8" />
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName="AddAttribute">
|
|
<MemberSignature Language="C#" Value="public void AddAttribute (Gtk.CellRenderer cell, string attribute, int column);" />
|
|
<MemberType>Method</MemberType>
|
|
<ReturnValue>
|
|
<ReturnType>System.Void</ReturnType>
|
|
</ReturnValue>
|
|
<Parameters>
|
|
<Parameter Name="cell" Type="Gtk.CellRenderer" />
|
|
<Parameter Name="attribute" Type="System.String" />
|
|
<Parameter Name="column" Type="System.Int32" />
|
|
</Parameters>
|
|
<Docs>
|
|
<param name="cell">a <see cref="T:Gtk.CellRenderer" /> of the view.</param>
|
|
<param name="attribute">an attribute name on <paramref name="cell" />.</param>
|
|
<param name="column">the model column index to bind to <paramref name="attribute" />.</param>
|
|
<summary>Binds a model column to an Attribute of a Cell Renderer.</summary>
|
|
<remarks />
|
|
<since version="Gtk# 2.8" />
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName="PackEnd">
|
|
<MemberSignature Language="C#" Value="public void PackEnd (Gtk.CellRenderer cell, bool expand);" />
|
|
<MemberType>Method</MemberType>
|
|
<ReturnValue>
|
|
<ReturnType>System.Void</ReturnType>
|
|
</ReturnValue>
|
|
<Parameters>
|
|
<Parameter Name="cell" Type="Gtk.CellRenderer" />
|
|
<Parameter Name="expand" Type="System.Boolean" />
|
|
</Parameters>
|
|
<Docs>
|
|
<param name="cell">a <see cref="T:Gtk.CellRenderer" /> to add to the view.</param>
|
|
<param name="expand">indicates if the <paramref name="cell" /> should expand to available space.</param>
|
|
<summary>Packs a renderer at the end of a cell.</summary>
|
|
<remarks />
|
|
<since version="Gtk# 2.8" />
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName="Reorder">
|
|
<MemberSignature Language="C#" Value="public void Reorder (Gtk.CellRenderer cell, int position);" />
|
|
<MemberType>Method</MemberType>
|
|
<ReturnValue>
|
|
<ReturnType>System.Void</ReturnType>
|
|
</ReturnValue>
|
|
<Parameters>
|
|
<Parameter Name="cell" Type="Gtk.CellRenderer" />
|
|
<Parameter Name="position" Type="System.Int32" />
|
|
</Parameters>
|
|
<Docs>
|
|
<param name="cell">a <see cref="T:Gtk.CellRenderer" /> of the view.</param>
|
|
<param name="position">desired index within the list of renderers.</param>
|
|
<summary>Moves a renderer to a position in the list of renderers.</summary>
|
|
<remarks />
|
|
<since version="Gtk# 2.8" />
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName="PackStart">
|
|
<MemberSignature Language="C#" Value="public void PackStart (Gtk.CellRenderer cell, bool expand);" />
|
|
<MemberType>Method</MemberType>
|
|
<ReturnValue>
|
|
<ReturnType>System.Void</ReturnType>
|
|
</ReturnValue>
|
|
<Parameters>
|
|
<Parameter Name="cell" Type="Gtk.CellRenderer" />
|
|
<Parameter Name="expand" Type="System.Boolean" />
|
|
</Parameters>
|
|
<Docs>
|
|
<param name="cell">a <see cref="T:Gtk.CellRenderer" /> to add to the view.</param>
|
|
<param name="expand">indicates if the <paramref name="cell" /> should expand to available space.</param>
|
|
<summary>Packs a renderer to the beginning of the cell.</summary>
|
|
<remarks />
|
|
<since version="Gtk# 2.8" />
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName="SetAttributes">
|
|
<MemberSignature Language="C#" Value="public void SetAttributes (Gtk.CellRenderer cell, object[] attrs);" />
|
|
<MemberType>Method</MemberType>
|
|
<ReturnValue>
|
|
<ReturnType>System.Void</ReturnType>
|
|
</ReturnValue>
|
|
<Parameters>
|
|
<Parameter Name="cell" Type="Gtk.CellRenderer" />
|
|
<Parameter Name="attrs" Type="System.Object[]">
|
|
<Attributes>
|
|
<Attribute>
|
|
<AttributeName>System.ParamArray</AttributeName>
|
|
</Attribute>
|
|
</Attributes>
|
|
</Parameter>
|
|
</Parameters>
|
|
<Docs>
|
|
<param name="cell">a <see cref="T:Gtk.CellRenderer" /> of the view.</param>
|
|
<param name="attrs">an array of name/value pairs.</param>
|
|
<summary>Set the attributes of a given Cell Renderer.</summary>
|
|
<remarks />
|
|
<since version="Gtk# 2.8" />
|
|
</Docs>
|
|
</Member>
|
|
</Members>
|
|
</Type>
|