Crate libhelium

source ·

Re-exports§

  • pub use ffi;
  • pub use gdk;
  • pub use gio;
  • pub use glib;
  • pub use gtk;

Modules§

Structs§

  • An AboutWindow is a window that displays information about the application.
  • This is an Abstract Base Class, you cannot instantiate it.
  • This is an Abstract Base Class, you cannot instantiate it.
  • 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.
  • An application.
  • An ApplicationWindow is a Window for holding the main content of an application.
  • An Avatar is an element that displays an image that represents a person.
  • A Badge is a small status indicator that can be used to provide additional information about an object.
  • A Banner is a widget that displays a message to the user and provides a way for the user to act on the message.
  • A helper class for subclassing custom widgets.
  • A BottomBar is a toolbar made to make actions on content more visible. It may have up to 5 actions on each side. It has title and description labels, which can be part of a menu's label.
  • A BottomSheet is a UI component made to showcase accessory actions. It may have an action button. It has a title label and contents.
  • A class to derive UI Buttons from.
  • A helper class to derive Buttons from.
  • GLib type: Boxed type with copy-on-clone semantics.
  • Implements
  • A Chip is an element that can facilitate entering information, making selections, filtering content, or triggering actions.
  • A ChipGroup is a holder widget for Chips.
  • A ContentBlock displays a single block of content, which contains an icon, text and optional buttons.
  • A ContentBlockImage component is used to render an image inside a ContentBlock.
  • A ContentBlockImageCluster is a cluster of images that are rendered together in the same content block.
  • A Content List is a list of content blocks with an optional title and description.
  • Properties
  • Helper class to deal with desktop-specific settings.
  • A Dialog is a modal window that asks the user for input or shows a message.
  • A Divider is a thin line that groups content in a view, can be full-width (default) or inset
  • A HeDropdown is a simple variant of GtkDropDown for easy developing.
  • An EmptyPage is a page that is used to display a message and a button when there is no data to display.
  • GLib type: Boxed type with copy-on-clone semantics.
  • GLib type: Boxed type with copy-on-clone semantics.
  • GLib type: Boxed type with copy-on-clone semantics.
  • A MiniContentBlock is a content block that is used to display content in a small area.
  • A ModiferBadge is a badge that can be used to show that the state of something has changed.
  • A NavigationRail is a vertical switcher that helps navigate a stack.
  • Properties
  • An OverlayButton is a widget that can be used to show action buttons above the widget that is being overlaid.
  • A Progressbar indicates the progress of some process and contains a disable-able Stop Indicator for accessibility purposes.
  • Properties
  • GLib type: Boxed type with copy-on-clone semantics.
  • A SegmentedButton is a group of buttons that selects a setting. The developer supplies the buttons as children for further coding in their app.
  • A SettingsList is a list of content blocks with an optional title and description.
  • Auxilary Class for handling the contents of Settings Windows
  • A SettingsRow is a settings row that is used to display content in a small area that is activatable if desired.
  • A modal window that accepts SettingsLists or SettingsPages
  • A SideBar is a complementary component containing its own AppBar, title, subtitle, and elements.
  • A Slider is a widget that is used to select a value by means of a dial running across a trough. Contains optional icons for the slider purpose, and a disable-able Stop Indicator for accessibility purposes. When using the Stop Indicator, it's advisable to add a mark with the value of 1.0 along the trough of the Slider so that the user can discern why the end point is marked.
  • Properties
  • Properties
  • A Switch is a widget that is used to toggle a setting on or off, or to indicate two modes via a toggle (ex. Light/Dark).
  • A SwitchBar is a widget that is used to identify primarily a switchable view below it.
  • Standard tab designed for TabSwitcher, used to form a tabbed UI
  • Auxilary Class for handling the contents of Tabs
  • TabBar widget designed for a variable number of tabs.
  • TextField is a GtkEntry-like subclass that is meant to be used in forms where input must be validated before the form can be submitted. It provides feedback to users about the state of input validation and keeps track of its own validation state. By default, input is considered invalid. This widget can also be used in place of a GtkEntry for HIG compliance purposes. Example
    var validated_entry = new He.TextField (); username_entry.changed.connect (() => { username_entry.is_valid = username_entry.text == “valid input”; });
    If the TextField.from_regex () constructor is used then the entry automatically sets its validity status. A valid regex must be passed to this constructor. Example
    GLib.Regex? regex = null; He.TextField only_lower_case_letters_entry; try { regex = new Regex (“^[a-z]*$”);
  • Properties
  • Properties
  • A Tip is a helper object for onboarding flow tips in an app's first launch.
  • A Toast is a widget containing a quick little message for the user with an optional action button.
  • A helper widget that implements a View that displays items.
  • A ViewAux shows a view with an optional side pane.
  • A ViewChooser is a chooser switcher that filters a stack's view.
  • A ViewDual is a view that displays two views side by side.
  • A ViewMono is a component containing its own AppBar, title, subtitle, and elements.
  • A ViewSubTitle is a view's subtitle.
  • A ViewSwitcher is a switcher that controls a stack's views.
  • A ViewTitle is a widget that displays a view's title.
  • A WelcomeScreen is a screen that presents options and actions before displaying the main application.
  • A Window is a container that has an HeAppBar and can be moved, resized, and closed. It may be a top-level window or a dialog. The title bar can be made always visible. Has an optional back button. The back button is only visible if has_back_button is true.
  • GLib type: Boxed type with copy-on-clone semantics.

Enums§