mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-12-27 06:15:35 +00:00
a4a90e0797
* parser/gapi2xml.pl : handle foo const * fields. * gnome/gnome-api-2.10.raw : regen. svn path=/trunk/gtk-sharp/; revision=48745
849 lines
31 KiB
XML
849 lines
31 KiB
XML
<Type Name="IconView" FullName="Gtk.IconView">
|
|
<TypeSignature Language="C#" Maintainer="auto" Value="public class IconView : Gtk.Container" />
|
|
<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.6.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>
|
|
</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(Message=null, IsError=False)</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(Name="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(Name="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(Name="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(Name="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(Name="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(Name="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(Name="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(Name="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(Name="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(Name="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(Name="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(Name="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(CName="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(CName="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(CName="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(CName="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(CName="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(CName="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(CName="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(CName="select_cursor_item")</AttributeName>
|
|
</Attribute>
|
|
</Attributes>
|
|
</Member>
|
|
</Members>
|
|
</Type>
|