gtksourceview2-0.12.1: Binding to the GtkSourceView library.Source codeContentsIndex
Graphics.UI.Gtk.SourceView.SourceCompletionInfo
Portabilityportable (depends on GHC)
Stabilityprovisional
Maintainergtk2hs-users@lists.sourceforge.net
Contents
Description
Types
Methods
Attributes
Signals
Description
Synopsis
data SourceCompletionInfo
class WindowClass o => SourceCompletionInfoClass o
sourceCompletionInfoNew :: IO SourceCompletionInfo
sourceCompletionInfoMoveToIter :: SourceCompletionInfoClass info => info -> TextView -> Maybe TextIter -> IO ()
sourceCompletionInfoSetSizing :: SourceCompletionInfoClass info => info -> Int -> Int -> Bool -> Bool -> IO ()
sourceCompletionInfoSetWidget :: (SourceCompletionInfoClass info, WidgetClass widget) => info -> widget -> IO ()
sourceCompletionInfoGetWidget :: SourceCompletionInfoClass info => info -> IO Widget
sourceCompletionInfoProcessResize :: SourceCompletionInfoClass info => info -> IO ()
sourceCompletionInfoMaxHeight :: SourceCompletionInfoClass info => Attr info Int
sourceCompletionInfoMaxWidth :: SourceCompletionInfoClass info => Attr info Int
sourceCompletionInfoShrinkHeight :: SourceCompletionInfoClass info => Attr info Bool
sourceCompletionInfoShrinkWidth :: SourceCompletionInfoClass info => Attr info Bool
sourceCompletionInfoBeforeShow :: SourceCompletionInfoClass info => Signal info (IO ())
Description
This object can be used to show a calltip or help for the .* current completion proposal.
Types
data SourceCompletionInfo Source
show/hide Instances
class WindowClass o => SourceCompletionInfoClass o Source
show/hide Instances
Methods
sourceCompletionInfoNew :: IO SourceCompletionInfoSource
sourceCompletionInfoMoveToIterSource
:: SourceCompletionInfoClass info
=> info
-> TextViewview A TextView on which the info window should be positioned
-> Maybe TextIteriter A TextIter or Nothing
-> IO ()
Moves the SourceCompletionInfo to iter. If iter is Nothing info is moved to the cursor position. Moving will respect the Gravity setting of the info window and will ensure the line at iter is not occluded by the window.
sourceCompletionInfoSetSizingSource
:: SourceCompletionInfoClass info
=> info
-> Intwidth The maximum/requested width of the window (-1 to default)
-> Intheight The maximum/requested height of the window (-1 to default)
-> BoolshrinkWidth Whether to shrink the width of the window to fit its contents
-> BoolshrinkHeight Whether to shrink the height of the window to fit its contents
-> IO ()
Set sizing information for the info window. If shrinkWidth or shrinkHeight is True, the info window will try to resize to fit the window contents, with a maximum size given by width and height. Setting width or height to -1 removes the maximum size of respectively the width and height of the window.
sourceCompletionInfoSetWidget :: (SourceCompletionInfoClass info, WidgetClass widget) => info -> widget -> IO ()Source
Sets the content widget of the info window. If widget does not fit within the size requirements of the window, a ScrolledWindow will automatically be created and added to the window.
sourceCompletionInfoGetWidgetSource
:: SourceCompletionInfoClass info
=> info
-> IO Widgetreturns The current content widget.
Get the current content widget.
sourceCompletionInfoProcessResize :: SourceCompletionInfoClass info => info -> IO ()Source
Attributes
sourceCompletionInfoMaxHeight :: SourceCompletionInfoClass info => Attr info IntSource

The maximum allowed height.

Allowed values: >= GMaxulong

Default value: -1

sourceCompletionInfoMaxWidth :: SourceCompletionInfoClass info => Attr info IntSource

The maximum allowed width.

Allowed values: >= GMaxulong

Default value: -1

sourceCompletionInfoShrinkHeight :: SourceCompletionInfoClass info => Attr info BoolSource

Whether the window should shrink height to fit the contents.

Default value: True

sourceCompletionInfoShrinkWidth :: SourceCompletionInfoClass info => Attr info BoolSource

Whether the window should shrink width to fit the contents.

Default value: True

Signals
sourceCompletionInfoBeforeShow :: SourceCompletionInfoClass info => Signal info (IO ())Source
Produced by Haddock version 2.6.1