pub struct IndicatorBuilder { /* private fields */ }
Expand description

A builder-pattern type to construct Indicator objects.

Implementations§

Create a new IndicatorBuilder using the unique id of the indicator

id

The unique id of the indicator to create.

Returns

a new instance of IndicatorBuilder

Build the Indicator.

Wrapper function for property property::Indicator::attention-icon-name.

icon_name

The name of the attention icon to set for this indicator

icon_desc

A textual description of the icon

Wrapper function for property property::Indicator::category. Defaults to Other

category

The category of indicator.

Sets the default icon to use when the status is active but not set to attention. In most cases, this should be the application icon for the program.

Wrapper function for property property::Indicator::icon-name and signal::Indicator::icon-desc.

icon_name

The icon name to set.

icon_desc

A textual description of the icon for accessibility

Sets the path to use when searching for icons.

icon_theme_path

The icon theme path to set.

This is a wrapper function for the property::Indicator::label

label

The label to show next to the icon.

This is a wrapper function for the property::Indicator::guide properties.

guide

A guide to size the label correctly.

Sets the ordering index for the app indicator which effects the placement of it on the panel. For almost all app indicator this is not the function you’re looking for.

Wrapper function for property property::Indicator::ordering-index.

ordering_index

A value for the ordering of this app indicator

Wrapper function for property property::Indicator::status.

status

The status to set for this indicator

Available on crate feature v0_5 only.

Sets the title of the application indicator, or how it should be referred in a human readable form. This string should be UTF-8 and localized as it expected that users will set it.

In the Unity desktop the most prominent place that this is show will be in the HUD. HUD listings for this application indicator will start with the title as the first part of the line for the menu items.

title

Title of the app indicator

Sets the menu that should be shown when the Application Indicator is clicked on in the panel. An application indicator will not be rendered unless it has a menu.

Wrapper function for property property::Indicator::menu.

A [gtk::Menu][crate::gtk::Menu] to set

Set the menuitem to be activated when a secondary activation event (i.e. a middle-click) is emitted over the Indicator icon/label.

The menuitem can be also a complex [gtk::Widget][crate::gtk::Widget], but to get activated when a secondary activation occurs in the Appindicator, it must be a visible and active child (or inner-child) of the property::Indicator::menu.

A [gtk::Widget][crate::gtk::Widget] to be activated on secondary activation

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.