Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > 404d46ca9bb341d7a0e7e04bc69da9df > files > 1301

ghc-gtk-devel-0.12.0-4.fc15.i686.rpm

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<!-- Generated by HsColour, http://www.cs.york.ac.uk/fp/darcs/hscolour/ -->
<title>dist/build/Graphics/UI/Gtk/Multiline/TextTagTable.hs</title>
<link type='text/css' rel='stylesheet' href='hscolour.css' />
</head>
<body>
<pre><a name="line-1"></a>
<a name="line-2"></a><span class='hs-comment'>{-# LINE 2 "./Graphics/UI/Gtk/Multiline/TextTagTable.chs" #-}</span>
<a name="line-3"></a><span class='hs-comment'>-- -*-haskell-*-</span>
<a name="line-4"></a><span class='hs-comment'>-- GIMP Toolkit (GTK) Widget TextTagTable</span>
<a name="line-5"></a><span class='hs-comment'>--</span>
<a name="line-6"></a><span class='hs-comment'>-- Author : Duncan Coutts</span>
<a name="line-7"></a><span class='hs-comment'>--</span>
<a name="line-8"></a><span class='hs-comment'>-- Created: 4 August 2004</span>
<a name="line-9"></a><span class='hs-comment'>--</span>
<a name="line-10"></a><span class='hs-comment'>-- Copyright (C) 2004-2005 Duncan Coutts</span>
<a name="line-11"></a><span class='hs-comment'>--</span>
<a name="line-12"></a><span class='hs-comment'>-- This library is free software; you can redistribute it and/or</span>
<a name="line-13"></a><span class='hs-comment'>-- modify it under the terms of the GNU Lesser General Public</span>
<a name="line-14"></a><span class='hs-comment'>-- License as published by the Free Software Foundation; either</span>
<a name="line-15"></a><span class='hs-comment'>-- version 2.1 of the License, or (at your option) any later version.</span>
<a name="line-16"></a><span class='hs-comment'>--</span>
<a name="line-17"></a><span class='hs-comment'>-- This library is distributed in the hope that it will be useful,</span>
<a name="line-18"></a><span class='hs-comment'>-- but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="line-19"></a><span class='hs-comment'>-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
<a name="line-20"></a><span class='hs-comment'>-- Lesser General Public License for more details.</span>
<a name="line-21"></a><span class='hs-comment'>--</span>
<a name="line-22"></a><span class='hs-comment'>-- |</span>
<a name="line-23"></a><span class='hs-comment'>-- Maintainer : gtk2hs-users@lists.sourceforge.net</span>
<a name="line-24"></a><span class='hs-comment'>-- Stability : provisional</span>
<a name="line-25"></a><span class='hs-comment'>-- Portability : portable (depends on GHC)</span>
<a name="line-26"></a><span class='hs-comment'>--</span>
<a name="line-27"></a><span class='hs-comment'>-- Collection of tags that can be used together</span>
<a name="line-28"></a><span class='hs-comment'>--</span>
<a name="line-29"></a><span class='hs-keyword'>module</span> <span class='hs-conid'>Graphics</span><span class='hs-varop'>.</span><span class='hs-conid'>UI</span><span class='hs-varop'>.</span><span class='hs-conid'>Gtk</span><span class='hs-varop'>.</span><span class='hs-conid'>Multiline</span><span class='hs-varop'>.</span><span class='hs-conid'>TextTagTable</span> <span class='hs-layout'>(</span>
<a name="line-30"></a><span class='hs-comment'>-- * Detail</span>
<a name="line-31"></a><span class='hs-comment'>--</span>
<a name="line-32"></a><span class='hs-comment'>-- | You may wish to begin by reading the text widget conceptual overview</span>
<a name="line-33"></a><span class='hs-comment'>-- which gives an overview of all the objects and data types related to the</span>
<a name="line-34"></a><span class='hs-comment'>-- text widget and how they work together.</span>
<a name="line-35"></a>
<a name="line-36"></a><span class='hs-comment'>-- * Class Hierarchy</span>
<a name="line-37"></a><span class='hs-comment'>-- |</span>
<a name="line-38"></a><span class='hs-comment'>-- @</span>
<a name="line-39"></a><span class='hs-comment'>-- | 'GObject'</span>
<a name="line-40"></a><span class='hs-comment'>-- | +----TextTagTable</span>
<a name="line-41"></a><span class='hs-comment'>-- @</span>
<a name="line-42"></a>
<a name="line-43"></a><span class='hs-comment'>-- * Types</span>
<a name="line-44"></a>  <span class='hs-conid'>TextTagTable</span><span class='hs-layout'>,</span>
<a name="line-45"></a>  <span class='hs-conid'>TextTagTableClass</span><span class='hs-layout'>,</span>
<a name="line-46"></a>  <span class='hs-varid'>castToTextTagTable</span><span class='hs-layout'>,</span> <span class='hs-varid'>gTypeTextTagTable</span><span class='hs-layout'>,</span>
<a name="line-47"></a>  <span class='hs-varid'>toTextTagTable</span><span class='hs-layout'>,</span>
<a name="line-48"></a>
<a name="line-49"></a><span class='hs-comment'>-- * Constructors</span>
<a name="line-50"></a>  <span class='hs-varid'>textTagTableNew</span><span class='hs-layout'>,</span>
<a name="line-51"></a>
<a name="line-52"></a><span class='hs-comment'>-- * Methods</span>
<a name="line-53"></a>  <span class='hs-varid'>textTagTableAdd</span><span class='hs-layout'>,</span>
<a name="line-54"></a>  <span class='hs-varid'>textTagTableRemove</span><span class='hs-layout'>,</span>
<a name="line-55"></a>  <span class='hs-varid'>textTagTableLookup</span><span class='hs-layout'>,</span>
<a name="line-56"></a>  <span class='hs-varid'>textTagTableForeach</span><span class='hs-layout'>,</span>
<a name="line-57"></a>  <span class='hs-varid'>textTagTableGetSize</span>
<a name="line-58"></a>  <span class='hs-layout'>)</span> <span class='hs-keyword'>where</span>
<a name="line-59"></a>
<a name="line-60"></a><span class='hs-keyword'>import</span> <span class='hs-conid'>Control</span><span class='hs-varop'>.</span><span class='hs-conid'>Monad</span> <span class='hs-layout'>(</span><span class='hs-varid'>liftM</span><span class='hs-layout'>)</span>
<a name="line-61"></a>
<a name="line-62"></a><span class='hs-keyword'>import</span> <span class='hs-conid'>System</span><span class='hs-varop'>.</span><span class='hs-conid'>Glib</span><span class='hs-varop'>.</span><span class='hs-conid'>FFI</span>
<a name="line-63"></a><span class='hs-keyword'>import</span> <span class='hs-conid'>System</span><span class='hs-varop'>.</span><span class='hs-conid'>Glib</span><span class='hs-varop'>.</span><span class='hs-conid'>GObject</span> <span class='hs-layout'>(</span><span class='hs-varid'>wrapNewGObject</span><span class='hs-layout'>,</span> <span class='hs-varid'>makeNewGObject</span><span class='hs-layout'>)</span>
<a name="line-64"></a><span class='hs-keyword'>import</span> <span class='hs-conid'>Graphics</span><span class='hs-varop'>.</span><span class='hs-conid'>UI</span><span class='hs-varop'>.</span><span class='hs-conid'>Gtk</span><span class='hs-varop'>.</span><span class='hs-conid'>Types</span>
<a name="line-65"></a><span class='hs-comment'>{-# LINE 64 "./Graphics/UI/Gtk/Multiline/TextTagTable.chs" #-}</span>
<a name="line-66"></a>
<a name="line-67"></a>
<a name="line-68"></a><span class='hs-comment'>{-# LINE 66 "./Graphics/UI/Gtk/Multiline/TextTagTable.chs" #-}</span>
<a name="line-69"></a>
<a name="line-70"></a><span class='hs-comment'>--------------------</span>
<a name="line-71"></a><span class='hs-comment'>-- Constructors</span>
<a name="line-72"></a>
<a name="line-73"></a><a name="textTagTableNew"></a><span class='hs-comment'>-- | Creates a new 'TextTagTable'. The table contains no tags by default.</span>
<a name="line-74"></a><span class='hs-comment'>--</span>
<a name="line-75"></a><span class='hs-definition'>textTagTableNew</span> <span class='hs-keyglyph'>::</span> <span class='hs-conid'>IO</span> <span class='hs-conid'>TextTagTable</span>
<a name="line-76"></a><span class='hs-definition'>textTagTableNew</span> <span class='hs-keyglyph'>=</span>
<a name="line-77"></a>  <span class='hs-varid'>wrapNewGObject</span> <span class='hs-varid'>mkTextTagTable</span> <span class='hs-varop'>$</span>
<a name="line-78"></a>  <span class='hs-varid'>gtk_text_tag_table_new</span>
<a name="line-79"></a><span class='hs-comment'>{-# LINE 76 "./Graphics/UI/Gtk/Multiline/TextTagTable.chs" #-}</span>
<a name="line-80"></a>
<a name="line-81"></a><span class='hs-comment'>--------------------</span>
<a name="line-82"></a><span class='hs-comment'>-- Methods</span>
<a name="line-83"></a>
<a name="line-84"></a><a name="textTagTableAdd"></a><span class='hs-comment'>-- | Add a tag to the table. The tag is assigned the highest priority in the</span>
<a name="line-85"></a><span class='hs-comment'>-- table.</span>
<a name="line-86"></a><span class='hs-comment'>--</span>
<a name="line-87"></a><span class='hs-comment'>-- The tag must not be in a tag table already, and may not have the same name as</span>
<a name="line-88"></a><span class='hs-comment'>-- an already-added tag.</span>
<a name="line-89"></a><span class='hs-comment'>--</span>
<a name="line-90"></a><span class='hs-definition'>textTagTableAdd</span> <span class='hs-keyglyph'>::</span> <span class='hs-layout'>(</span><span class='hs-conid'>TextTagTableClass</span> <span class='hs-varid'>self</span><span class='hs-layout'>,</span> <span class='hs-conid'>TextTagClass</span> <span class='hs-varid'>tag</span><span class='hs-layout'>)</span> <span class='hs-keyglyph'>=&gt;</span> <span class='hs-varid'>self</span> <span class='hs-keyglyph'>-&gt;</span> <span class='hs-varid'>tag</span> <span class='hs-keyglyph'>-&gt;</span> <span class='hs-conid'>IO</span> <span class='hs-conid'>()</span>
<a name="line-91"></a><span class='hs-definition'>textTagTableAdd</span> <span class='hs-varid'>self</span> <span class='hs-varid'>tag</span> <span class='hs-keyglyph'>=</span>
<a name="line-92"></a>  <span class='hs-layout'>(</span><span class='hs-keyglyph'>\</span><span class='hs-layout'>(</span><span class='hs-conid'>TextTagTable</span> <span class='hs-varid'>arg1</span><span class='hs-layout'>)</span> <span class='hs-layout'>(</span><span class='hs-conid'>TextTag</span> <span class='hs-varid'>arg2</span><span class='hs-layout'>)</span> <span class='hs-keyglyph'>-&gt;</span> <span class='hs-varid'>withForeignPtr</span> <span class='hs-varid'>arg1</span> <span class='hs-varop'>$</span> <span class='hs-keyglyph'>\</span><span class='hs-varid'>argPtr1</span> <span class='hs-keyglyph'>-&gt;</span><span class='hs-varid'>withForeignPtr</span> <span class='hs-varid'>arg2</span> <span class='hs-varop'>$</span> <span class='hs-keyglyph'>\</span><span class='hs-varid'>argPtr2</span> <span class='hs-keyglyph'>-&gt;</span><span class='hs-varid'>gtk_text_tag_table_add</span> <span class='hs-varid'>argPtr1</span> <span class='hs-varid'>argPtr2</span><span class='hs-layout'>)</span>
<a name="line-93"></a><span class='hs-comment'>{-# LINE 89 "./Graphics/UI/Gtk/Multiline/TextTagTable.chs" #-}</span>
<a name="line-94"></a>    <span class='hs-layout'>(</span><span class='hs-varid'>toTextTagTable</span> <span class='hs-varid'>self</span><span class='hs-layout'>)</span>
<a name="line-95"></a>    <span class='hs-layout'>(</span><span class='hs-varid'>toTextTag</span> <span class='hs-varid'>tag</span><span class='hs-layout'>)</span>
<a name="line-96"></a>
<a name="line-97"></a><a name="textTagTableRemove"></a><span class='hs-comment'>-- | Remove a tag from the table.</span>
<a name="line-98"></a><span class='hs-comment'>--</span>
<a name="line-99"></a><span class='hs-definition'>textTagTableRemove</span> <span class='hs-keyglyph'>::</span> <span class='hs-layout'>(</span><span class='hs-conid'>TextTagTableClass</span> <span class='hs-varid'>self</span><span class='hs-layout'>,</span> <span class='hs-conid'>TextTagClass</span> <span class='hs-varid'>tag</span><span class='hs-layout'>)</span> <span class='hs-keyglyph'>=&gt;</span> <span class='hs-varid'>self</span> <span class='hs-keyglyph'>-&gt;</span> <span class='hs-varid'>tag</span> <span class='hs-keyglyph'>-&gt;</span> <span class='hs-conid'>IO</span> <span class='hs-conid'>()</span>
<a name="line-100"></a><span class='hs-definition'>textTagTableRemove</span> <span class='hs-varid'>self</span> <span class='hs-varid'>tag</span> <span class='hs-keyglyph'>=</span>
<a name="line-101"></a>  <span class='hs-layout'>(</span><span class='hs-keyglyph'>\</span><span class='hs-layout'>(</span><span class='hs-conid'>TextTagTable</span> <span class='hs-varid'>arg1</span><span class='hs-layout'>)</span> <span class='hs-layout'>(</span><span class='hs-conid'>TextTag</span> <span class='hs-varid'>arg2</span><span class='hs-layout'>)</span> <span class='hs-keyglyph'>-&gt;</span> <span class='hs-varid'>withForeignPtr</span> <span class='hs-varid'>arg1</span> <span class='hs-varop'>$</span> <span class='hs-keyglyph'>\</span><span class='hs-varid'>argPtr1</span> <span class='hs-keyglyph'>-&gt;</span><span class='hs-varid'>withForeignPtr</span> <span class='hs-varid'>arg2</span> <span class='hs-varop'>$</span> <span class='hs-keyglyph'>\</span><span class='hs-varid'>argPtr2</span> <span class='hs-keyglyph'>-&gt;</span><span class='hs-varid'>gtk_text_tag_table_remove</span> <span class='hs-varid'>argPtr1</span> <span class='hs-varid'>argPtr2</span><span class='hs-layout'>)</span>
<a name="line-102"></a><span class='hs-comment'>{-# LINE 97 "./Graphics/UI/Gtk/Multiline/TextTagTable.chs" #-}</span>
<a name="line-103"></a>    <span class='hs-layout'>(</span><span class='hs-varid'>toTextTagTable</span> <span class='hs-varid'>self</span><span class='hs-layout'>)</span>
<a name="line-104"></a>    <span class='hs-layout'>(</span><span class='hs-varid'>toTextTag</span> <span class='hs-varid'>tag</span><span class='hs-layout'>)</span>
<a name="line-105"></a>
<a name="line-106"></a><a name="textTagTableLookup"></a><span class='hs-comment'>-- | Look up a named tag.</span>
<a name="line-107"></a><span class='hs-comment'>--</span>
<a name="line-108"></a><span class='hs-definition'>textTagTableLookup</span> <span class='hs-keyglyph'>::</span> <span class='hs-conid'>TextTagTableClass</span> <span class='hs-varid'>self</span> <span class='hs-keyglyph'>=&gt;</span> <span class='hs-varid'>self</span>
<a name="line-109"></a> <span class='hs-keyglyph'>-&gt;</span> <span class='hs-conid'>String</span> <span class='hs-comment'>-- ^ @name@ - name of a tag</span>
<a name="line-110"></a> <span class='hs-keyglyph'>-&gt;</span> <span class='hs-conid'>IO</span> <span class='hs-layout'>(</span><span class='hs-conid'>Maybe</span> <span class='hs-conid'>TextTag</span><span class='hs-layout'>)</span> <span class='hs-comment'>-- ^ returns The tag, or @Nothing@ if none by that name</span>
<a name="line-111"></a>                       <span class='hs-comment'>-- is in the table.</span>
<a name="line-112"></a><span class='hs-definition'>textTagTableLookup</span> <span class='hs-varid'>self</span> <span class='hs-varid'>name</span> <span class='hs-keyglyph'>=</span>
<a name="line-113"></a>  <span class='hs-varid'>maybeNull</span> <span class='hs-layout'>(</span><span class='hs-varid'>makeNewGObject</span> <span class='hs-varid'>mkTextTag</span><span class='hs-layout'>)</span> <span class='hs-varop'>$</span>
<a name="line-114"></a>  <span class='hs-varid'>withCString</span> <span class='hs-varid'>name</span> <span class='hs-varop'>$</span> <span class='hs-keyglyph'>\</span><span class='hs-varid'>namePtr</span> <span class='hs-keyglyph'>-&gt;</span>
<a name="line-115"></a>  <span class='hs-layout'>(</span><span class='hs-keyglyph'>\</span><span class='hs-layout'>(</span><span class='hs-conid'>TextTagTable</span> <span class='hs-varid'>arg1</span><span class='hs-layout'>)</span> <span class='hs-varid'>arg2</span> <span class='hs-keyglyph'>-&gt;</span> <span class='hs-varid'>withForeignPtr</span> <span class='hs-varid'>arg1</span> <span class='hs-varop'>$</span> <span class='hs-keyglyph'>\</span><span class='hs-varid'>argPtr1</span> <span class='hs-keyglyph'>-&gt;</span><span class='hs-varid'>gtk_text_tag_table_lookup</span> <span class='hs-varid'>argPtr1</span> <span class='hs-varid'>arg2</span><span class='hs-layout'>)</span>
<a name="line-116"></a><span class='hs-comment'>{-# LINE 110 "./Graphics/UI/Gtk/Multiline/TextTagTable.chs" #-}</span>
<a name="line-117"></a>    <span class='hs-layout'>(</span><span class='hs-varid'>toTextTagTable</span> <span class='hs-varid'>self</span><span class='hs-layout'>)</span>
<a name="line-118"></a>    <span class='hs-varid'>namePtr</span>
<a name="line-119"></a>
<a name="line-120"></a><a name="textTagTableForeach"></a><span class='hs-comment'>-- | Maps over each tag in the table.</span>
<a name="line-121"></a><span class='hs-comment'>--</span>
<a name="line-122"></a><span class='hs-definition'>textTagTableForeach</span> <span class='hs-keyglyph'>::</span> <span class='hs-conid'>TextTagTableClass</span> <span class='hs-varid'>self</span> <span class='hs-keyglyph'>=&gt;</span> <span class='hs-varid'>self</span>
<a name="line-123"></a> <span class='hs-keyglyph'>-&gt;</span> <span class='hs-layout'>(</span><span class='hs-conid'>TextTag</span> <span class='hs-keyglyph'>-&gt;</span> <span class='hs-conid'>IO</span> <span class='hs-conid'>()</span><span class='hs-layout'>)</span>
<a name="line-124"></a> <span class='hs-keyglyph'>-&gt;</span> <span class='hs-conid'>IO</span> <span class='hs-conid'>()</span>
<a name="line-125"></a><span class='hs-definition'>textTagTableForeach</span> <span class='hs-varid'>self</span> <span class='hs-varid'>func</span> <span class='hs-keyglyph'>=</span> <span class='hs-keyword'>do</span>
<a name="line-126"></a>  <span class='hs-varid'>funcPtr</span> <span class='hs-keyglyph'>&lt;-</span> <span class='hs-varid'>mkTextTagTableForeach</span> <span class='hs-layout'>(</span><span class='hs-keyglyph'>\</span><span class='hs-varid'>tagPtr</span> <span class='hs-keyword'>_</span> <span class='hs-keyglyph'>-&gt;</span> <span class='hs-keyword'>do</span>
<a name="line-127"></a>    <span class='hs-varid'>tag</span> <span class='hs-keyglyph'>&lt;-</span> <span class='hs-varid'>makeNewGObject</span> <span class='hs-varid'>mkTextTag</span> <span class='hs-layout'>(</span><span class='hs-varid'>return</span> <span class='hs-varid'>tagPtr</span><span class='hs-layout'>)</span>
<a name="line-128"></a>    <span class='hs-varid'>func</span> <span class='hs-varid'>tag</span><span class='hs-layout'>)</span>
<a name="line-129"></a>  <span class='hs-layout'>(</span><span class='hs-keyglyph'>\</span><span class='hs-layout'>(</span><span class='hs-conid'>TextTagTable</span> <span class='hs-varid'>arg1</span><span class='hs-layout'>)</span> <span class='hs-varid'>arg2</span> <span class='hs-varid'>arg3</span> <span class='hs-keyglyph'>-&gt;</span> <span class='hs-varid'>withForeignPtr</span> <span class='hs-varid'>arg1</span> <span class='hs-varop'>$</span> <span class='hs-keyglyph'>\</span><span class='hs-varid'>argPtr1</span> <span class='hs-keyglyph'>-&gt;</span><span class='hs-varid'>gtk_text_tag_table_foreach</span> <span class='hs-varid'>argPtr1</span> <span class='hs-varid'>arg2</span> <span class='hs-varid'>arg3</span><span class='hs-layout'>)</span>
<a name="line-130"></a><span class='hs-comment'>{-# LINE 123 "./Graphics/UI/Gtk/Multiline/TextTagTable.chs" #-}</span>
<a name="line-131"></a>    <span class='hs-layout'>(</span><span class='hs-varid'>toTextTagTable</span> <span class='hs-varid'>self</span><span class='hs-layout'>)</span>
<a name="line-132"></a>    <span class='hs-varid'>funcPtr</span>
<a name="line-133"></a>    <span class='hs-varid'>nullPtr</span>
<a name="line-134"></a>
<a name="line-135"></a><a name="TextTagTableForeach"></a><span class='hs-keyword'>type</span> <span class='hs-conid'>TextTagTableForeach</span> <span class='hs-keyglyph'>=</span> <span class='hs-conid'>FunPtr</span> <span class='hs-layout'>(</span><span class='hs-layout'>(</span><span class='hs-layout'>(</span><span class='hs-conid'>Ptr</span> <span class='hs-conid'>TextTag</span><span class='hs-layout'>)</span> <span class='hs-keyglyph'>-&gt;</span> <span class='hs-layout'>(</span><span class='hs-layout'>(</span><span class='hs-conid'>Ptr</span> <span class='hs-conid'>()</span><span class='hs-layout'>)</span> <span class='hs-keyglyph'>-&gt;</span> <span class='hs-layout'>(</span><span class='hs-conid'>IO</span> <span class='hs-conid'>()</span><span class='hs-layout'>)</span><span class='hs-layout'>)</span><span class='hs-layout'>)</span><span class='hs-layout'>)</span>
<a name="line-136"></a><span class='hs-comment'>{-# LINE 128 "./Graphics/UI/Gtk/Multiline/TextTagTable.chs" #-}</span>
<a name="line-137"></a>
<a name="line-138"></a><span class='hs-keyword'>foreign</span> <span class='hs-keyword'>import</span> <span class='hs-keyword'>ccall</span> <span class='hs-str'>"wrapper"</span> <span class='hs-varid'>mkTextTagTableForeach</span> <span class='hs-keyglyph'>::</span>
<a name="line-139"></a>  <span class='hs-layout'>(</span><span class='hs-conid'>Ptr</span> <span class='hs-conid'>TextTag</span> <span class='hs-keyglyph'>-&gt;</span> <span class='hs-conid'>Ptr</span> <span class='hs-conid'>()</span> <span class='hs-keyglyph'>-&gt;</span> <span class='hs-conid'>IO</span> <span class='hs-conid'>()</span><span class='hs-layout'>)</span> <span class='hs-keyglyph'>-&gt;</span> <span class='hs-conid'>IO</span> <span class='hs-conid'>TextTagTableForeach</span>
<a name="line-140"></a>
<a name="line-141"></a><a name="textTagTableGetSize"></a><span class='hs-comment'>-- | Returns the size of the table (the number of tags).</span>
<a name="line-142"></a><span class='hs-comment'>--</span>
<a name="line-143"></a><span class='hs-definition'>textTagTableGetSize</span> <span class='hs-keyglyph'>::</span> <span class='hs-conid'>TextTagTableClass</span> <span class='hs-varid'>self</span> <span class='hs-keyglyph'>=&gt;</span> <span class='hs-varid'>self</span> <span class='hs-keyglyph'>-&gt;</span> <span class='hs-conid'>IO</span> <span class='hs-conid'>Int</span>
<a name="line-144"></a><span class='hs-definition'>textTagTableGetSize</span> <span class='hs-varid'>self</span> <span class='hs-keyglyph'>=</span>
<a name="line-145"></a>  <span class='hs-varid'>liftM</span> <span class='hs-varid'>fromIntegral</span> <span class='hs-varop'>$</span>
<a name="line-146"></a>  <span class='hs-layout'>(</span><span class='hs-keyglyph'>\</span><span class='hs-layout'>(</span><span class='hs-conid'>TextTagTable</span> <span class='hs-varid'>arg1</span><span class='hs-layout'>)</span> <span class='hs-keyglyph'>-&gt;</span> <span class='hs-varid'>withForeignPtr</span> <span class='hs-varid'>arg1</span> <span class='hs-varop'>$</span> <span class='hs-keyglyph'>\</span><span class='hs-varid'>argPtr1</span> <span class='hs-keyglyph'>-&gt;</span><span class='hs-varid'>gtk_text_tag_table_get_size</span> <span class='hs-varid'>argPtr1</span><span class='hs-layout'>)</span>
<a name="line-147"></a><span class='hs-comment'>{-# LINE 138 "./Graphics/UI/Gtk/Multiline/TextTagTable.chs" #-}</span>
<a name="line-148"></a>    <span class='hs-layout'>(</span><span class='hs-varid'>toTextTagTable</span> <span class='hs-varid'>self</span><span class='hs-layout'>)</span>
<a name="line-149"></a>
<a name="line-150"></a><span class='hs-keyword'>foreign</span> <span class='hs-keyword'>import</span> <span class='hs-keyword'>ccall</span> <span class='hs-keyword'>unsafe</span> <span class='hs-str'>"gtk_text_tag_table_new"</span>
<a name="line-151"></a>  <span class='hs-varid'>gtk_text_tag_table_new</span> <span class='hs-keyglyph'>::</span> <span class='hs-layout'>(</span><span class='hs-conid'>IO</span> <span class='hs-layout'>(</span><span class='hs-conid'>Ptr</span> <span class='hs-conid'>TextTagTable</span><span class='hs-layout'>)</span><span class='hs-layout'>)</span>
<a name="line-152"></a>
<a name="line-153"></a><span class='hs-keyword'>foreign</span> <span class='hs-keyword'>import</span> <span class='hs-keyword'>ccall</span> <span class='hs-keyword'>safe</span> <span class='hs-str'>"gtk_text_tag_table_add"</span>
<a name="line-154"></a>  <span class='hs-varid'>gtk_text_tag_table_add</span> <span class='hs-keyglyph'>::</span> <span class='hs-layout'>(</span><span class='hs-layout'>(</span><span class='hs-conid'>Ptr</span> <span class='hs-conid'>TextTagTable</span><span class='hs-layout'>)</span> <span class='hs-keyglyph'>-&gt;</span> <span class='hs-layout'>(</span><span class='hs-layout'>(</span><span class='hs-conid'>Ptr</span> <span class='hs-conid'>TextTag</span><span class='hs-layout'>)</span> <span class='hs-keyglyph'>-&gt;</span> <span class='hs-layout'>(</span><span class='hs-conid'>IO</span> <span class='hs-conid'>()</span><span class='hs-layout'>)</span><span class='hs-layout'>)</span><span class='hs-layout'>)</span>
<a name="line-155"></a>
<a name="line-156"></a><span class='hs-keyword'>foreign</span> <span class='hs-keyword'>import</span> <span class='hs-keyword'>ccall</span> <span class='hs-keyword'>safe</span> <span class='hs-str'>"gtk_text_tag_table_remove"</span>
<a name="line-157"></a>  <span class='hs-varid'>gtk_text_tag_table_remove</span> <span class='hs-keyglyph'>::</span> <span class='hs-layout'>(</span><span class='hs-layout'>(</span><span class='hs-conid'>Ptr</span> <span class='hs-conid'>TextTagTable</span><span class='hs-layout'>)</span> <span class='hs-keyglyph'>-&gt;</span> <span class='hs-layout'>(</span><span class='hs-layout'>(</span><span class='hs-conid'>Ptr</span> <span class='hs-conid'>TextTag</span><span class='hs-layout'>)</span> <span class='hs-keyglyph'>-&gt;</span> <span class='hs-layout'>(</span><span class='hs-conid'>IO</span> <span class='hs-conid'>()</span><span class='hs-layout'>)</span><span class='hs-layout'>)</span><span class='hs-layout'>)</span>
<a name="line-158"></a>
<a name="line-159"></a><span class='hs-keyword'>foreign</span> <span class='hs-keyword'>import</span> <span class='hs-keyword'>ccall</span> <span class='hs-keyword'>unsafe</span> <span class='hs-str'>"gtk_text_tag_table_lookup"</span>
<a name="line-160"></a>  <span class='hs-varid'>gtk_text_tag_table_lookup</span> <span class='hs-keyglyph'>::</span> <span class='hs-layout'>(</span><span class='hs-layout'>(</span><span class='hs-conid'>Ptr</span> <span class='hs-conid'>TextTagTable</span><span class='hs-layout'>)</span> <span class='hs-keyglyph'>-&gt;</span> <span class='hs-layout'>(</span><span class='hs-layout'>(</span><span class='hs-conid'>Ptr</span> <span class='hs-conid'>CChar</span><span class='hs-layout'>)</span> <span class='hs-keyglyph'>-&gt;</span> <span class='hs-layout'>(</span><span class='hs-conid'>IO</span> <span class='hs-layout'>(</span><span class='hs-conid'>Ptr</span> <span class='hs-conid'>TextTag</span><span class='hs-layout'>)</span><span class='hs-layout'>)</span><span class='hs-layout'>)</span><span class='hs-layout'>)</span>
<a name="line-161"></a>
<a name="line-162"></a><span class='hs-keyword'>foreign</span> <span class='hs-keyword'>import</span> <span class='hs-keyword'>ccall</span> <span class='hs-keyword'>safe</span> <span class='hs-str'>"gtk_text_tag_table_foreach"</span>
<a name="line-163"></a>  <span class='hs-varid'>gtk_text_tag_table_foreach</span> <span class='hs-keyglyph'>::</span> <span class='hs-layout'>(</span><span class='hs-layout'>(</span><span class='hs-conid'>Ptr</span> <span class='hs-conid'>TextTagTable</span><span class='hs-layout'>)</span> <span class='hs-keyglyph'>-&gt;</span> <span class='hs-layout'>(</span><span class='hs-layout'>(</span><span class='hs-conid'>FunPtr</span> <span class='hs-layout'>(</span><span class='hs-layout'>(</span><span class='hs-conid'>Ptr</span> <span class='hs-conid'>TextTag</span><span class='hs-layout'>)</span> <span class='hs-keyglyph'>-&gt;</span> <span class='hs-layout'>(</span><span class='hs-layout'>(</span><span class='hs-conid'>Ptr</span> <span class='hs-conid'>()</span><span class='hs-layout'>)</span> <span class='hs-keyglyph'>-&gt;</span> <span class='hs-layout'>(</span><span class='hs-conid'>IO</span> <span class='hs-conid'>()</span><span class='hs-layout'>)</span><span class='hs-layout'>)</span><span class='hs-layout'>)</span><span class='hs-layout'>)</span> <span class='hs-keyglyph'>-&gt;</span> <span class='hs-layout'>(</span><span class='hs-layout'>(</span><span class='hs-conid'>Ptr</span> <span class='hs-conid'>()</span><span class='hs-layout'>)</span> <span class='hs-keyglyph'>-&gt;</span> <span class='hs-layout'>(</span><span class='hs-conid'>IO</span> <span class='hs-conid'>()</span><span class='hs-layout'>)</span><span class='hs-layout'>)</span><span class='hs-layout'>)</span><span class='hs-layout'>)</span>
<a name="line-164"></a>
<a name="line-165"></a><span class='hs-keyword'>foreign</span> <span class='hs-keyword'>import</span> <span class='hs-keyword'>ccall</span> <span class='hs-keyword'>unsafe</span> <span class='hs-str'>"gtk_text_tag_table_get_size"</span>
<a name="line-166"></a>  <span class='hs-varid'>gtk_text_tag_table_get_size</span> <span class='hs-keyglyph'>::</span> <span class='hs-layout'>(</span><span class='hs-layout'>(</span><span class='hs-conid'>Ptr</span> <span class='hs-conid'>TextTagTable</span><span class='hs-layout'>)</span> <span class='hs-keyglyph'>-&gt;</span> <span class='hs-layout'>(</span><span class='hs-conid'>IO</span> <span class='hs-conid'>CInt</span><span class='hs-layout'>)</span><span class='hs-layout'>)</span>
</pre></body>
</html>