Statusbar
open class Statusbar : Box, StatusbarProtocol
A GtkStatusbar
is usually placed along the bottom of an application’s
main GtkWindow
. It 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
gtk_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 gtk_statusbar_new()
.
Messages are added to the bar’s stack with gtk_statusbar_push()
.
The message at the top of the stack can be removed using
gtk_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 gtk_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
Statusbar
instance.Declaration
Swift
@inlinable public init(_ op: UnsafeMutablePointer<GtkStatusbar>)
Parameters
op
pointer to the underlying object
-
Designated initialiser from a constant pointer to the underlying
C
data type. This creates an instance without performing an unbalanced retain i.e., ownership is transferred to theStatusbar
instance.Declaration
Swift
@inlinable public init(_ op: UnsafePointer<GtkStatusbar>)
Parameters
op
pointer to the underlying object
-
Optional initialiser from a non-mutating
gpointer
to the underlyingC
data type. This creates an instance without performing an unbalanced retain i.e., ownership is transferred to theStatusbar
instance.Declaration
Swift
@inlinable override public init!(gpointer op: gpointer?)
Parameters
op
gpointer to the underlying object
-
Optional initialiser from a non-mutating
gconstpointer
to the underlyingC
data type. This creates an instance without performing an unbalanced retain i.e., ownership is transferred to theStatusbar
instance.Declaration
Swift
@inlinable override public init!(gconstpointer op: gconstpointer?)
Parameters
op
pointer to the underlying object
-
Optional initialiser from a constant pointer to the underlying
C
data type. This creates an instance without performing an unbalanced retain i.e., ownership is transferred to theStatusbar
instance.Declaration
Swift
@inlinable public init!(_ op: UnsafePointer<GtkStatusbar>?)
Parameters
op
pointer to the underlying object
-
Optional initialiser from the underlying
C
data type. This creates an instance without performing an unbalanced retain i.e., ownership is transferred to theStatusbar
instance.Declaration
Swift
@inlinable public init!(_ op: UnsafeMutablePointer<GtkStatusbar>?)
Parameters
op
pointer to the underlying object
-
Designated initialiser from the underlying
C
data type. Will retainGtkStatusbar
. i.e., ownership is transferred to theStatusbar
instance.Declaration
Swift
@inlinable public init(retaining op: UnsafeMutablePointer<GtkStatusbar>)
Parameters
op
pointer to the underlying object
-
Reference intialiser for a related type that implements
StatusbarProtocol
Will retainGtkStatusbar
.Declaration
Swift
@inlinable public init<T>(statusbar other: T) where T : StatusbarProtocol
Parameters
other
an 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
cPointer
pointer 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
cPointer
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(raw p: UnsafeRawPointer)
Parameters
p
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 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
p
mutable 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
raw
mutable 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
p
opaque 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
p
opaque pointer to the underlying object
-
Creates a new
GtkStatusbar
ready for messages.Declaration
Swift
@inlinable public init()