HeaderBar

Constructors

this
this(HdyHeaderBar* hdyHeaderBar, bool ownedRef = false)

Sets our main struct and passes it to the parent class.

this
this()

Creates a new #HdyHeaderBar widget.

Members

Functions

getCenteringPolicy
HdyCenteringPolicy getCenteringPolicy()

Gets the policy @self follows to horizontally align its center widget.

getCustomTitle
Widget getCustomTitle()

Retrieves the custom title widget of the header. See hdy_header_bar_set_custom_title().

getDecorationLayout
string getDecorationLayout()

Gets the decoration layout set with hdy_header_bar_set_decoration_layout().

getHasSubtitle
bool getHasSubtitle()

Retrieves whether the header bar reserves space for a subtitle, regardless if one is currently set or not.

getHeaderBarStruct
HdyHeaderBar* getHeaderBarStruct(bool transferOwnership = false)

Get the main Gtk struct

getInterpolateSize
bool getInterpolateSize()

Gets wether @self should interpolate its size on visible child change.

getShowCloseButton
bool getShowCloseButton()

Returns whether this header bar shows the standard window decorations.

getStruct
void* getStruct()

the main Gtk struct as a void*

getSubtitle
string getSubtitle()

Retrieves the subtitle of the header. See hdy_header_bar_set_subtitle().

getTitle
string getTitle()

Retrieves the title of the header. See hdy_header_bar_set_title().

getTransitionDuration
uint getTransitionDuration()

Returns the amount of time (in milliseconds) that transitions between pages in @self will take.

getTransitionRunning
bool getTransitionRunning()

Returns whether the @self is currently in a transition from one page to another.

packEnd
void packEnd(Widget child)

Adds @child to @self:, packed with reference to the end of the @self:.

packStart
void packStart(Widget child)

Adds @child to @self:, packed with reference to the start of the @self:.

setCenteringPolicy
void setCenteringPolicy(HdyCenteringPolicy centeringPolicy)

Sets the policy @self must follow to horizontally align its center widget.

setCustomTitle
void setCustomTitle(Widget titleWidget)

Sets a custom title for the #HdyHeaderBar.

setDecorationLayout
void setDecorationLayout(string layout)

Sets the decoration layout for this header bar, overriding the #GtkSettings:gtk-decoration-layout setting.

setHasSubtitle
void setHasSubtitle(bool setting)

Sets whether the header bar should reserve space for a subtitle, even if none is currently set.

setInterpolateSize
void setInterpolateSize(bool interpolateSize)

Sets whether or not @self will interpolate the size of its opposing orientation when changing the visible child. If %TRUE, @self will interpolate its size between the one of the previous visible child and the one of the new visible child, according to the set transition duration and the orientation, e.g. if @self is horizontal, it will interpolate the its height.

setShowCloseButton
void setShowCloseButton(bool setting)

Sets whether this header bar shows the standard window decorations, including close, maximize, and minimize.

setSubtitle
void setSubtitle(string subtitle)

Sets the subtitle of the #HdyHeaderBar. The title should give a user an additional detail to help him identify the current view.

setTitle
void setTitle(string title)

Sets the title of the #HdyHeaderBar. The title should help a user identify the current view. A good title should not include the application name.

setTransitionDuration
void setTransitionDuration(uint duration)

Sets the duration that transitions between pages in @self will take.

Static functions

getType
GType getType()

Variables

hdyHeaderBar
HdyHeaderBar* hdyHeaderBar;

the main Gtk struct

Meta