diff options
Diffstat (limited to 'src/Gtk/Widgets.dcl')
-rw-r--r-- | src/Gtk/Widgets.dcl | 33 |
1 files changed, 31 insertions, 2 deletions
diff --git a/src/Gtk/Widgets.dcl b/src/Gtk/Widgets.dcl index a80d9a6..b0a0448 100644 --- a/src/Gtk/Widgets.dcl +++ b/src/Gtk/Widgets.dcl @@ -12,21 +12,36 @@ from Gtk.Types import :: GtkButtonsType, :: GtkCSSClass, :: GtkDirection, :: GtkExpand, :: GtkFileChooserAction, :: GtkLabel, :: GtkMargins, :: GtkMessageType, :: GtkModal, :: GtkOrientation, :: GtkPanedHandleWidth, :: GtkResize, - :: GtkResponse, :: GtkScrollbarPolicy, :: GtkShrink, :: GtkStylePriority, - :: GtkTitle, :: GtkWrapMode + :: GtkResponse, :: GtkScrollbarPolicy, :: GtkSensitivity, :: GtkShrink, + :: GtkSpacing, :: GtkStylePriority, :: GtkTitle, :: GtkWrapMode class ptr a where toPtr :: !a -> Pointer fromPtr :: !Pointer -> a +:: GtkActionBar +instance gtkWidget GtkActionBar + +newActionBar :: GtkM GtkActionBar +packActionBar :: !GtkActionBar !GtkDirection !w -> GtkM w | gtkWidget w + :: GtkBox instance gtkWidget GtkBox instance gtkContainer GtkBox +instance gtkOrientable GtkBox newBox :: !GtkOrientation !Int -> GtkM GtkBox packBox :: !GtkBox !GtkDirection !GtkExpand !w -> GtkM w | gtkWidget w +instance tune GtkBox GtkSpacing + +:: GtkButton +instance gtkWidget GtkButton +instance ptr GtkButton + +newButtonFromIconName :: !String -> GtkM GtkButton + :: GtkContainer class gtkContainer a :: !a -> GtkContainer @@ -68,7 +83,9 @@ framed :: !GtkLabel !(GtkM w) -> GtkM (w, GtkFrame) | gtkWidget w :: GtkListStore newListStore :: ![GType] -> GtkM GtkListStore +clearListStore :: !GtkListStore -> GtkM GtkListStore appendToListStore :: ![GValue] !GtkListStore -> GtkM GtkListStore +swapItems :: !Int !Int !GtkListStore -> GtkM Bool :: GtkMenu instance gtkWidget GtkMenu @@ -107,6 +124,12 @@ instance gtkMenuShell GtkMenu, GtkMenuBar, GtkMenuShell appendToMenuShell :: !s !mi -> GtkM mi | gtkMenuShell s & gtkMenuItem mi +:: GtkOrientable + +class gtkOrientable a :: !a -> GtkOrientable + +instance tune o GtkOrientation | gtkOrientable o + :: GtkPaned instance gtkWidget GtkPaned instance gtkContainer GtkPaned @@ -160,6 +183,10 @@ instance gtkWidget GtkTreeView newTreeView :: !GtkListStore -> GtkM GtkTreeView appendColumnToTreeView :: !String !Int !GtkExpand !GtkTreeView -> GtkM GtkTreeView +addSelectionChangedHandler :: !(GtkM ()) !GtkTreeView -> GtkM GtkTreeView +getPathToSelection :: !GtkTreeView -> GtkM (Maybe [Int]) +selectPath :: ![Int] !GtkTreeView -> GtkM Bool + :: GtkWidget class gtkWidget a :: !a -> GtkWidget @@ -175,6 +202,8 @@ addCSSClass :: !GtkCSSClass !w -> GtkM w | gtkWidget w removeCSSClass :: !GtkCSSClass !w -> GtkM () | gtkWidget w setMargins :: !GtkMargins !w -> GtkM w | gtkWidget w +instance tune w GtkSensitivity | gtkWidget w + :: GtkWindow class gtkWindow a :: !a -> GtkWindow |