adw

MoonBit bindings for libadwaita (Adw) widgets

adwaita
libadwaita
adw
ffi
native
gui
gnome
moon add tonyfettes/adw@0.2.0
Download zip
Version
0.2.0
License
Apache-2.0
Last updated
23 days ago
Downloads
5
README

tonyfettes/adw does not have a README file

#
IActionRow

pub(open) trait IActionRow {
fn as_action_row(Self) -> ActionRow
fn activate(Self) -> Unit = _
fn add_prefix(Self, &
IWidget
) -> Unit = _
fn add_suffix(Self, &
IWidget
) -> Unit = _
fn get_activatable_widget(Self) ->
Widget
? = _
fn get_subtitle(Self) -> String? = _
fn get_subtitle_lines(Self) -> Int = _
fn get_subtitle_selectable(Self) -> Bool = _
fn get_title_lines(Self) -> Int = _
fn remove(Self, &
IWidget
) -> Unit = _
fn set_activatable_widget(Self, &
IWidget
?) -> Unit = _
fn set_subtitle(Self, String) -> Unit = _
fn set_subtitle_lines(Self, Int) -> Unit = _
fn set_subtitle_selectable(Self, Bool) -> Unit = _
fn set_title_lines(Self, Int) -> Unit = _
fn connect_activated(Self, (ActionRow) -> Unit) -> UInt64 = _
}

#
IApplication

pub(open) trait IApplication {
fn as_application(Self) -> Application
}

#
IApplicationWindow

pub(open) trait IApplicationWindow {
fn as_application_window(Self) -> ApplicationWindow
fn get_adaptive_preview(Self) -> Bool = _
fn get_content(Self) ->
Widget
? = _
fn set_adaptive_preview(Self, Bool) -> Unit = _
fn set_content(Self, &
IWidget
?) -> Unit = _
}

#
IClamp

pub(open) trait IClamp {
fn as_clamp(Self) -> Clamp
fn get_child(Self) ->
Widget
? = _
fn get_maximum_size(Self) -> Int = _
fn get_tightening_threshold(Self) -> Int = _
fn get_unit(Self) -> LengthUnit = _
fn set_child(Self, &
IWidget
?) -> Unit = _
fn set_maximum_size(Self, Int) -> Unit = _
fn set_tightening_threshold(Self, Int) -> Unit = _
fn set_unit(Self, LengthUnit) -> Unit = _
}

#
IHeaderBar

pub(open) trait IHeaderBar {
fn as_header_bar(Self) -> HeaderBar
fn get_centering_policy(Self) -> CenteringPolicy = _
fn get_decoration_layout(Self) -> String? = _
fn get_show_back_button(Self) -> Bool = _
fn get_show_end_title_buttons(Self) -> Bool = _
fn get_show_start_title_buttons(Self) -> Bool = _
fn get_show_title(Self) -> Bool = _
fn get_title_widget(Self) ->
Widget
? = _
fn pack_end(Self, &
IWidget
) -> Unit = _
fn pack_start(Self, &
IWidget
) -> Unit = _
fn remove(Self, &
IWidget
) -> Unit = _
fn set_centering_policy(Self, CenteringPolicy) -> Unit = _
fn set_decoration_layout(Self, String?) -> Unit = _
fn set_show_back_button(Self, Bool) -> Unit = _
fn set_show_end_title_buttons(Self, Bool) -> Unit = _
fn set_show_start_title_buttons(Self, Bool) -> Unit = _
fn set_show_title(Self, Bool) -> Unit = _
fn set_title_widget(Self, &
IWidget
?) -> Unit = _
}

#
IPreferencesRow

pub(open) trait IPreferencesRow {
fn as_preferences_row(Self) -> PreferencesRow
fn get_title(Self) -> String = _
fn get_title_selectable(Self) -> Bool = _
fn get_use_markup(Self) -> Bool = _
fn get_use_underline(Self) -> Bool = _
fn set_title(Self, String) -> Unit = _
fn set_title_selectable(Self, Bool) -> Unit = _
fn set_use_markup(Self, Bool) -> Unit = _
fn set_use_underline(Self, Bool) -> Unit = _
}

#
IToolbarView

pub(open) trait IToolbarView {
fn as_toolbar_view(Self) -> ToolbarView
fn add_bottom_bar(Self, &
IWidget
) -> Unit = _
fn add_top_bar(Self, &
IWidget
) -> Unit = _
fn get_bottom_bar_height(Self) -> Int = _
fn get_bottom_bar_style(Self) -> ToolbarStyle = _
fn get_content(Self) ->
Widget
? = _
fn get_extend_content_to_bottom_edge(Self) -> Bool = _
fn get_extend_content_to_top_edge(Self) -> Bool = _
fn get_reveal_bottom_bars(Self) -> Bool = _
fn get_reveal_top_bars(Self) -> Bool = _
fn get_top_bar_height(Self) -> Int = _
fn get_top_bar_style(Self) -> ToolbarStyle = _
fn remove(Self, &
IWidget
) -> Unit = _
fn set_bottom_bar_style(Self, ToolbarStyle) -> Unit = _
fn set_content(Self, &
IWidget
?) -> Unit = _
fn set_extend_content_to_bottom_edge(Self, Bool) -> Unit = _
fn set_extend_content_to_top_edge(Self, Bool) -> Unit = _
fn set_reveal_bottom_bars(Self, Bool) -> Unit = _
fn set_reveal_top_bars(Self, Bool) -> Unit = _
fn set_top_bar_style(Self, ToolbarStyle) -> Unit = _
}

#
VActionRowActivate

pub(open) trait VActionRowActivate {
fn activate(Self, ActionRow) -> Unit
}

Implementation contract for ActionRow.activate. Self is the retained MoonBit state; the second parameter is the invoked ActionRow object.

#
ActionRow

pub type ActionRow

#
ActionRow::activate

fn ActionRow::activate(self : ActionRow) -> Unit

#
ActionRow::add_prefix

fn ActionRow::add_prefix(self : ActionRow, widget : &
IWidget
) -> Unit

#
ActionRow::add_suffix

fn ActionRow::add_suffix(self : ActionRow, widget : &
IWidget
) -> Unit

#
ActionRow::as_gobject_object

fn ActionRow::as_gobject_object(self : ActionRow) ->
Object

#
ActionRow::as_gtk_list_box_row

fn ActionRow::as_gtk_list_box_row(self : ActionRow) ->
ListBoxRow

#
ActionRow::as_gtk_widget

fn ActionRow::as_gtk_widget(self : ActionRow) ->
Widget

#
ActionRow::as_preferences_row

fn ActionRow::as_preferences_row(self : ActionRow) -> PreferencesRow

#
ActionRow::connect_activated

fn ActionRow::connect_activated(self : ActionRow, f : (ActionRow) -> Unit) -> UInt64

#
ActionRow::get_activatable_widget

fn ActionRow::get_activatable_widget(self : ActionRow) ->
Widget
?

#
ActionRow::get_subtitle

fn ActionRow::get_subtitle(self : ActionRow) -> String?

#
ActionRow::get_subtitle_lines

fn ActionRow::get_subtitle_lines(self : ActionRow) -> Int

#
ActionRow::get_subtitle_selectable

fn ActionRow::get_subtitle_selectable(self : ActionRow) -> Bool

#
ActionRow::get_title_lines

fn ActionRow::get_title_lines(self : ActionRow) -> Int

#
ActionRow::remove

fn ActionRow::remove(self : ActionRow, widget : &
IWidget
) -> Unit

#
ActionRow::set_activatable_widget

fn ActionRow::set_activatable_widget(self : ActionRow, widget : &
IWidget
?) -> Unit

#
ActionRow::set_subtitle

fn ActionRow::set_subtitle(self : ActionRow, subtitle : String) -> Unit

#
ActionRow::set_subtitle_lines

fn ActionRow::set_subtitle_lines(self : ActionRow, subtitle_lines : Int) -> Unit

#
ActionRow::set_subtitle_selectable

fn ActionRow::set_subtitle_selectable(self : ActionRow, subtitle_selectable : Bool) -> Unit

#
ActionRow::set_title_lines

fn ActionRow::set_title_lines(self : ActionRow, title_lines : Int) -> Unit

#
Application

pub type Application

#
Application::as_gio_action_group

#
Application::as_gio_application

#
Application::as_gobject_object

#
Application::as_gtk_application

#
Application::new

fn Application::new(application_id : String?, flags :
ApplicationFlags
) -> Application

#
ApplicationWindow

pub type ApplicationWindow

#
ApplicationWindow::as_gio_action_group

#
ApplicationWindow::as_gobject_object

#
ApplicationWindow::as_gtk_application_window

#
ApplicationWindow::as_gtk_native

#
ApplicationWindow::as_gtk_root

#
ApplicationWindow::as_gtk_widget

#
ApplicationWindow::as_gtk_window

#
ApplicationWindow::get_adaptive_preview

fn ApplicationWindow::get_adaptive_preview(self : ApplicationWindow) -> Bool

#
ApplicationWindow::get_content

#
ApplicationWindow::set_adaptive_preview

fn ApplicationWindow::set_adaptive_preview(self : ApplicationWindow, adaptive_preview : Bool) -> Unit

#
ApplicationWindow::set_content

fn ApplicationWindow::set_content(self : ApplicationWindow, content : &
IWidget
?) -> Unit

#
CenteringPolicy

pub(all) enum CenteringPolicy {
Loose
Strict
}

#
Clamp

pub type Clamp
impl IClamp for Clamp
impl IWidget for Clamp

#
Clamp::as_gobject_object

fn Clamp::as_gobject_object(self : Clamp) ->
Object

#
Clamp::as_gtk_widget

fn Clamp::as_gtk_widget(self : Clamp) ->
Widget

#
Clamp::get_child

fn Clamp::get_child(self : Clamp) ->
Widget
?

#
Clamp::get_maximum_size

fn Clamp::get_maximum_size(self : Clamp) -> Int

#
Clamp::get_tightening_threshold

fn Clamp::get_tightening_threshold(self : Clamp) -> Int

#
Clamp::get_unit

fn Clamp::get_unit(self : Clamp) -> LengthUnit

#
Clamp::new

fn Clamp::new() -> Clamp

#
Clamp::set_child

fn Clamp::set_child(self : Clamp, child : &
IWidget
?) -> Unit

#
Clamp::set_maximum_size

fn Clamp::set_maximum_size(self : Clamp, maximum_size : Int) -> Unit

#
Clamp::set_tightening_threshold

fn Clamp::set_tightening_threshold(self : Clamp, tightening_threshold : Int) -> Unit

#
Clamp::set_unit

fn Clamp::set_unit(self : Clamp, unit : LengthUnit) -> Unit

#
HeaderBar

pub type HeaderBar

#
HeaderBar::as_gobject_object

fn HeaderBar::as_gobject_object(self : HeaderBar) ->
Object

#
HeaderBar::as_gtk_widget

fn HeaderBar::as_gtk_widget(self : HeaderBar) ->
Widget

#
HeaderBar::get_centering_policy

fn HeaderBar::get_centering_policy(self : HeaderBar) -> CenteringPolicy

#
HeaderBar::get_decoration_layout

fn HeaderBar::get_decoration_layout(self : HeaderBar) -> String?

#
HeaderBar::get_show_back_button

fn HeaderBar::get_show_back_button(self : HeaderBar) -> Bool

#
HeaderBar::get_show_end_title_buttons

fn HeaderBar::get_show_end_title_buttons(self : HeaderBar) -> Bool

#
HeaderBar::get_show_start_title_buttons

fn HeaderBar::get_show_start_title_buttons(self : HeaderBar) -> Bool

#
HeaderBar::get_show_title

fn HeaderBar::get_show_title(self : HeaderBar) -> Bool

#
HeaderBar::get_title_widget

fn HeaderBar::get_title_widget(self : HeaderBar) ->
Widget
?

#
HeaderBar::pack_end

fn HeaderBar::pack_end(self : HeaderBar, child : &
IWidget
) -> Unit

#
HeaderBar::pack_start

fn HeaderBar::pack_start(self : HeaderBar, child : &
IWidget
) -> Unit

#
HeaderBar::remove

fn HeaderBar::remove(self : HeaderBar, child : &
IWidget
) -> Unit

#
HeaderBar::set_centering_policy

fn HeaderBar::set_centering_policy(self : HeaderBar, centering_policy : CenteringPolicy) -> Unit

#
HeaderBar::set_decoration_layout

fn HeaderBar::set_decoration_layout(self : HeaderBar, layout : String?) -> Unit

#
HeaderBar::set_show_back_button

fn HeaderBar::set_show_back_button(self : HeaderBar, show_back_button : Bool) -> Unit

#
HeaderBar::set_show_end_title_buttons

fn HeaderBar::set_show_end_title_buttons(self : HeaderBar, setting : Bool) -> Unit

#
HeaderBar::set_show_start_title_buttons

fn HeaderBar::set_show_start_title_buttons(self : HeaderBar, setting : Bool) -> Unit

#
HeaderBar::set_show_title

fn HeaderBar::set_show_title(self : HeaderBar, show_title : Bool) -> Unit

#
HeaderBar::set_title_widget

fn HeaderBar::set_title_widget(self : HeaderBar, title_widget : &
IWidget
?) -> Unit

#
LengthUnit

pub(all) enum LengthUnit {
Px
Pt
Sp
}
pub type NavigationPage

fn NavigationPage::new(child : &
IWidget
, title : String) -> NavigationPage

fn NavigationPage::set_child(self : NavigationPage, child : &
IWidget
) -> Unit

fn NavigationPage::set_title(self : NavigationPage, title : String) -> Unit

pub type NavigationSplitView

fn NavigationSplitView::set_content(self : NavigationSplitView, page : NavigationPage) -> Unit

fn NavigationSplitView::set_max_sidebar_width(self : NavigationSplitView, width : Double) -> Unit

fn NavigationSplitView::set_min_sidebar_width(self : NavigationSplitView, width : Double) -> Unit

fn NavigationSplitView::set_sidebar(self : NavigationSplitView, page : NavigationPage) -> Unit

fn NavigationSplitView::set_sidebar_width_fraction(self : NavigationSplitView, fraction : Double) -> Unit

#
PreferencesRow

pub type PreferencesRow

#
PreferencesRow::as_gobject_object

#
PreferencesRow::as_gtk_list_box_row

#
PreferencesRow::as_gtk_widget

#
PreferencesRow::get_title

fn PreferencesRow::get_title(self : PreferencesRow) -> String

#
PreferencesRow::get_title_selectable

fn PreferencesRow::get_title_selectable(self : PreferencesRow) -> Bool

#
PreferencesRow::get_use_markup

fn PreferencesRow::get_use_markup(self : PreferencesRow) -> Bool

#
PreferencesRow::get_use_underline

fn PreferencesRow::get_use_underline(self : PreferencesRow) -> Bool

#
PreferencesRow::set_title

fn PreferencesRow::set_title(self : PreferencesRow, title : String) -> Unit

#
PreferencesRow::set_title_selectable

fn PreferencesRow::set_title_selectable(self : PreferencesRow, title_selectable : Bool) -> Unit

#
PreferencesRow::set_use_markup

fn PreferencesRow::set_use_markup(self : PreferencesRow, use_markup : Bool) -> Unit

#
PreferencesRow::set_use_underline

fn PreferencesRow::set_use_underline(self : PreferencesRow, use_underline : Bool) -> Unit

#
ToolbarStyle

pub(all) enum ToolbarStyle {
Flat
Raised
RaisedBorder
}

#
ToolbarView

pub type ToolbarView

#
ToolbarView::add_bottom_bar

fn ToolbarView::add_bottom_bar(self : ToolbarView, widget : &
IWidget
) -> Unit

#
ToolbarView::add_top_bar

fn ToolbarView::add_top_bar(self : ToolbarView, widget : &
IWidget
) -> Unit

#
ToolbarView::as_gobject_object

#
ToolbarView::as_gtk_widget

#
ToolbarView::get_bottom_bar_height

fn ToolbarView::get_bottom_bar_height(self : ToolbarView) -> Int

#
ToolbarView::get_bottom_bar_style

fn ToolbarView::get_bottom_bar_style(self : ToolbarView) -> ToolbarStyle

#
ToolbarView::get_content

#
ToolbarView::get_extend_content_to_bottom_edge

fn ToolbarView::get_extend_content_to_bottom_edge(self : ToolbarView) -> Bool

#
ToolbarView::get_extend_content_to_top_edge

fn ToolbarView::get_extend_content_to_top_edge(self : ToolbarView) -> Bool

#
ToolbarView::get_reveal_bottom_bars

fn ToolbarView::get_reveal_bottom_bars(self : ToolbarView) -> Bool

#
ToolbarView::get_reveal_top_bars

fn ToolbarView::get_reveal_top_bars(self : ToolbarView) -> Bool

#
ToolbarView::get_top_bar_height

fn ToolbarView::get_top_bar_height(self : ToolbarView) -> Int

#
ToolbarView::get_top_bar_style

fn ToolbarView::get_top_bar_style(self : ToolbarView) -> ToolbarStyle

#
ToolbarView::remove

fn ToolbarView::remove(self : ToolbarView, widget : &
IWidget
) -> Unit

#
ToolbarView::set_bottom_bar_style

fn ToolbarView::set_bottom_bar_style(self : ToolbarView, style : ToolbarStyle) -> Unit

#
ToolbarView::set_content

fn ToolbarView::set_content(self : ToolbarView, content : &
IWidget
?) -> Unit

#
ToolbarView::set_extend_content_to_bottom_edge

fn ToolbarView::set_extend_content_to_bottom_edge(self : ToolbarView, extend_ : Bool) -> Unit

#
ToolbarView::set_extend_content_to_top_edge

fn ToolbarView::set_extend_content_to_top_edge(self : ToolbarView, extend_ : Bool) -> Unit

#
ToolbarView::set_reveal_bottom_bars

fn ToolbarView::set_reveal_bottom_bars(self : ToolbarView, reveal : Bool) -> Unit

#
ToolbarView::set_reveal_top_bars

fn ToolbarView::set_reveal_top_bars(self : ToolbarView, reveal : Bool) -> Unit

#
ToolbarView::set_top_bar_style

fn ToolbarView::set_top_bar_style(self : ToolbarView, style : ToolbarStyle) -> Unit

#
DURATION_INFINITE

let DURATION_INFINITE : UInt