Class Toolbar

Definition

Namespace:
ElmSharp
Assembly:
ElmSharp.dll

The Toolbar is a widget that displays a list of items inside a box.

C#
Copy
[Obsolete("This has been deprecated in API12")] public class Toolbar : Widget, IAccessibleObject
Inheritance
Implements

Constructors

View Source

Toolbar(EvasObject)

Creates and initializes a new instance of the Toolbar class.

Declaration
C#
Copy
[Obsolete("This has been deprecated in API12")] public Toolbar(EvasObject parent)
Parameters
Type Name Description
EvasObject parent

A EvasObject to which the new Table instance will be attached.

Properties

View Source

FirstItem

Gets the first ToolbarItemItem of the toolbar.

Declaration
C#
Copy
[Obsolete("This has been deprecated in API12")] public ToolbarItem FirstItem { get; }
Property Value
Type Description
ToolbarItem
View Source

Homogeneous

Sets or gets whether the layout of this toolbar is homogeneous.

Declaration
C#
Copy
[Obsolete("This has been deprecated in API12")] public bool Homogeneous { get; set; }
Property Value
Type Description
bool
Remarks

True for homogeneous, False for no homogeneous.

View Source

IconLookupOrder

Sets or gets the icon lookup order, for toolbar items' icons. The default lookup order is ToolbarIocnLookupOrder.ThemeFreedesktop. Icons added before calling this function will not be affected.

Declaration
C#
Copy
[Obsolete("This has been deprecated in API12")] public ToolbarIconLookupOrder IconLookupOrder { get; set; }
Property Value
Type Description
ToolbarIconLookupOrder
View Source

IconSize

Sets or gets the icon size of a given toolbar widget. Default value is 32 pixels, to be used by toolbar items.

Declaration
C#
Copy
[Obsolete("This has been deprecated in API12")] public int IconSize { get; set; }
Property Value
Type Description
int
View Source

ItemAlignment

Sets or gets the alignment of the items.

Declaration
C#
Copy
[Obsolete("This has been deprecated in API12")] public double ItemAlignment { get; set; }
Property Value
Type Description
double
Remarks

The toolbar items alignment, a float between 0.0 and 1.0.

View Source

ItemsCount

Gets the number of items in a Toolbar widget.

Declaration
C#
Copy
[Obsolete("This has been deprecated in API12")] public int ItemsCount { get; }
Property Value
Type Description
int
View Source

LastItem

Gets the last ToolbarItemItem of the toolbar.

Declaration
C#
Copy
[Obsolete("This has been deprecated in API12")] public ToolbarItem LastItem { get; }
Property Value
Type Description
ToolbarItem
View Source

SelectedItem

Gets the selected ToolbarItemItem of the toolbar.

Declaration
C#
Copy
[Obsolete("This has been deprecated in API12")] public ToolbarItem SelectedItem { get; }
Property Value
Type Description
ToolbarItem
View Source

SelectionMode

Sets or gets the slection mode of a given Toolbar widget.

Declaration
C#
Copy
[Obsolete("This has been deprecated in API12")] public ToolbarSelectionMode SelectionMode { get; set; }
Property Value
Type Description
ToolbarSelectionMode
View Source

ShrinkMode

Sets or gets the shrink mode of a given Toolbar widget.

Declaration
C#
Copy
[Obsolete("This has been deprecated in API12")] public ToolbarShrinkMode ShrinkMode { get; set; }
Property Value
Type Description
ToolbarShrinkMode
View Source

TransverseExpansion

Sets or gets the item's transverse expansion of a given Toolbar widget.

Declaration
C#
Copy
[Obsolete("This has been deprecated in API12")] public bool TransverseExpansion { get; set; }
Property Value
Type Description
bool
Remarks

The transverse expansion of the item, true for on and false for off. By default it's false.

Methods

View Source

Append(string, string)

Appends the ToolbarItem, which contains label and icon to the toolbar.

Declaration
C#
Copy
[Obsolete("This has been deprecated in API12")] public ToolbarItem Append(string label, string icon)
Parameters
Type Name Description
string label

The label of the item.

string icon

A string with the icon name or the absolute path of an image file.

Returns
Type Description
ToolbarItem

The new ToolbarItem which is appended to the toolbar.

View Source

Append(string)

Appends the ToolbarItem, which just contains label to the toolbar.

Declaration
C#
Copy
[Obsolete("This has been deprecated in API12")] public ToolbarItem Append(string label)
Parameters
Type Name Description
string label

The label of the item.

Returns
Type Description
ToolbarItem

The new ToolbarItem which is appended to the toolbar.

View Source

CreateHandle(EvasObject)

Creates a widget handle.

Declaration
C#
Copy
[Obsolete("This has been deprecated in API12")] protected override IntPtr CreateHandle(EvasObject parent)
Parameters
Type Name Description
EvasObject parent

Parent EvasObject.

Returns
Type Description
System.IntPtr

Handle IntPtr.

Overrides
View Source

FindItemByLabel(string)

Finds the item with that label in the toolbar.

Declaration
C#
Copy
[Obsolete("This has been deprecated in API12")] public ToolbarItem FindItemByLabel(string label)
Parameters
Type Name Description
string label

The label of the item.

Returns
Type Description
ToolbarItem

The ToolbarItem into the toolbar.

View Source

InsertAfter(ToolbarItem, string, string)

Inserts a new item which contains label and icon into the toolbar object after item after.

Declaration
C#
Copy
[Obsolete("This has been deprecated in API12")] public ToolbarItem InsertAfter(ToolbarItem after, string label, string icon)
Parameters
Type Name Description
ToolbarItem after

The toolbar item to insert after.

string label

The label of the item.

string icon

A string with the icon name or the absolute path of an image file.

Returns
Type Description
ToolbarItem

The new ToolbarItem which is inserted into the toolbar.

View Source

InsertBefore(ToolbarItem, string, string)

Inserts a new item which contains label and icon into the toolbar object before item before.

Declaration
C#
Copy
[Obsolete("This has been deprecated in API12")] public ToolbarItem InsertBefore(ToolbarItem before, string label, string icon)
Parameters
Type Name Description
ToolbarItem before

The toolbar item to insert before.

string label

The label of the item.

string icon

A string with the icon name or the absolute path of an image file.

Returns
Type Description
ToolbarItem

The new ToolbarItem which is inserted into the toolbar.

View Source

InsertBefore(ToolbarItem, string)

Inserts a new item which just contains label into the toolbar object before item before.

Declaration
C#
Copy
[Obsolete("This has been deprecated in API12")] public ToolbarItem InsertBefore(ToolbarItem before, string label)
Parameters
Type Name Description
ToolbarItem before

The toolbar item to insert before.

string label

The label of the item.

Returns
Type Description
ToolbarItem

The new ToolbarItem which is inserted into the toolbar.

View Source

Prepend(string, string)

Prepends the ToolbarItem, which contains label and icon to the toolbar.

Declaration
C#
Copy
[Obsolete("This has been deprecated in API12")] public ToolbarItem Prepend(string label, string icon)
Parameters
Type Name Description
string label

The label of the item.

string icon

A string with the icon name or the absolute path of an image file.

Returns
Type Description
ToolbarItem

The new ToolbarItem which is prepended to the toolbar.

View Source

Prepend(string)

Prepends the ToolbarItem, which just contains label to the toolbar.

Declaration
C#
Copy
[Obsolete("This has been deprecated in API12")] public ToolbarItem Prepend(string label)
Parameters
Type Name Description
string label

The label of the item.

Returns
Type Description
ToolbarItem

The new ToolbarItem which is prepended to the toolbar.

Events

View Source

Selected

Selected will be triggered when toolbar has been selected.

Declaration
C#
Copy
[Obsolete("This has been deprecated in API12")] public event EventHandler<ToolbarItemEventArgs> Selected
Event Type
Type Description
System.EventHandler<TEventArgs><ToolbarItemEventArgs>

Implements

Extension Methods