gi-gtk-3.0.11: Gtk bindings

CopyrightWill Thompson, Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (garetxe@gmail.com)
Safe HaskellNone
LanguageHaskell2010

GI.Gtk.Interfaces.Buildable

Contents

Description

GtkBuildable allows objects to extend and customize their deserialization from [GtkBuilder UI descriptions][BUILDER-UI]. The interface includes methods for setting names and properties of objects, parsing custom tags and constructing child objects.

The GtkBuildable interface is implemented by all widgets and many of the non-widget objects that are provided by GTK+. The main user of this interface is Builder. There should be very little need for applications to call any of these functions directly.

An object only needs to implement this interface if it needs to extend the Builder format or run any extra routines at deserialization time.

Synopsis

Exported types

class GObject o => IsBuildable o Source #

Instances

(GObject a, UnknownAncestorError Constraint Buildable a) => IsBuildable a Source # 
IsBuildable Window Source # 
IsBuildable Widget Source # 
IsBuildable TreeViewColumn Source # 
IsBuildable TreeView Source # 
IsBuildable ToolItemGroup Source # 
IsBuildable ToolItem Source # 
IsBuildable ToolButton Source # 
IsBuildable ToggleToolButton Source # 
IsBuildable ToggleButton Source # 
IsBuildable ToggleAction Source # 
IsBuildable TextTagTable Source # 
IsBuildable Stack Source # 
IsBuildable SpinButton Source # 
IsBuildable SizeGroup Source # 
IsBuildable ShortcutsWindow Source # 
IsBuildable Separator Source # 
IsBuildable ScrolledWindow Source # 
IsBuildable Scrollbar Source # 
IsBuildable ScaleButton Source # 
IsBuildable Scale Source # 
IsBuildable RecentFilter Source # 
IsBuildable Range Source # 
IsBuildable RadioButton Source # 
IsBuildable Popover Source # 
IsBuildable Paned Source # 
IsBuildable Misc Source # 
IsBuildable MenuShell Source # 
IsBuildable MenuItem Source # 
IsBuildable Menu Source # 
IsBuildable ListBoxRow Source # 
IsBuildable ListBox Source # 
IsBuildable Label Source # 
IsBuildable IconView Source # 
IsBuildable IconFactory Source # 
IsBuildable Frame Source # 
IsBuildable FlowBoxChild Source # 
IsBuildable FlowBox Source # 
IsBuildable FileFilter Source # 
IsBuildable EntryCompletion Source # 
IsBuildable Entry Source # 
IsBuildable Dialog Source # 
IsBuildable Container Source # 
IsBuildable ComboBox Source # 
IsBuildable CheckMenuItem Source # 
IsBuildable CheckButton Source # 
IsBuildable CellArea Source # 
IsBuildable Calendar Source # 
IsBuildable ButtonBox Source # 
IsBuildable Button Source # 
IsBuildable Box Source # 
IsBuildable Bin Source # 
IsBuildable ActionGroup Source # 
IsBuildable Action Source # 
IsBuildable Buildable Source # 
IsBuildable AccelLabel Source # 
IsBuildable ActionBar Source # 
IsBuildable Alignment Source # 
IsBuildable ApplicationWindow Source # 
IsBuildable AspectFrame Source # 
IsBuildable CellAreaBox Source # 
IsBuildable CellView Source # 
IsBuildable ColorChooserDialog Source # 
IsBuildable ColorChooserWidget Source # 
IsBuildable ColorSelection Source # 
IsBuildable ColorSelectionDialog Source # 
IsBuildable ComboBoxText Source # 
IsBuildable DrawingArea Source # 
IsBuildable EventBox Source # 
IsBuildable Expander Source # 
IsBuildable FileChooserDialog Source # 
IsBuildable Fixed Source # 
IsBuildable FontChooserDialog Source # 
IsBuildable FontChooserWidget Source # 
IsBuildable FontSelection Source # 
IsBuildable FontSelectionDialog Source # 
IsBuildable GLArea Source # 
IsBuildable HBox Source # 
IsBuildable HButtonBox Source # 
IsBuildable HPaned Source # 
IsBuildable HScale Source # 
IsBuildable HScrollbar Source # 
IsBuildable HSeparator Source # 
IsBuildable HeaderBar Source # 
IsBuildable Invisible Source # 
IsBuildable Layout Source # 
IsBuildable ListStore Source # 
IsBuildable OffscreenWindow Source # 
IsBuildable Overlay Source # 
IsBuildable Plug Source # 
IsBuildable PopoverMenu Source # 
IsBuildable ProgressBar Source # 
IsBuildable RadioAction Source # 
IsBuildable RecentAction Source # 
IsBuildable RecentChooserDialog Source # 
IsBuildable RecentChooserWidget Source # 
IsBuildable SearchBar Source # 
IsBuildable SearchEntry Source # 
IsBuildable ShortcutLabel Source # 
IsBuildable ShortcutsGroup Source # 
IsBuildable ShortcutsSection Source # 
IsBuildable Socket Source # 
IsBuildable Spinner Source # 
IsBuildable StackSidebar Source # 
IsBuildable StackSwitcher Source # 
IsBuildable Statusbar Source # 
IsBuildable TreeStore Source # 
IsBuildable VBox Source # 
IsBuildable VButtonBox Source # 
IsBuildable VPaned Source # 
IsBuildable VScale Source # 
IsBuildable VScrollbar Source # 
IsBuildable VSeparator Source # 
IsBuildable AppChooserButton Source # 
IsBuildable AppChooserWidget Source # 
IsBuildable RecentChooserMenu Source # 
IsBuildable SeparatorToolItem Source # 
IsBuildable ColorButton Source # 
IsBuildable FontButton Source # 
IsBuildable ImageMenuItem Source # 
IsBuildable LinkButton Source # 
IsBuildable LockButton Source # 
IsBuildable MenuToolButton Source # 
IsBuildable RadioMenuItem Source # 
IsBuildable RadioToolButton Source # 
IsBuildable SeparatorMenuItem Source # 
IsBuildable Switch Source # 
IsBuildable TearoffMenuItem Source # 
IsBuildable VolumeButton Source # 
IsBuildable AppChooserDialog Source # 
IsBuildable PlacesSidebar Source # 
IsBuildable Table Source # 
IsBuildable UIManager Source # 
IsBuildable AboutDialog Source # 
IsBuildable Arrow Source # 
IsBuildable FileChooserButton Source # 
IsBuildable FileChooserWidget Source # 
IsBuildable Grid Source # 
IsBuildable HSV Source # 
IsBuildable HandleBox Source # 
IsBuildable Image Source # 
IsBuildable InfoBar Source # 
IsBuildable LevelBar Source # 
IsBuildable MenuBar Source # 
IsBuildable MenuButton Source # 
IsBuildable MessageDialog Source # 
IsBuildable ModelButton Source # 
IsBuildable Notebook Source # 
IsBuildable Revealer Source # 
IsBuildable ShortcutsShortcut Source # 
IsBuildable TextView Source # 
IsBuildable ToolPalette Source # 
IsBuildable Toolbar Source # 
IsBuildable Viewport Source # 
IsBuildable Assistant Source # 

Methods

addChild

data BuildableAddChildMethodInfo Source #

Instances

((~) * signature (b -> c -> Maybe Text -> m ()), MonadIO m, IsBuildable a, IsBuilder b, IsObject c) => MethodInfo * BuildableAddChildMethodInfo a signature Source # 

buildableAddChild Source #

Arguments

:: (HasCallStack, MonadIO m, IsBuildable a, IsBuilder b, IsObject c) 
=> a

buildable: a Buildable

-> b

builder: a Builder

-> c

child: child to add

-> Maybe Text

type: kind of child or Nothing

-> m () 

Adds a child to buildable. type is an optional string describing how the child should be added.

Since: 2.12

constructChild

buildableConstructChild Source #

Arguments

:: (HasCallStack, MonadIO m, IsBuildable a, IsBuilder b) 
=> a

buildable: A Buildable

-> b

builder: Builder used to construct this object

-> Text

name: name of child to construct

-> m Object

Returns: the constructed child

Constructs a child of buildable with the name name.

Builder calls this function if a “constructor” has been specified in the UI definition.

Since: 2.12

customFinished

buildableCustomFinished Source #

Arguments

:: (HasCallStack, MonadIO m, IsBuildable a, IsBuilder b, IsObject c) 
=> a

buildable: a Buildable

-> b

builder: a Builder

-> Maybe c

child: child object or Nothing for non-child tags

-> Text

tagname: the name of the tag

-> Ptr ()

data: user data created in custom_tag_start

-> m () 

This is similar to buildableParserFinished but is called once for each custom tag handled by the buildable.

Since: 2.12

customTagEnd

data BuildableCustomTagEndMethodInfo Source #

Instances

((~) * signature (b -> Maybe c -> Text -> Ptr () -> m ()), MonadIO m, IsBuildable a, IsBuilder b, IsObject c) => MethodInfo * BuildableCustomTagEndMethodInfo a signature Source # 

buildableCustomTagEnd Source #

Arguments

:: (HasCallStack, MonadIO m, IsBuildable a, IsBuilder b, IsObject c) 
=> a

buildable: A Buildable

-> b

builder: Builder used to construct this object

-> Maybe c

child: child object or Nothing for non-child tags

-> Text

tagname: name of tag

-> Ptr ()

data: user data that will be passed in to parser functions

-> m () 

This is called at the end of each custom element handled by the buildable.

Since: 2.12

customTagStart

buildableCustomTagStart Source #

Arguments

:: (HasCallStack, MonadIO m, IsBuildable a, IsBuilder b, IsObject c) 
=> a

buildable: a Buildable

-> b

builder: a Builder used to construct this object

-> Maybe c

child: child object or Nothing for non-child tags

-> Text

tagname: name of tag

-> m (Bool, MarkupParser, Ptr ())

Returns: True if a object has a custom implementation, False if it doesn't.

This is called for each unknown element under <child>.

Since: 2.12

getInternalChild

buildableGetInternalChild Source #

Arguments

:: (HasCallStack, MonadIO m, IsBuildable a, IsBuilder b) 
=> a

buildable: a Buildable

-> b

builder: a Builder

-> Text

childname: name of child

-> m Object

Returns: the internal child of the buildable object

Get the internal child called childname of the buildable object.

Since: 2.12

getName

buildableGetName Source #

Arguments

:: (HasCallStack, MonadIO m, IsBuildable a) 
=> a

buildable: a Buildable

-> m Text

Returns: the name set with buildableSetName

Gets the name of the buildable object.

Builder sets the name based on the [GtkBuilder UI definition][BUILDER-UI] used to construct the buildable.

Since: 2.12

parserFinished

buildableParserFinished Source #

Arguments

:: (HasCallStack, MonadIO m, IsBuildable a, IsBuilder b) 
=> a

buildable: a Buildable

-> b

builder: a Builder

-> m () 

Called when the builder finishes the parsing of a [GtkBuilder UI definition][BUILDER-UI]. Note that this will be called once for each time builderAddFromFile or builderAddFromString is called on a builder.

Since: 2.12

setBuildableProperty

buildableSetBuildableProperty Source #

Arguments

:: (HasCallStack, MonadIO m, IsBuildable a, IsBuilder b) 
=> a

buildable: a Buildable

-> b

builder: a Builder

-> Text

name: name of property

-> GValue

value: value of property

-> m () 

Sets the property name name to value on the buildable object.

Since: 2.12

setName

data BuildableSetNameMethodInfo Source #

Instances

((~) * signature (Text -> m ()), MonadIO m, IsBuildable a) => MethodInfo * BuildableSetNameMethodInfo a signature Source # 

buildableSetName Source #

Arguments

:: (HasCallStack, MonadIO m, IsBuildable a) 
=> a

buildable: a Buildable

-> Text

name: name to set

-> m () 

Sets the name of the buildable object.

Since: 2.12