Statusbar
open class Statusbar : Widget, StatusbarProtocol
A GtkStatusbar widget is usually placed along the bottom of an application’s
main [classGtk.Window].

A GtkStatusBar may provide a regular commentary of the application’s
status (as is usually the case in a web browser, for example), or may be
used to simply output a message when the status changes, (when an upload
is complete in an FTP client, for example).
Status bars in GTK maintain a stack of messages. The message at the top of the each bar’s stack is the one that will currently be displayed.
Any messages added to a statusbar’s stack must specify a context id that
is used to uniquely identify the source of a message. This context id can
be generated by [methodGtk.Statusbar.get_context_id], given a message and
the statusbar that it will be added to. Note that messages are stored in a
stack, and when choosing which message to display, the stack structure is
adhered to, regardless of the context identifier of a message.
One could say that a statusbar maintains one stack of messages for display purposes, but allows multiple message producers to maintain sub-stacks of the messages they produced (via context ids).
Status bars are created using [ctorGtk.Statusbar.new].
Messages are added to the bar’s stack with [methodGtk.Statusbar.push].
The message at the top of the stack can be removed using
[methodGtk.Statusbar.pop]. A message can be removed from anywhere in the
stack if its message id was recorded at the time it was added. This is done
using [methodGtk.Statusbar.remove].
CSS node
GtkStatusbar has a single CSS node with name statusbar.
The Statusbar type acts as a reference-counted owner of an underlying GtkStatusbar instance.
It provides the methods that can operate on this data type through StatusbarProtocol conformance.
Use Statusbar as a strong reference or owner of a GtkStatusbar instance.
-
Designated initialiser from the underlying `C` data type.This creates an instance without performing an unbalanced retain i.e., ownership is transferred to the
Statusbarinstance.Declaration
Swift
@inlinable public init(_ op: UnsafeMutablePointer<GtkStatusbar>)Parameters
oppointer to the underlying object
-
Designated initialiser from a constant pointer to the underlying
Cdata type. This creates an instance without performing an unbalanced retain i.e., ownership is transferred to theStatusbarinstance.Declaration
Swift
@inlinable public init(_ op: UnsafePointer<GtkStatusbar>)Parameters
oppointer to the underlying object
-
Optional initialiser from a non-mutating
gpointerto the underlyingCdata type. This creates an instance without performing an unbalanced retain i.e., ownership is transferred to theStatusbarinstance.Declaration
Swift
@inlinable override public init!(gpointer op: gpointer?)Parameters
opgpointer to the underlying object
-
Optional initialiser from a non-mutating
gconstpointerto the underlyingCdata type. This creates an instance without performing an unbalanced retain i.e., ownership is transferred to theStatusbarinstance.Declaration
Swift
@inlinable override public init!(gconstpointer op: gconstpointer?)Parameters
oppointer to the underlying object
-
Optional initialiser from a constant pointer to the underlying
Cdata type. This creates an instance without performing an unbalanced retain i.e., ownership is transferred to theStatusbarinstance.Declaration
Swift
@inlinable public init!(_ op: UnsafePointer<GtkStatusbar>?)Parameters
oppointer to the underlying object
-
Optional initialiser from the underlying
Cdata type. This creates an instance without performing an unbalanced retain i.e., ownership is transferred to theStatusbarinstance.Declaration
Swift
@inlinable public init!(_ op: UnsafeMutablePointer<GtkStatusbar>?)Parameters
oppointer to the underlying object
-
Designated initialiser from the underlying
Cdata type. Will retainGtkStatusbar. i.e., ownership is transferred to theStatusbarinstance.Declaration
Swift
@inlinable public init(retaining op: UnsafeMutablePointer<GtkStatusbar>)Parameters
oppointer to the underlying object
-
Reference intialiser for a related type that implements
StatusbarProtocolWill retainGtkStatusbar.Declaration
Swift
@inlinable public init<T>(statusbar other: T) where T : StatusbarProtocolParameters
otheran instance of a related type that implements
StatusbarProtocol -
Unsafe typed initialiser. Do not use unless you know the underlying data type the pointer points to conforms to
StatusbarProtocol.Declaration
Swift
@inlinable override public init<T>(cPointer p: UnsafeMutablePointer<T>)Parameters
cPointerpointer to the underlying object
-
Unsafe typed, retaining initialiser. Do not use unless you know the underlying data type the pointer points to conforms to
StatusbarProtocol.Declaration
Swift
@inlinable override public init<T>(retainingCPointer cPointer: UnsafeMutablePointer<T>)Parameters
cPointerpointer to the underlying object
-
Unsafe untyped initialiser. Do not use unless you know the underlying data type the pointer points to conforms to
StatusbarProtocol.Declaration
Swift
@inlinable override public init(raw p: UnsafeRawPointer)Parameters
praw pointer to the underlying object
-
Unsafe untyped, retaining initialiser. Do not use unless you know the underlying data type the pointer points to conforms to
StatusbarProtocol.Declaration
Swift
@inlinable override public init(retainingRaw raw: UnsafeRawPointer) -
Unsafe untyped initialiser. Do not use unless you know the underlying data type the pointer points to conforms to
StatusbarProtocol.Declaration
Swift
@inlinable public required init(raw p: UnsafeMutableRawPointer)Parameters
pmutable raw pointer to the underlying object
-
Unsafe untyped, retaining initialiser. Do not use unless you know the underlying data type the pointer points to conforms to
StatusbarProtocol.Declaration
Swift
@inlinable required public init(retainingRaw raw: UnsafeMutableRawPointer)Parameters
rawmutable raw pointer to the underlying object
-
Unsafe untyped initialiser. Do not use unless you know the underlying data type the pointer points to conforms to
StatusbarProtocol.Declaration
Swift
@inlinable override public init(opaquePointer p: OpaquePointer)Parameters
popaque pointer to the underlying object
-
Unsafe untyped, retaining initialiser. Do not use unless you know the underlying data type the pointer points to conforms to
StatusbarProtocol.Declaration
Swift
@inlinable override public init(retainingOpaquePointer p: OpaquePointer)Parameters
popaque pointer to the underlying object
-
Creates a new
GtkStatusbarready for messages.Declaration
Swift
@inlinable public init()
View on GitHub
Install in Dash
Statusbar Class Reference