AppBar
Object Hierarchy:
He.AppBar
He.AppBar
He.AppBar
He.Bin
He.Bin
He.Bin->He.AppBar
Gtk.Widget
Gtk.Widget
Gtk.Widget->He.Bin
GLib.InitiallyUnowned
GLib.InitiallyUnowned
GLib.InitiallyUnowned->Gtk.Widget
GLib.Object
GLib.Object
GLib.Object->GLib.InitiallyUnowned
Gtk.Accessible
Gtk.Accessible
Gtk.Accessible->Gtk.Widget
Gtk.Buildable
Gtk.Buildable
Gtk.Buildable->He.Bin
Gtk.Buildable->Gtk.Widget
Gtk.ConstraintTarget
Gtk.ConstraintTarget
Gtk.ConstraintTarget->Gtk.Widget
Description:
public class AppBar :
Bin
An AppBar is the header bar of an Window. It usually provides controls to manage the window, as well as optional children for more
granular control.
Content:
Properties:
public string decoration_layout { get ; set ; }
The layout of the window buttons a.k.a. where to put close, maximize,
minimize. It is a string in the format "<left>:<right>".
public bool is_compact { get ; set ; }
public ScrolledWindow scroller { get ; set ; }
The ScrolledWindow that the AppBar is associated with. This is used to
move the view's title to the AppBar and unsetting flatness.
public bool show_back { get ; set ; }
Whether the back button is shown.
public bool show_left_title_buttons { get ; set ; }
Whether the close, minimize and maximize buttons are shown.
public bool show_right_title_buttons { get ; set ; }
Whether the close, minimize and maximize buttons are shown.
public Stack stack { get ; set ; }
The stack that the AppBar is associated with. This is used to
determine the back button's functionality.
public string viewsubtitle_label { get ; set ; }
The subtitle to the left on the AppBar.
public Widget ? viewtitle_widget { get ; set ; }
The title widget to the left on the AppBar. If this is set, the other
title (not subtitle) props won't work, and the mini title on collapsed state won't show.
Creation methods:
public AppBar ()
Creates a new AppBar.
Methods:
public override void add_child (Builder builder, Object child, string ? type)
Add a child to the AppBar, should only be used in the context of a UI
or Blueprint file. There should be no need to use this method in code. Please note that an AppBar should only have at most three
children.
public void append (Widget child)
Append a child to the AppBar. Please note that an AppBar should only
have at most three children.
public void append_menu (Widget child)
Append a menubutton child to the AppBar. Please note that an AppBar
should only have at most three children.
public void append_toggle (Widget child)
Append a togglebutton child to the AppBar. Please note that an AppBar
should only have at most three children.
public void remove (Widget child)
Remove a child from the AppBar.
Fields:
public Button back_button
The button to go back one view displayed in the AppBar.
public Box btn_box
The button box in the AppBar, shows below and to the right side of the
title, or alongside the window controls, based on scrollers.
Inherited Members:
All known members inherited from class He.Bin
All known members inherited from class Gtk.Widget
All known members inherited from class GLib.Object
@get
@new
@ref
@set
add_toggle_ref
add_weak_pointer
bind_property
connect
constructed
disconnect
dispose
dup_data
dup_qdata
force_floating
freeze_notify
get_class
get_data
get_property
get_qdata
get_type
getv
interface_find_property
interface_install_property
interface_list_properties
is_floating
new_valist
new_with_properties
newv
notify
notify_property
ref_count
ref_sink
remove_toggle_ref
remove_weak_pointer
replace_data
replace_qdata
set_data
set_data_full
set_property
set_qdata
set_qdata_full
set_valist
setv
steal_data
steal_qdata
thaw_notify
unref
watch_closure
weak_ref
weak_unref
All known members inherited from interface Gtk.Buildable
add_child
custom_finished
custom_tag_end
custom_tag_start
get_buildable_id
get_id
get_internal_child
parser_finished
set_buildable_property
set_id
All known members inherited from interface Gtk.Accessible
accessible_role
announce
get_accessible_parent
get_accessible_role
get_at_context
get_bounds
get_first_accessible_child
get_next_accessible_sibling
get_platform_state
reset_property
reset_relation
reset_state
set_accessible_parent
update_next_accessible_sibling
update_property
update_property_value
update_relation
update_relation_value
update_state
update_state_value