pub struct StatusBar {
    pub handle: ControlHandle,
    /* private fields */
}
Expand description

A status bar is a horizontal window at the bottom of a parent window in which an application can display various kinds of status information. Status bar cannot stack, so there must be only one per window.

Requires the status-bar feature.

Builder parameters:

  • parent: Required. The status bar parent container.
  • text: The status bar text.
  • font: The font used for the status bar text

Control events:

  • MousePress(_): Generic mouse press events on the status bar
  • OnMouseMove: Generic mouse mouse event
  • OnMouseWheel: Generic mouse wheel event
use native_windows_gui as nwg;
fn build_status(status: &mut nwg::StatusBar, window: &nwg::Window, font: &nwg::Font) {
    nwg::StatusBar::builder()
        .text("Hello")
        .font(Some(font))
        .parent(window)
        .build(status);
}

Fields

handle: ControlHandle

Implementations

Set the minimum height of the statusbar (in pixels)

Return the font of the control

Set the font of the control

Return the text in one of the region of the status bar

Set the text in one of the region of the status bar

Winapi class name used during control creation

Winapi base flags used during window creation

Winapi flags required by the control

Status bar do not resize automatically. Instead, a resize message must be manually sent by the parent window to trigger the resize action.

Trait Implementations

Returns the “default value” for a type. Read more

Executes the destructor for this type. Read more

Converts to this type from the input type.

Converts to this type from the input type.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. 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.