gtksourceview2-0.13.1.3: Binding to the GtkSourceView library.

Maintainergtk2hs-users@lists.sourceforge.net
Stabilityprovisional
Portabilityportable (depends on GHC)
Safe HaskellNone
LanguageHaskell98

Graphics.UI.Gtk.SourceView.SourceCompletionInfo

Contents

Description

 

Synopsis

Description

This object can be used to show a calltip or help for the .* current completion proposal.

Types

Methods

sourceCompletionInfoMoveToIter Source

Arguments

:: SourceCompletionInfoClass info 
=> info 
-> TextView

view A TextView on which the info window should be positioned

-> Maybe TextIter

iter 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.

sourceCompletionInfoSetSizing Source

Arguments

:: SourceCompletionInfoClass info 
=> info 
-> Int

width The maximum/requested width of the window (-1 to default)

-> Int

height The maximum/requested height of the window (-1 to default)

-> Bool

shrinkWidth Whether to shrink the width of the window to fit its contents

-> Bool

shrinkHeight 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.

sourceCompletionInfoGetWidget Source

Arguments

:: SourceCompletionInfoClass info 
=> info 
-> IO Widget

returns The current content widget.

Get the current content widget.

Attributes

sourceCompletionInfoMaxHeight :: SourceCompletionInfoClass info => Attr info Int Source

The maximum allowed height.

Allowed values: >= GMaxulong

Default value: -1

sourceCompletionInfoMaxWidth :: SourceCompletionInfoClass info => Attr info Int Source

The maximum allowed width.

Allowed values: >= GMaxulong

Default value: -1

sourceCompletionInfoShrinkHeight :: SourceCompletionInfoClass info => Attr info Bool Source

Whether the window should shrink height to fit the contents.

Default value: True

sourceCompletionInfoShrinkWidth :: SourceCompletionInfoClass info => Attr info Bool Source

Whether the window should shrink width to fit the contents.

Default value: True

Signals