{-# LINE 2 "./Graphics/UI/Gtk/SourceView/SourceCompletionItem.chs" #-}-- -*-haskell-*--- GIMP Toolkit (GTK) Widget SourceCompletionItem---- Author : Andy Stewart---- Created: 08 Aug 2010---- Copyright (C) 2010 Andy Stewart---- This library is free software; you can redistribute it and/or-- modify it under the terms of the GNU Lesser General Public-- License as published by the Free Software Foundation; either-- version 2.1 of the License, or (at your option) any later version.---- This library is distributed in the hope that it will be useful,-- but WITHOUT ANY WARRANTY; without even the implied warranty of-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU-- Lesser General Public License for more details.---- |-- Maintainer : gtk2hs-users@lists.sourceforge.net-- Stability : provisional-- Portability : portable (depends on GHC)--moduleGraphics.UI.Gtk.SourceView.SourceCompletionItem(-- * TypesSourceCompletionItem,SourceCompletionItemClass,-- * MethodssourceCompletionItemNew,sourceCompletionItemNewWithMarkup,sourceCompletionItemNewFromStock,-- * AttributessourceCompletionItemIcon,sourceCompletionItemInfo,sourceCompletionItemLabel,sourceCompletionItemMarkup,sourceCompletionItemText,)whereimportControl.Monad(liftM)importData.Maybe(fromMaybe)importSystem.Glib.AttributesimportSystem.Glib.FFIimportSystem.Glib.GObject(makeNewGObject)importSystem.Glib.PropertiesimportSystem.Glib.UTFStringimportGraphics.UI.Gtk.SourceView.Signals{-# LINE 54 "./Graphics/UI/Gtk/SourceView/SourceCompletionItem.chs" #-}importGraphics.UI.Gtk.SourceView.Types{-# LINE 55 "./Graphics/UI/Gtk/SourceView/SourceCompletionItem.chs" #-}{-# LINE 57 "./Graphics/UI/Gtk/SourceView/SourceCompletionItem.chs" #-}-- | Create a new 'SourceCompletionItem' with label label, icon icon and extra information info. Both-- icon and info can be 'Nothing' in which case there will be no icon shown and no extra information-- available.sourceCompletionItemNew::String-- ^ @label@ The item label->String-- ^ @text@ The item text->MaybePixbuf-- ^ @icon@ The item icon or 'Nothing'->String-- ^ @info@ The item extra information->IOSourceCompletionItemsourceCompletionItemNewlabeltexticoninfo=makeNewGObjectmkSourceCompletionItem$withUTFStringlabel$\labelPtr->withUTFStringtext$\textPtr->withUTFStringinfo$\infoPtr->(\arg1arg2(Pixbufarg3)arg4->withForeignPtrarg3$\argPtr3->gtk_source_completion_item_newarg1arg2argPtr3arg4){-# LINE 72 "./Graphics/UI/Gtk/SourceView/SourceCompletionItem.chs" #-}labelPtrtextPtr(fromMaybe(PixbufnullForeignPtr)icon)infoPtr-- | Create a new 'SourceCompletionItem' with markup label markup, icon icon and extra information-- info. Both icon and info can be 'Nothing' in which case there will be no icon shown and no extra-- information available.sourceCompletionItemNewWithMarkup::String->String->MaybePixbuf->String->IOSourceCompletionItemsourceCompletionItemNewWithMarkupmarkuptexticoninfo=makeNewGObjectmkSourceCompletionItem$withUTFStringmarkup$\markupPtr->withUTFStringtext$\textPtr->withUTFStringinfo$\infoPtr->(\arg1arg2(Pixbufarg3)arg4->withForeignPtrarg3$\argPtr3->gtk_source_completion_item_new_with_markuparg1arg2argPtr3arg4){-# LINE 92 "./Graphics/UI/Gtk/SourceView/SourceCompletionItem.chs" #-}markupPtrtextPtr(fromMaybe(PixbufnullForeignPtr)icon)infoPtr-- | Creates a new 'SourceCompletionItem' from a stock item. If label is 'Nothing', the stock label will be-- used.sourceCompletionItemNewFromStock::MaybeString-- ^ @label@ The item label or 'Nothing'->String-- ^ @text@ The item text->String-- ^ @stock@ The stock icon->String-- ^ @info@ The item extra information->IOSourceCompletionItemsourceCompletionItemNewFromStocklabeltextstockinfo=makeNewGObjectmkSourceCompletionItem$maybeWithwithUTFStringlabel$\labelPtr->withUTFStringtext$\textPtr->withUTFStringstock$\stockPtr->withUTFStringinfo$\infoPtr->gtk_source_completion_item_new_from_stock{-# LINE 111 "./Graphics/UI/Gtk/SourceView/SourceCompletionItem.chs" #-}labelPtrtextPtrstockPtrinfoPtr-- | Icon to be shown for this proposal.sourceCompletionItemIcon::SourceCompletionItemClassitem=>AttritemPixbufsourceCompletionItemIcon=newAttrFromObjectProperty"icon"gdk_pixbuf_get_type{-# LINE 120 "./Graphics/UI/Gtk/SourceView/SourceCompletionItem.chs" #-}-- | Optional extra information to be shown for this proposal.---- Default value: \"\"sourceCompletionItemInfo::SourceCompletionItemClassitem=>AttritemStringsourceCompletionItemInfo=newAttrFromStringProperty"info"-- | Optional extra labelrmation to be shown for this proposal.---- Default value: \"\"sourceCompletionItemLabel::SourceCompletionItemClassitem=>AttritemStringsourceCompletionItemLabel=newAttrFromStringProperty"label"-- | Optional extra markuprmation to be shown for this proposal.---- Default value: \"\"sourceCompletionItemMarkup::SourceCompletionItemClassitem=>AttritemStringsourceCompletionItemMarkup=newAttrFromStringProperty"markup"-- | Optional extra textrmation to be shown for this proposal.---- Default value: \"\"sourceCompletionItemText::SourceCompletionItemClassitem=>AttritemStringsourceCompletionItemText=newAttrFromStringProperty"text"foreignimportccallsafe"gtk_source_completion_item_new"gtk_source_completion_item_new::((PtrCChar)->((PtrCChar)->((PtrPixbuf)->((PtrCChar)->(IO(PtrSourceCompletionItem))))))foreignimportccallsafe"gtk_source_completion_item_new_with_markup"gtk_source_completion_item_new_with_markup::((PtrCChar)->((PtrCChar)->((PtrPixbuf)->((PtrCChar)->(IO(PtrSourceCompletionItem))))))foreignimportccallsafe"gtk_source_completion_item_new_from_stock"gtk_source_completion_item_new_from_stock::((PtrCChar)->((PtrCChar)->((PtrCChar)->((PtrCChar)->(IO(PtrSourceCompletionItem))))))foreignimportccallunsafe"gdk_pixbuf_get_type"gdk_pixbuf_get_type::CUInt