Maintainer | gtk2hs-users@lists.sourceforge.net |
---|---|
Stability | provisional |
Portability | portable (depends on GHC) |
Safe Haskell | None |
Language | Haskell98 |
Graphics.UI.Gtk.SourceView.SourceCompletionInfo
Description
- 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 #
Instances
Eq SourceCompletionInfo # | |
Ord SourceCompletionInfo # | |
GObjectClass SourceCompletionInfo # | |
WindowClass SourceCompletionInfo # | |
WidgetClass SourceCompletionInfo # | |
ObjectClass SourceCompletionInfo # | |
ContainerClass SourceCompletionInfo # | |
BinClass SourceCompletionInfo # | |
SourceCompletionInfoClass SourceCompletionInfo # | |
class WindowClass o => SourceCompletionInfoClass o #
Instances
Methods
sourceCompletionInfoMoveToIter #
Arguments
:: 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.
sourceCompletionInfoSetSizing #
Arguments
:: 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 () #
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 #
Arguments
:: SourceCompletionInfoClass info | |
=> info | |
-> IO Widget | returns The current content widget. |
Get the current content widget.
sourceCompletionInfoProcessResize :: SourceCompletionInfoClass info => info -> IO () #
Attributes
sourceCompletionInfoMaxHeight :: SourceCompletionInfoClass info => Attr info Int #
The maximum allowed height.
Allowed values: >= GMaxulong
Default value: -1
sourceCompletionInfoMaxWidth :: SourceCompletionInfoClass info => Attr info Int #
The maximum allowed width.
Allowed values: >= GMaxulong
Default value: -1
sourceCompletionInfoShrinkHeight :: SourceCompletionInfoClass info => Attr info Bool #
Whether the window should shrink height to fit the contents.
Default value: True
sourceCompletionInfoShrinkWidth :: SourceCompletionInfoClass info => Attr info Bool #
Whether the window should shrink width to fit the contents.
Default value: True
Signals
sourceCompletionInfoBeforeShow :: SourceCompletionInfoClass info => Signal info (IO ()) #