Sophie

Sophie

distrib > Fedora > 14 > x86_64 > media > updates > by-pkgid > 677c1b5134368504c2e447757584d19e > files > 723

ghc-gtk-devel-0.11.2-5.fc14.i686.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--Rendered using the Haskell Html Library v0.2-->
<HTML
><HEAD
><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8"
><TITLE
>Graphics.UI.Gtk.ModelView.TreeDrag</TITLE
><LINK HREF="haddock.css" REL="stylesheet" TYPE="text/css"
><SCRIPT SRC="haddock-util.js" TYPE="text/javascript"
></SCRIPT
><SCRIPT TYPE="text/javascript"
>window.onload = function () {setSynopsis("mini_Graphics-UI-Gtk-ModelView-TreeDrag.html")};</SCRIPT
></HEAD
><BODY
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD CLASS="topbar"
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD
><IMG SRC="haskell_icon.gif" WIDTH="16" HEIGHT="16" ALT=" "
></TD
><TD CLASS="title"
>gtk-0.11.2: Binding to the Gtk+ graphical user interface library.</TD
><TD CLASS="topbut"
><A HREF="src/Graphics-UI-Gtk-ModelView-TreeDrag.html"
>Source code</A
></TD
><TD CLASS="topbut"
><A HREF="index.html"
>Contents</A
></TD
><TD CLASS="topbut"
><A HREF="doc-index.html"
>Index</A
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="modulebar"
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD
><FONT SIZE="6"
>Graphics.UI.Gtk.ModelView.TreeDrag</FONT
></TD
><TD ALIGN="right"
><TABLE CLASS="narrow" CELLSPACING="0" CELLPADDING="0"
><TR
><TD CLASS="infohead"
>Portability</TD
><TD CLASS="infoval"
>portable (depends on GHC)</TD
></TR
><TR
><TD CLASS="infohead"
>Stability</TD
><TD CLASS="infoval"
>provisional</TD
></TR
><TR
><TD CLASS="infohead"
>Maintainer</TD
><TD CLASS="infoval"
>gtk2hs-users@lists.sourceforge.net</TD
></TR
></TABLE
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD CLASS="section4"
><B
>Contents</B
></TD
></TR
><TR
><TD
><DL
><DT
><A HREF="#1"
>Detail
</A
></DT
><DT
><A HREF="#2"
>DND information for exchanging a model and a path.
</A
></DT
></DL
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="section1"
>Description</TD
></TR
><TR
><TD CLASS="doc"
>Interfaces for drag-and-drop support in Graphics.UI.Gtk.ModelView.TreeView.
</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="section1"
>Synopsis</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="body"
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD CLASS="decl"
><A HREF="#v%3AtreeModelEqual"
>treeModelEqual</A
> :: (<A HREF="Graphics-UI-Gtk-ModelView-TreeModel.html#t%3ATreeModelClass"
>TreeModelClass</A
> tm1, <A HREF="Graphics-UI-Gtk-ModelView-TreeModel.html#t%3ATreeModelClass"
>TreeModelClass</A
> tm2) =&gt; tm1 -&gt; tm2 -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Bool.html#t%3ABool"
>Bool</A
></TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3AtargetTreeModelRow"
>targetTreeModelRow</A
> :: <A HREF="Graphics-UI-Gtk-General-Selection.html#t%3ATargetTag"
>TargetTag</A
></TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3AtreeGetRowDragData"
>treeGetRowDragData</A
> :: <A HREF="Graphics-UI-Gtk-General-Selection.html#t%3ASelectionDataM"
>SelectionDataM</A
> (<A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Maybe.html#t%3AMaybe"
>Maybe</A
> (<A HREF="Graphics-UI-Gtk-ModelView-TreeModel.html#t%3ATreeModel"
>TreeModel</A
>, <A HREF="Graphics-UI-Gtk-ModelView-TreeModel.html#t%3ATreePath"
>TreePath</A
>))</TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3AtreeSetRowDragData"
>treeSetRowDragData</A
> :: <A HREF="Graphics-UI-Gtk-ModelView-TreeModel.html#t%3ATreeModelClass"
>TreeModelClass</A
> treeModel =&gt; treeModel -&gt; <A HREF="Graphics-UI-Gtk-ModelView-TreeModel.html#t%3ATreePath"
>TreePath</A
> -&gt; <A HREF="Graphics-UI-Gtk-General-Selection.html#t%3ASelectionDataM"
>SelectionDataM</A
> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Bool.html#t%3ABool"
>Bool</A
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="section1"
><A NAME="1"
><A NAME="1"
>Detail
</A
></A
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="doc"
>Graphics.UI.Gtk.ModelView.TreeViews provide special support for
 Drag-and-Drop such as hover-to-open-rows or autoscrolling. This module
 implements two utility functions that set and get a path and a model in a
 Graphics.UI.Gtk.General.Selection.Selection structure. These functions
 are thus useful to implement drag-and-drop functionality in a
 Graphics.UI.Gtk.ModelView.TreeModel. In fact, they are used as part of
 the default drag-and-drop interfaces of
 Graphics.UI.Gtk.ModelView.ListStore and
 Graphics.UI.Gtk.ModelView.TreeStore that allows to permute rows and move
 them between hierarchy levels.
</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="section1"
><A NAME="2"
><A NAME="2"
>DND information for exchanging a model and a path.
</A
></A
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="topdecl"
><TABLE CLASS="declbar"
><TR
><TD CLASS="declname"
><A NAME="v:treeModelEqual"
><A NAME="v%3AtreeModelEqual"
></A
></A
><B
>treeModelEqual</B
> :: (<A HREF="Graphics-UI-Gtk-ModelView-TreeModel.html#t%3ATreeModelClass"
>TreeModelClass</A
> tm1, <A HREF="Graphics-UI-Gtk-ModelView-TreeModel.html#t%3ATreeModelClass"
>TreeModelClass</A
> tm2) =&gt; tm1 -&gt; tm2 -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Bool.html#t%3ABool"
>Bool</A
></TD
><TD CLASS="declbut"
><A HREF="src/Graphics-UI-Gtk-ModelView-TreeDrag.html#treeModelEqual"
>Source</A
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="topdecl"
><TABLE CLASS="declbar"
><TR
><TD CLASS="declname"
><A NAME="v:targetTreeModelRow"
><A NAME="v%3AtargetTreeModelRow"
></A
></A
><B
>targetTreeModelRow</B
> :: <A HREF="Graphics-UI-Gtk-General-Selection.html#t%3ATargetTag"
>TargetTag</A
></TD
><TD CLASS="declbut"
><A HREF="src/Graphics-UI-Gtk-ModelView-TreeDrag.html#targetTreeModelRow"
>Source</A
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="doc"
>The SelectionTag, <TT
><A HREF="Graphics-UI-Gtk-General-Selection.html#t%3ATargetTag"
>TargetTag</A
></TT
> and SelectionTypeTag of the DND
 mechanism of Graphics.UI.Gtk.ModelView.ListStore and
 Graphics.UI.Gtk.ModelView.TreeStore. This tag is used by
 <TT
><A HREF="Graphics-UI-Gtk-ModelView-TreeDrag.html#v%3AtreeGetRowDragData"
>treeGetRowDragData</A
></TT
> and <TT
><A HREF="Graphics-UI-Gtk-ModelView-TreeDrag.html#v%3AtreeSetRowDragData"
>treeSetRowDragData</A
></TT
> to store a store and a
 <TT
><A HREF="Graphics-UI-Gtk-ModelView-TreeModel.html#t%3ATreePath"
>TreePath</A
></TT
> in a <TT
><A HREF="Graphics-UI-Gtk-General-Selection.html#t%3ASelectionDataM"
>SelectionDataM</A
></TT
>. This target should be added to a
 Graphics.UI.Gtk.General.Selection.TargetList using
 Graphics.UI.Gtk.General.Seleciton.TargetSameWidget flag and an
 Graphics.UI.Gtk.General.Selection.InfoId of <TT
>0</TT
>.
</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="topdecl"
><TABLE CLASS="declbar"
><TR
><TD CLASS="declname"
><A NAME="v:treeGetRowDragData"
><A NAME="v%3AtreeGetRowDragData"
></A
></A
><B
>treeGetRowDragData</B
> :: <A HREF="Graphics-UI-Gtk-General-Selection.html#t%3ASelectionDataM"
>SelectionDataM</A
> (<A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Maybe.html#t%3AMaybe"
>Maybe</A
> (<A HREF="Graphics-UI-Gtk-ModelView-TreeModel.html#t%3ATreeModel"
>TreeModel</A
>, <A HREF="Graphics-UI-Gtk-ModelView-TreeModel.html#t%3ATreePath"
>TreePath</A
>))</TD
><TD CLASS="declbut"
><A HREF="src/Graphics-UI-Gtk-ModelView-TreeDrag.html#treeGetRowDragData"
>Source</A
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="doc"
>Obtains a <TT
><A HREF="Graphics-UI-Gtk-ModelView-TreeModel.html#t%3ATreeModel"
>TreeModel</A
></TT
> and a path from <TT
><A HREF="Graphics-UI-Gtk-General-Selection.html#t%3ASelectionDataM"
>SelectionDataM</A
></TT
> whenever the target is
 <TT
><A HREF="Graphics-UI-Gtk-ModelView-TreeDrag.html#v%3AtargetTreeModelRow"
>targetTreeModelRow</A
></TT
>. Normally called from a treeDragDestDragDataReceived handler.
</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="topdecl"
><TABLE CLASS="declbar"
><TR
><TD CLASS="declname"
><A NAME="v:treeSetRowDragData"
><A NAME="v%3AtreeSetRowDragData"
></A
></A
><B
>treeSetRowDragData</B
> :: <A HREF="Graphics-UI-Gtk-ModelView-TreeModel.html#t%3ATreeModelClass"
>TreeModelClass</A
> treeModel =&gt; treeModel -&gt; <A HREF="Graphics-UI-Gtk-ModelView-TreeModel.html#t%3ATreePath"
>TreePath</A
> -&gt; <A HREF="Graphics-UI-Gtk-General-Selection.html#t%3ASelectionDataM"
>SelectionDataM</A
> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Bool.html#t%3ABool"
>Bool</A
></TD
><TD CLASS="declbut"
><A HREF="src/Graphics-UI-Gtk-ModelView-TreeDrag.html#treeSetRowDragData"
>Source</A
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="doc"
><P
>Sets selection data with the target <TT
><A HREF="Graphics-UI-Gtk-ModelView-TreeDrag.html#v%3AtargetTreeModelRow"
>targetTreeModelRow</A
></TT
>, consisting
 of a <TT
><A HREF="Graphics-UI-Gtk-ModelView-TreeModel.html#t%3ATreeModel"
>TreeModel</A
></TT
> and a <TT
><A HREF="Graphics-UI-Gtk-ModelView-TreeModel.html#t%3ATreePath"
>TreePath</A
></TT
>. Normally used in a
 treeDragSourceDragDataGet handler.
</P
><UL
><LI
> Returns <TT
>True</TT
> if setting the data was successful.
</LI
></UL
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="botbar"
>Produced by <A HREF="http://www.haskell.org/haddock/"
>Haddock</A
> version 2.6.1</TD
></TR
></TABLE
></BODY
></HTML
>