pub struct TabBuilder { /* private fields */ }

Implementations

Constructs a Tab out of accumulated data.

Panics

Panics if title or add_contents is unset.

Sets the text displayed in the tab bar.

Sets the margins around the tab’s content.

Sets the function that adds content to the tab.

Sets the function that is called when the close button is pressed. The function should return true if the tab should close immediately, false otherwise.

If no function is set the default behavior is to always return true.

See Tab::on_close for more detail

Sets the function that is called every frame to determine if the tab should close. The function should return true if the tab should be forced to close, false otherwise.

If no function is set the default behavior is to always return false.

See Tab::force_close for more detail

Trait Implementations

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 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.