Portability | portable (depends on GHC) |
---|---|
Stability | provisional |
Maintainer | gtk2hs-users@lists.sourceforge.net |
Safe Haskell | Safe-Infered |
- 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
class WindowClass o => SourceCompletionInfoClass o Source
Methods
sourceCompletionInfoMoveToIterSource
:: SourceCompletionInfoClass info | |
=> info | |
-> TextView |
|
-> Maybe TextIter | |
-> 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 | |
-> Int |
|
-> Int |
|
-> Bool |
|
-> Bool |
|
-> 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 Widget | returns 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