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.
  • 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 helper class to derive Buttons from.
  • A helper class to derive Buttons from.
  • 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 Disclosure Button is a view-based button that acts on said view.
  • A Divider is a thin line that groups content in a view, can be full-width (default) or inset
  • An EmptyPage is a page that is used to display a message and a button when there is no data to display.
  • A FillButton is a solid button with a label.
  • An Iconic Button is used in a HeBottomBar to display an action.
  • 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 Outline button is a transparent FillButton with a border.
  • An OverlayButton is a widget that can be used to show action buttons above the widget that is being overlaid.
  • A PillButton is a solid button with a label. It is more round and larger than a FillButton.
  • A Progressbar indicates the progress of some process and contains a disable-able Stop Indicator for accessibility purposes.
  • 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.
  • 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.
  • A TextButton is a button that displays text. It has a transparent background.
  • 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
  • A TintButton is similar to a FillButton, except that the color of the button has a tinted appearance. In addition, the TintButton also support icons.
  • 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 view that is a single-column layout.
  • 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.

Enums§