Skip to main content

@gtkx/react

Functions

FunctionDescription
createPortalCreates a portal that renders children into a different GTK widget container.
quitQuits the GTK application and cleans up resources. Unmounts the React tree and stops the GTK main loop.
renderRenders a React element tree as a GTK application. This is the main entry point for GTKX applications.

Variables

VariableDescription
AboutDialogDisplays information about a program.
ActionBarPresents contextual actions.
AppChooserButtonThe GtkAppChooserButton lets the user select an application.
AppChooserDialogGtkAppChooserDialog shows a GtkAppChooserWidget inside a GtkDialog.
AppChooserWidgetGtkAppChooserWidget is a widget for selecting applications.
ApplicationWindowA GtkWindow subclass that integrates with GtkApplication.
AspectFramePreserves the aspect ratio of its child.
AssistantGtkAssistant is used to represent a complex as a series of steps.
BoxArranges child widgets into a single row or column.
ButtonCalls a callback function when the button is clicked.
CalendarDisplays a Gregorian calendar, one month at a time.
CellViewA widget displaying a single row of a GtkTreeModel
CenterBoxArranges three children in a row, keeping the middle child centered as well as possible.
CheckButtonPlaces a label next to an indicator.
ColorButtonThe GtkColorButton allows to open a color chooser dialog to change the color.
ColorChooserDialogA dialog for choosing a color.
ColorChooserWidgetThe GtkColorChooserWidget widget lets the user select a color.
ColorDialogButtonOpens a color chooser dialog to select a color.
ColumnViewPresents a large dynamic list of items using multiple columns with headers.
ComboBoxA GtkComboBox is a widget that allows the user to choose from a list of valid choices.
ComboBoxTextA GtkComboBoxText is a simple variant of GtkComboBox for text-only use cases.
CONSTRUCTOR_PARAMS-
createRef-
DialogDialogs are a convenient way to prompt the user for a small amount of input.
DragIconA GtkRoot implementation for drag icons.
DrawingAreaAllows drawing with cairo.
DropDownAllows the user to choose an item from a list of options.
EditableLabelAllows users to edit the displayed text by switching to an “edit mode”.
EmojiChooserUsed by text widgets to let users insert Emoji characters.
EntryA single-line text entry widget.
ExpanderAllows the user to reveal or conceal a child widget.
FileChooserDialogGtkFileChooserDialog is a dialog suitable for use with “File Open” or “File Save” commands.
FileChooserWidgetGtkFileChooserWidget is a widget for choosing files.
FixedPlaces its child widgets at fixed positions and with fixed sizes.
FlowBoxPuts child widgets in a reflowing grid.
FlowBoxChildThe kind of widget that can be added to a GtkFlowBox.
FontButtonThe GtkFontButton allows to open a font chooser dialog to change the font.
FontChooserDialogThe GtkFontChooserDialog widget is a dialog for selecting a font.
FontChooserWidgetThe GtkFontChooserWidget widget lets the user select a font.
FontDialogButtonOpens a font chooser dialog to select a font.
FrameSurrounds its child with a decorative frame and an optional label.
GLAreaAllows drawing with OpenGL.
GraphicsOffloadBypasses gsk rendering by passing the content of its child directly to the compositor.
GridArranges its child widgets in rows and columns.
GridViewPresents a large dynamic grid of items.
HeaderBarCreates a custom titlebar for a window.
IconViewGtkIconView is a widget which displays data in a grid of icons.
ImageDisplays an image.
InfoBarGtkInfoBar can be used to show messages to the user without a dialog.
InscriptionShows text in a predefined area.
LabelDisplays a small amount of text.
LevelBarShows a level indicator.
LinkButtonA button with a hyperlink.
ListBaseThe abstract base class for GTK's list widgets.
ListBoxShows a vertical list.
ListBoxRowThe kind of widget that can be added to a GtkListBox.
ListViewPresents a large dynamic list of items.
LockButtonGtkLockButton is a widget to obtain and revoke authorizations needed to operate the controls.
MediaControlsShows controls for video playback.
MenuButtonDisplays a popup when clicked.
MessageDialogGtkMessageDialog presents a dialog with some message text.
NotebookSwitches between children using tabs.
OverlayPlaces “overlay” widgets on top of a single main child.
PageSetupUnixDialogPresents a page setup dialog for platforms which don’t provide a native page setup dialog, like Unix.
PanedArranges its children in two panes, horizontally or vertically.
PasswordEntryA single-line text entry widget for entering passwords and other secrets.
PictureDisplays a GdkPaintable.
PopoverPresents a bubble-like popup.
PopoverMenuA subclass of GtkPopover that implements menu behavior.
PopoverMenuBarPresents a horizontal bar of items that pop up menus when clicked.
PrintUnixDialogA print dialog for platforms which don’t provide a native print dialog, like Unix.
ProgressBarDisplays the progress of a long-running operation.
RangeBase class for widgets which visualize an adjustment.
reconcilerThe singleton GTKX React reconciler instance.
RevealerAnimates the transition of its child from invisible to visible.
ScaleAllows to select a numeric value with a slider control.
ScaleButtonProvides a button which pops up a scale widget.
ScrollbarShows a horizontal or vertical scrollbar.
ScrolledWindowMakes its child scrollable.
SearchBarReveals a search entry when search is started.
SearchEntryA single-line text entry widget for use as a search entry.
SeparatorDraws a horizontal or vertical line to separate other widgets.
SETTER_GETTERS-
ShortcutLabelGtkShortcutLabel displays a single keyboard shortcut or gesture.
ShortcutsGroupA GtkShortcutsGroup represents a group of related keyboard shortcuts or gestures.
ShortcutsSectionA GtkShortcutsSection collects all the keyboard shortcuts and gestures for a major application mode.
ShortcutsShortcutA GtkShortcutsShortcut represents a single keyboard shortcut or gesture with a short text.
ShortcutsWindowA GtkShortcutsWindow shows information about the keyboard shortcuts and gestures of an application.
SpinButtonAllows to enter or change numeric values.
SpinnerDisplays an icon-size spinning animation.
StackShows one of its children at a time.
StackSidebarUses a sidebar to switch between GtkStack pages.
StackSwitcherShows a row of buttons to switch between GtkStack pages.
StatusbarA GtkStatusbar widget is usually placed along the bottom of an application's main [class@Gtk.Window].
SwitchShows a "light switch" that has two states: on or off.
TextA single-line text entry.
TextViewDisplays the contents of a [class@Gtk.TextBuffer].
ToggleButtonShows a button which remains “pressed-in” when clicked.
TreeExpanderProvides an expander for a tree-like list.
TreeViewA widget for displaying both trees and lists
VideoShows a GtkMediaStream with media controls.
ViewportImplements scrollability for widgets that don't support scrolling on their own.
VolumeButtonGtkVolumeButton is a GtkScaleButton subclass tailored for volume control.
WidgetThe base class for all widgets.
WindowA toplevel window which can contain other widgets.
WindowControlsShows window frame controls.
WindowHandleImplements titlebar functionality for a window.

Interfaces

InterfaceDescription
AboutDialogPropsProps for the AboutDialog widget.
ActionBarPropsProps for the ActionBar widget.
AppChooserButtonPropsProps for the AppChooserButton widget.
AppChooserDialogPropsProps for the AppChooserDialog widget.
AppChooserWidgetPropsProps for the AppChooserWidget widget.
ApplicationWindowPropsProps for the ApplicationWindow widget.
AspectFramePropsProps for the AspectFrame widget.
AssistantPropsProps for the Assistant widget.
BoxPropsProps for the Box widget.
ButtonPropsProps for the Button widget.
CalendarPropsProps for the Calendar widget.
CellViewPropsProps for the CellView widget.
CenterBoxPropsProps for the CenterBox widget.
CheckButtonPropsProps for the CheckButton widget.
ColorButtonPropsProps for the ColorButton widget.
ColorChooserDialogPropsProps for the ColorChooserDialog widget.
ColorChooserWidgetPropsProps for the ColorChooserWidget widget.
ColorDialogButtonPropsProps for the ColorDialogButton widget.
ColumnViewPropsProps for the ColumnView widget.
ComboBoxPropsProps for the ComboBox widget.
ComboBoxTextPropsProps for the ComboBoxText widget.
DialogPropsProps for the Dialog widget.
DragIconPropsProps for the DragIcon widget.
DrawingAreaPropsProps for the DrawingArea widget.
DropDownPropsProps for the DropDown widget.
EditableLabelPropsProps for the EditableLabel widget.
EmojiChooserPropsProps for the EmojiChooser widget.
EntryPropsProps for the Entry widget.
ExpanderPropsProps for the Expander widget.
FileChooserDialogPropsProps for the FileChooserDialog widget.
FileChooserWidgetPropsProps for the FileChooserWidget widget.
FixedPropsProps for the Fixed widget.
FlowBoxChildPropsProps for the FlowBoxChild widget.
FlowBoxPropsProps for the FlowBox widget.
FontButtonPropsProps for the FontButton widget.
FontChooserDialogPropsProps for the FontChooserDialog widget.
FontChooserWidgetPropsProps for the FontChooserWidget widget.
FontDialogButtonPropsProps for the FontDialogButton widget.
FramePropsProps for the Frame widget.
GLAreaPropsProps for the GLArea widget.
GraphicsOffloadPropsProps for the GraphicsOffload widget.
GridChildProps-
GridPropsProps for the Grid widget.
GridViewPropsProps for the GridView widget.
HeaderBarPropsProps for the HeaderBar widget.
IconViewPropsProps for the IconView widget.
ImagePropsProps for the Image widget.
InfoBarPropsProps for the InfoBar widget.
InscriptionPropsProps for the Inscription widget.
LabelPropsProps for the Label widget.
LevelBarPropsProps for the LevelBar widget.
LinkButtonPropsProps for the LinkButton widget.
ListBasePropsProps for the ListBase widget.
ListBoxPropsProps for the ListBox widget.
ListBoxRowPropsProps for the ListBoxRow widget.
ListItemProps-
ListViewPropsProps for the ListView widget.
LockButtonPropsProps for the LockButton widget.
MediaControlsPropsProps for the MediaControls widget.
MenuButtonPropsProps for the MenuButton widget.
MessageDialogPropsProps for the MessageDialog widget.
NotebookPropsProps for the Notebook widget.
OverlayPropsProps for the Overlay widget.
PageSetupUnixDialogPropsProps for the PageSetupUnixDialog widget.
PanedPropsProps for the Paned widget.
PasswordEntryPropsProps for the PasswordEntry widget.
PicturePropsProps for the Picture widget.
PopoverMenuBarPropsProps for the PopoverMenuBar widget.
PopoverMenuPropsProps for the PopoverMenu widget.
PopoverPropsProps for the Popover widget.
PrintUnixDialogPropsProps for the PrintUnixDialog widget.
ProgressBarPropsProps for the ProgressBar widget.
RangePropsProps for the Range widget.
RevealerPropsProps for the Revealer widget.
ScaleButtonPropsProps for the ScaleButton widget.
ScalePropsProps for the Scale widget.
ScrollbarPropsProps for the Scrollbar widget.
ScrolledWindowPropsProps for the ScrolledWindow widget.
SearchBarPropsProps for the SearchBar widget.
SearchEntryPropsProps for the SearchEntry widget.
SeparatorPropsProps for the Separator widget.
ShortcutLabelPropsProps for the ShortcutLabel widget.
ShortcutsGroupPropsProps for the ShortcutsGroup widget.
ShortcutsSectionPropsProps for the ShortcutsSection widget.
ShortcutsShortcutPropsProps for the ShortcutsShortcut widget.
ShortcutsWindowPropsProps for the ShortcutsWindow widget.
SlotProps-
SpinButtonPropsProps for the SpinButton widget.
SpinnerPropsProps for the Spinner widget.
StackPropsProps for the Stack widget.
StackSidebarPropsProps for the StackSidebar widget.
StackSwitcherPropsProps for the StackSwitcher widget.
StatusbarPropsProps for the Statusbar widget.
SwitchPropsProps for the Switch widget.
TextPropsProps for the Text widget.
TextViewPropsProps for the TextView widget.
ToggleButtonPropsProps for the ToggleButton widget.
TreeExpanderPropsProps for the TreeExpander widget.
TreeViewPropsProps for the TreeView widget.
VideoPropsProps for the Video widget.
ViewportPropsProps for the Viewport widget.
VolumeButtonPropsProps for the VolumeButton widget.
WidgetPropsThe base class for all widgets.
WindowControlsPropsProps for the WindowControls widget.
WindowHandlePropsProps for the WindowHandle widget.
WindowPropsProps for the Window widget.