| Copyright | Will Thompson and Iñaki García Etxebarria |
|---|---|
| License | LGPL-2.1 |
| Maintainer | Iñaki García Etxebarria |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
GI.Clutter.Objects.Text
Contents
- Exported types
- Methods
- activate
- coordsToPosition
- deleteChars
- deleteSelection
- deleteText
- getActivatable
- getAttributes
- getBuffer
- getChars
- getColor
- getCursorColor
- getCursorPosition
- getCursorRect
- getCursorSize
- getCursorVisible
- getEditable
- getEllipsize
- getFontDescription
- getFontName
- getJustify
- getLayout
- getLayoutOffsets
- getLineAlignment
- getLineWrap
- getLineWrapMode
- getMaxLength
- getPasswordChar
- getSelectable
- getSelectedTextColor
- getSelection
- getSelectionBound
- getSelectionColor
- getSingleLineMode
- getText
- getUseMarkup
- insertText
- insertUnichar
- new
- newFull
- newWithBuffer
- newWithText
- positionToCoords
- setActivatable
- setAttributes
- setBuffer
- setColor
- setCursorColor
- setCursorPosition
- setCursorSize
- setCursorVisible
- setEditable
- setEllipsize
- setFontDescription
- setFontName
- setJustify
- setLineAlignment
- setLineWrap
- setLineWrapMode
- setMarkup
- setMaxLength
- setPasswordChar
- setPreeditString
- setSelectable
- setSelectedTextColor
- setSelection
- setSelectionBound
- setSelectionColor
- setSingleLineMode
- setText
- setUseMarkup
- Properties
- activatable
- attributes
- buffer
- color
- cursorColor
- cursorColorSet
- cursorPosition
- cursorSize
- cursorVisible
- editable
- ellipsize
- fontDescription
- fontName
- justify
- lineAlignment
- lineWrap
- lineWrapMode
- maxLength
- passwordChar
- position
- selectable
- selectedTextColor
- selectedTextColorSet
- selectionBound
- selectionColor
- selectionColorSet
- singleLineMode
- text
- useMarkup
- Signals
Description
The Text struct contains only private data.
Since: 1.0
Synopsis
- newtype Text = Text (ManagedPtr Text)
- class (GObject o, IsDescendantOf Text o) => IsText o
- toText :: (MonadIO m, IsText o) => o -> m Text
- textActivate :: (HasCallStack, MonadIO m, IsText a) => a -> m Bool
- textCoordsToPosition :: (HasCallStack, MonadIO m, IsText a) => a -> Float -> Float -> m Int32
- textDeleteChars :: (HasCallStack, MonadIO m, IsText a) => a -> Word32 -> m ()
- textDeleteSelection :: (HasCallStack, MonadIO m, IsText a) => a -> m Bool
- textDeleteText :: (HasCallStack, MonadIO m, IsText a) => a -> Int64 -> Int64 -> m ()
- textGetActivatable :: (HasCallStack, MonadIO m, IsText a) => a -> m Bool
- textGetAttributes :: (HasCallStack, MonadIO m, IsText a) => a -> m AttrList
- textGetBuffer :: (HasCallStack, MonadIO m, IsText a) => a -> m TextBuffer
- textGetChars :: (HasCallStack, MonadIO m, IsText a) => a -> Int64 -> Int64 -> m Text
- textGetColor :: (HasCallStack, MonadIO m, IsText a) => a -> m Color
- textGetCursorColor :: (HasCallStack, MonadIO m, IsText a) => a -> m Color
- textGetCursorPosition :: (HasCallStack, MonadIO m, IsText a) => a -> m Int32
- textGetCursorRect :: (HasCallStack, MonadIO m, IsText a) => a -> m Rect
- textGetCursorSize :: (HasCallStack, MonadIO m, IsText a) => a -> m Word32
- textGetCursorVisible :: (HasCallStack, MonadIO m, IsText a) => a -> m Bool
- textGetEditable :: (HasCallStack, MonadIO m, IsText a) => a -> m Bool
- textGetEllipsize :: (HasCallStack, MonadIO m, IsText a) => a -> m EllipsizeMode
- textGetFontDescription :: (HasCallStack, MonadIO m, IsText a) => a -> m FontDescription
- textGetFontName :: (HasCallStack, MonadIO m, IsText a) => a -> m Text
- textGetJustify :: (HasCallStack, MonadIO m, IsText a) => a -> m Bool
- textGetLayout :: (HasCallStack, MonadIO m, IsText a) => a -> m Layout
- textGetLayoutOffsets :: (HasCallStack, MonadIO m, IsText a) => a -> m (Int32, Int32)
- textGetLineAlignment :: (HasCallStack, MonadIO m, IsText a) => a -> m Alignment
- textGetLineWrap :: (HasCallStack, MonadIO m, IsText a) => a -> m Bool
- textGetLineWrapMode :: (HasCallStack, MonadIO m, IsText a) => a -> m WrapMode
- textGetMaxLength :: (HasCallStack, MonadIO m, IsText a) => a -> m Int32
- textGetPasswordChar :: (HasCallStack, MonadIO m, IsText a) => a -> m Char
- textGetSelectable :: (HasCallStack, MonadIO m, IsText a) => a -> m Bool
- textGetSelectedTextColor :: (HasCallStack, MonadIO m, IsText a) => a -> m Color
- textGetSelection :: (HasCallStack, MonadIO m, IsText a) => a -> m Text
- textGetSelectionBound :: (HasCallStack, MonadIO m, IsText a) => a -> m Int32
- textGetSelectionColor :: (HasCallStack, MonadIO m, IsText a) => a -> m Color
- textGetSingleLineMode :: (HasCallStack, MonadIO m, IsText a) => a -> m Bool
- textGetText :: (HasCallStack, MonadIO m, IsText a) => a -> m Text
- textGetUseMarkup :: (HasCallStack, MonadIO m, IsText a) => a -> m Bool
- textInsertText :: (HasCallStack, MonadIO m, IsText a) => a -> Text -> Int64 -> m ()
- textInsertUnichar :: (HasCallStack, MonadIO m, IsText a) => a -> Char -> m ()
- textNew :: (HasCallStack, MonadIO m) => m Text
- textNewFull :: (HasCallStack, MonadIO m) => Text -> Text -> Color -> m Text
- textNewWithBuffer :: (HasCallStack, MonadIO m, IsTextBuffer a) => a -> m Text
- textNewWithText :: (HasCallStack, MonadIO m) => Maybe Text -> Text -> m Text
- textPositionToCoords :: (HasCallStack, MonadIO m, IsText a) => a -> Int32 -> m (Bool, Float, Float, Float)
- textSetActivatable :: (HasCallStack, MonadIO m, IsText a) => a -> Bool -> m ()
- textSetAttributes :: (HasCallStack, MonadIO m, IsText a) => a -> Maybe AttrList -> m ()
- textSetBuffer :: (HasCallStack, MonadIO m, IsText a, IsTextBuffer b) => a -> b -> m ()
- textSetColor :: (HasCallStack, MonadIO m, IsText a) => a -> Color -> m ()
- textSetCursorColor :: (HasCallStack, MonadIO m, IsText a) => a -> Maybe Color -> m ()
- textSetCursorPosition :: (HasCallStack, MonadIO m, IsText a) => a -> Int32 -> m ()
- textSetCursorSize :: (HasCallStack, MonadIO m, IsText a) => a -> Int32 -> m ()
- textSetCursorVisible :: (HasCallStack, MonadIO m, IsText a) => a -> Bool -> m ()
- textSetEditable :: (HasCallStack, MonadIO m, IsText a) => a -> Bool -> m ()
- textSetEllipsize :: (HasCallStack, MonadIO m, IsText a) => a -> EllipsizeMode -> m ()
- textSetFontDescription :: (HasCallStack, MonadIO m, IsText a) => a -> FontDescription -> m ()
- textSetFontName :: (HasCallStack, MonadIO m, IsText a) => a -> Maybe Text -> m ()
- textSetJustify :: (HasCallStack, MonadIO m, IsText a) => a -> Bool -> m ()
- textSetLineAlignment :: (HasCallStack, MonadIO m, IsText a) => a -> Alignment -> m ()
- textSetLineWrap :: (HasCallStack, MonadIO m, IsText a) => a -> Bool -> m ()
- textSetLineWrapMode :: (HasCallStack, MonadIO m, IsText a) => a -> WrapMode -> m ()
- textSetMarkup :: (HasCallStack, MonadIO m, IsText a) => a -> Maybe Text -> m ()
- textSetMaxLength :: (HasCallStack, MonadIO m, IsText a) => a -> Int32 -> m ()
- textSetPasswordChar :: (HasCallStack, MonadIO m, IsText a) => a -> Char -> m ()
- textSetPreeditString :: (HasCallStack, MonadIO m, IsText a) => a -> Maybe Text -> Maybe AttrList -> Word32 -> m ()
- textSetSelectable :: (HasCallStack, MonadIO m, IsText a) => a -> Bool -> m ()
- textSetSelectedTextColor :: (HasCallStack, MonadIO m, IsText a) => a -> Maybe Color -> m ()
- textSetSelection :: (HasCallStack, MonadIO m, IsText a) => a -> Int64 -> Int64 -> m ()
- textSetSelectionBound :: (HasCallStack, MonadIO m, IsText a) => a -> Int32 -> m ()
- textSetSelectionColor :: (HasCallStack, MonadIO m, IsText a) => a -> Maybe Color -> m ()
- textSetSingleLineMode :: (HasCallStack, MonadIO m, IsText a) => a -> Bool -> m ()
- textSetText :: (HasCallStack, MonadIO m, IsText a) => a -> Maybe Text -> m ()
- textSetUseMarkup :: (HasCallStack, MonadIO m, IsText a) => a -> Bool -> m ()
- constructTextActivatable :: (IsText o, MonadIO m) => Bool -> m (GValueConstruct o)
- getTextActivatable :: (MonadIO m, IsText o) => o -> m Bool
- setTextActivatable :: (MonadIO m, IsText o) => o -> Bool -> m ()
- clearTextAttributes :: (MonadIO m, IsText o) => o -> m ()
- constructTextAttributes :: (IsText o, MonadIO m) => AttrList -> m (GValueConstruct o)
- getTextAttributes :: (MonadIO m, IsText o) => o -> m AttrList
- setTextAttributes :: (MonadIO m, IsText o) => o -> AttrList -> m ()
- constructTextBuffer :: (IsText o, MonadIO m, IsTextBuffer a) => a -> m (GValueConstruct o)
- getTextBuffer :: (MonadIO m, IsText o) => o -> m TextBuffer
- setTextBuffer :: (MonadIO m, IsText o, IsTextBuffer a) => o -> a -> m ()
- constructTextColor :: (IsText o, MonadIO m) => Color -> m (GValueConstruct o)
- getTextColor :: (MonadIO m, IsText o) => o -> m (Maybe Color)
- setTextColor :: (MonadIO m, IsText o) => o -> Color -> m ()
- clearTextCursorColor :: (MonadIO m, IsText o) => o -> m ()
- constructTextCursorColor :: (IsText o, MonadIO m) => Color -> m (GValueConstruct o)
- getTextCursorColor :: (MonadIO m, IsText o) => o -> m (Maybe Color)
- setTextCursorColor :: (MonadIO m, IsText o) => o -> Color -> m ()
- getTextCursorColorSet :: (MonadIO m, IsText o) => o -> m Bool
- constructTextCursorPosition :: (IsText o, MonadIO m) => Int32 -> m (GValueConstruct o)
- getTextCursorPosition :: (MonadIO m, IsText o) => o -> m Int32
- setTextCursorPosition :: (MonadIO m, IsText o) => o -> Int32 -> m ()
- constructTextCursorSize :: (IsText o, MonadIO m) => Int32 -> m (GValueConstruct o)
- getTextCursorSize :: (MonadIO m, IsText o) => o -> m Int32
- setTextCursorSize :: (MonadIO m, IsText o) => o -> Int32 -> m ()
- constructTextCursorVisible :: (IsText o, MonadIO m) => Bool -> m (GValueConstruct o)
- getTextCursorVisible :: (MonadIO m, IsText o) => o -> m Bool
- setTextCursorVisible :: (MonadIO m, IsText o) => o -> Bool -> m ()
- constructTextEditable :: (IsText o, MonadIO m) => Bool -> m (GValueConstruct o)
- getTextEditable :: (MonadIO m, IsText o) => o -> m Bool
- setTextEditable :: (MonadIO m, IsText o) => o -> Bool -> m ()
- constructTextEllipsize :: (IsText o, MonadIO m) => EllipsizeMode -> m (GValueConstruct o)
- getTextEllipsize :: (MonadIO m, IsText o) => o -> m EllipsizeMode
- setTextEllipsize :: (MonadIO m, IsText o) => o -> EllipsizeMode -> m ()
- constructTextFontDescription :: (IsText o, MonadIO m) => FontDescription -> m (GValueConstruct o)
- getTextFontDescription :: (MonadIO m, IsText o) => o -> m (Maybe FontDescription)
- setTextFontDescription :: (MonadIO m, IsText o) => o -> FontDescription -> m ()
- clearTextFontName :: (MonadIO m, IsText o) => o -> m ()
- constructTextFontName :: (IsText o, MonadIO m) => Text -> m (GValueConstruct o)
- getTextFontName :: (MonadIO m, IsText o) => o -> m Text
- setTextFontName :: (MonadIO m, IsText o) => o -> Text -> m ()
- constructTextJustify :: (IsText o, MonadIO m) => Bool -> m (GValueConstruct o)
- getTextJustify :: (MonadIO m, IsText o) => o -> m Bool
- setTextJustify :: (MonadIO m, IsText o) => o -> Bool -> m ()
- constructTextLineAlignment :: (IsText o, MonadIO m) => Alignment -> m (GValueConstruct o)
- getTextLineAlignment :: (MonadIO m, IsText o) => o -> m Alignment
- setTextLineAlignment :: (MonadIO m, IsText o) => o -> Alignment -> m ()
- constructTextLineWrap :: (IsText o, MonadIO m) => Bool -> m (GValueConstruct o)
- getTextLineWrap :: (MonadIO m, IsText o) => o -> m Bool
- setTextLineWrap :: (MonadIO m, IsText o) => o -> Bool -> m ()
- constructTextLineWrapMode :: (IsText o, MonadIO m) => WrapMode -> m (GValueConstruct o)
- getTextLineWrapMode :: (MonadIO m, IsText o) => o -> m WrapMode
- setTextLineWrapMode :: (MonadIO m, IsText o) => o -> WrapMode -> m ()
- constructTextMaxLength :: (IsText o, MonadIO m) => Int32 -> m (GValueConstruct o)
- getTextMaxLength :: (MonadIO m, IsText o) => o -> m Int32
- setTextMaxLength :: (MonadIO m, IsText o) => o -> Int32 -> m ()
- constructTextPasswordChar :: (IsText o, MonadIO m) => Word32 -> m (GValueConstruct o)
- getTextPasswordChar :: (MonadIO m, IsText o) => o -> m Word32
- setTextPasswordChar :: (MonadIO m, IsText o) => o -> Word32 -> m ()
- constructTextPosition :: (IsText o, MonadIO m) => Int32 -> m (GValueConstruct o)
- getTextPosition :: (MonadIO m, IsText o) => o -> m Int32
- setTextPosition :: (MonadIO m, IsText o) => o -> Int32 -> m ()
- constructTextSelectable :: (IsText o, MonadIO m) => Bool -> m (GValueConstruct o)
- getTextSelectable :: (MonadIO m, IsText o) => o -> m Bool
- setTextSelectable :: (MonadIO m, IsText o) => o -> Bool -> m ()
- clearTextSelectedTextColor :: (MonadIO m, IsText o) => o -> m ()
- constructTextSelectedTextColor :: (IsText o, MonadIO m) => Color -> m (GValueConstruct o)
- getTextSelectedTextColor :: (MonadIO m, IsText o) => o -> m (Maybe Color)
- setTextSelectedTextColor :: (MonadIO m, IsText o) => o -> Color -> m ()
- getTextSelectedTextColorSet :: (MonadIO m, IsText o) => o -> m Bool
- constructTextSelectionBound :: (IsText o, MonadIO m) => Int32 -> m (GValueConstruct o)
- getTextSelectionBound :: (MonadIO m, IsText o) => o -> m Int32
- setTextSelectionBound :: (MonadIO m, IsText o) => o -> Int32 -> m ()
- clearTextSelectionColor :: (MonadIO m, IsText o) => o -> m ()
- constructTextSelectionColor :: (IsText o, MonadIO m) => Color -> m (GValueConstruct o)
- getTextSelectionColor :: (MonadIO m, IsText o) => o -> m (Maybe Color)
- setTextSelectionColor :: (MonadIO m, IsText o) => o -> Color -> m ()
- getTextSelectionColorSet :: (MonadIO m, IsText o) => o -> m Bool
- constructTextSingleLineMode :: (IsText o, MonadIO m) => Bool -> m (GValueConstruct o)
- getTextSingleLineMode :: (MonadIO m, IsText o) => o -> m Bool
- setTextSingleLineMode :: (MonadIO m, IsText o) => o -> Bool -> m ()
- clearTextText :: (MonadIO m, IsText o) => o -> m ()
- constructTextText :: (IsText o, MonadIO m) => Text -> m (GValueConstruct o)
- getTextText :: (MonadIO m, IsText o) => o -> m Text
- setTextText :: (MonadIO m, IsText o) => o -> Text -> m ()
- constructTextUseMarkup :: (IsText o, MonadIO m) => Bool -> m (GValueConstruct o)
- getTextUseMarkup :: (MonadIO m, IsText o) => o -> m Bool
- setTextUseMarkup :: (MonadIO m, IsText o) => o -> Bool -> m ()
- type TextActivateCallback = IO ()
- afterTextActivate :: (IsText a, MonadIO m) => a -> ((?self :: a) => TextActivateCallback) -> m SignalHandlerId
- onTextActivate :: (IsText a, MonadIO m) => a -> ((?self :: a) => TextActivateCallback) -> m SignalHandlerId
- type TextCursorChangedCallback = IO ()
- afterTextCursorChanged :: (IsText a, MonadIO m) => a -> ((?self :: a) => TextCursorChangedCallback) -> m SignalHandlerId
- onTextCursorChanged :: (IsText a, MonadIO m) => a -> ((?self :: a) => TextCursorChangedCallback) -> m SignalHandlerId
- type TextCursorEventCallback = Geometry -> IO ()
- afterTextCursorEvent :: (IsText a, MonadIO m) => a -> ((?self :: a) => TextCursorEventCallback) -> m SignalHandlerId
- onTextCursorEvent :: (IsText a, MonadIO m) => a -> ((?self :: a) => TextCursorEventCallback) -> m SignalHandlerId
- type TextDeleteTextCallback = Int32 -> Int32 -> IO ()
- afterTextDeleteText :: (IsText a, MonadIO m) => a -> ((?self :: a) => TextDeleteTextCallback) -> m SignalHandlerId
- onTextDeleteText :: (IsText a, MonadIO m) => a -> ((?self :: a) => TextDeleteTextCallback) -> m SignalHandlerId
- type TextInsertTextCallback = Text -> Int32 -> Ptr () -> IO ()
- afterTextInsertText :: (IsText a, MonadIO m) => a -> ((?self :: a) => TextInsertTextCallback) -> m SignalHandlerId
- onTextInsertText :: (IsText a, MonadIO m) => a -> ((?self :: a) => TextInsertTextCallback) -> m SignalHandlerId
- type TextTextChangedCallback = IO ()
- afterTextTextChanged :: (IsText a, MonadIO m) => a -> ((?self :: a) => TextTextChangedCallback) -> m SignalHandlerId
- onTextTextChanged :: (IsText a, MonadIO m) => a -> ((?self :: a) => TextTextChangedCallback) -> m SignalHandlerId
Exported types
Memory-managed wrapper type.
Instances
| Eq Text Source # | |
| GObject Text Source # | |
Defined in GI.Clutter.Objects.Text | |
| ManagedPtrNewtype Text Source # | |
Defined in GI.Clutter.Objects.Text Methods toManagedPtr :: Text -> ManagedPtr Text | |
| TypedObject Text Source # | |
Defined in GI.Clutter.Objects.Text | |
| HasParentTypes Text Source # | |
Defined in GI.Clutter.Objects.Text | |
| IsGValue (Maybe Text) Source # | Convert |
Defined in GI.Clutter.Objects.Text Methods gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe Text -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe Text) | |
| type ParentTypes Text Source # | |
Defined in GI.Clutter.Objects.Text | |
class (GObject o, IsDescendantOf Text o) => IsText o Source #
Instances
| (GObject o, IsDescendantOf Text o) => IsText o Source # | |
Defined in GI.Clutter.Objects.Text | |
Methods
Click to display all available methods, including inherited ones
Methods
activate, addAction, addActionWithName, addActor, addChild, addConstraint, addConstraintWithName, addEffect, addEffectWithName, addTransition, allocate, allocateAlignFill, allocateAvailableSize, allocatePreferredSize, animateProperty, animateWithAlphav, animateWithTimelinev, animatev, applyRelativeTransformToPoint, applyTransformToPoint, bindModel, bindProperty, bindPropertyFull, childGetProperty, childNotify, childSetProperty, clearActions, clearConstraints, clearEffects, contains, continuePaint, coordsToPosition, createChildMeta, createPangoContext, createPangoLayout, deleteChars, deleteSelection, deleteText, destroy, destroyAllChildren, destroyChildMeta, detachAnimation, event, findChildByName, findProperty, forceFloating, foreach, foreachWithInternals, freezeNotify, getv, grabKeyFocus, hasActions, hasAllocation, hasClip, hasConstraints, hasEffects, hasKeyFocus, hasOverlaps, hasPointer, hide, hideAll, insertChildAbove, insertChildAtIndex, insertChildBelow, insertText, insertUnichar, interpolateValue, isFloating, isInClonePaint, isMapped, isRealized, isRotated, isScaled, isVisible, lower, lowerBottom, lowerChild, map, moveAnchorPoint, moveAnchorPointFromGravity, moveBy, needsExpand, notify, notifyByPspec, paint, parseCustomNode, popInternal, positionToCoords, pushInternal, queueRedraw, queueRedrawWithClip, queueRelayout, raise, raiseChild, raiseTop, realize, ref, refSink, removeAction, removeActionByName, removeActor, removeAllChildren, removeAllTransitions, removeChild, removeClip, removeConstraint, removeConstraintByName, removeEffect, removeEffectByName, removeTransition, reparent, replaceChild, restoreEasingState, runDispose, saveEasingState, shouldPickPaint, show, showAll, sortDepthOrder, stealData, stealQdata, thawNotify, transformStagePoint, unmap, unparent, unrealize, unref, unsetFlags, watchClosure.
Getters
getAbsAllocationVertices, getAccessible, getAction, getActions, getActivatable, getAllocationBox, getAllocationGeometry, getAllocationVertices, getAnchorPoint, getAnchorPointGravity, getAnimation, getAttributes, getBackgroundColor, getBuffer, getChars, getChildAtIndex, getChildMeta, getChildTransform, getChildren, getClip, getClipToAllocation, getColor, getConstraint, getConstraints, getContent, getContentBox, getContentGravity, getContentRepeat, getContentScalingFilters, getCursorColor, getCursorPosition, getCursorRect, getCursorSize, getCursorVisible, getData, getDefaultPaintVolume, getDepth, getEasingDelay, getEasingDuration, getEasingMode, getEditable, getEffect, getEffects, getEllipsize, getFirstChild, getFixedPositionSet, getFlags, getFontDescription, getFontName, getGeometry, getGid, getHeight, getId, getInitialState, getJustify, getLastChild, getLayout, getLayoutManager, getLayoutOffsets, getLineAlignment, getLineWrap, getLineWrapMode, getMargin, getMarginBottom, getMarginLeft, getMarginRight, getMarginTop, getMaxLength, getNChildren, getName, getNextSibling, getOffscreenRedirect, getOpacity, getPaintBox, getPaintOpacity, getPaintVisibility, getPaintVolume, getPangoContext, getParent, getPasswordChar, getPivotPoint, getPivotPointZ, getPosition, getPreferredHeight, getPreferredSize, getPreferredWidth, getPreviousSibling, getProperty, getQdata, getReactive, getRequestMode, getRotation, getRotationAngle, getScale, getScaleCenter, getScaleGravity, getScaleZ, getSelectable, getSelectedTextColor, getSelection, getSelectionBound, getSelectionColor, getShader, getSingleLineMode, getSize, getStage, getText, getTextDirection, getTransform, getTransformationMatrix, getTransformedPaintVolume, getTransformedPosition, getTransformedSize, getTransition, getTranslation, getUseMarkup, getWidth, getX, getXAlign, getXExpand, getY, getYAlign, getYExpand, getZPosition, getZRotationGravity.
Setters
setActivatable, setAllocation, setAnchorPoint, setAnchorPointFromGravity, setAttributes, setBackgroundColor, setBuffer, setChildAboveSibling, setChildAtIndex, setChildBelowSibling, setChildTransform, setClip, setClipToAllocation, setColor, setContent, setContentGravity, setContentRepeat, setContentScalingFilters, setCursorColor, setCursorPosition, setCursorSize, setCursorVisible, setCustomProperty, setData, setDataFull, setDepth, setEasingDelay, setEasingDuration, setEasingMode, setEditable, setEllipsize, setFinalState, setFixedPositionSet, setFlags, setFontDescription, setFontName, setGeometry, setHeight, setId, setJustify, setLayoutManager, setLineAlignment, setLineWrap, setLineWrapMode, setMargin, setMarginBottom, setMarginLeft, setMarginRight, setMarginTop, setMarkup, setMaxLength, setName, setOffscreenRedirect, setOpacity, setParent, setPasswordChar, setPivotPoint, setPivotPointZ, setPosition, setPreeditString, setProperty, setReactive, setRequestMode, setRotation, setRotationAngle, setScale, setScaleFull, setScaleWithGravity, setScaleZ, setSelectable, setSelectedTextColor, setSelection, setSelectionBound, setSelectionColor, setShader, setShaderParam, setShaderParamFloat, setShaderParamInt, setSingleLineMode, setSize, setText, setTextDirection, setTransform, setTranslation, setUseMarkup, setWidth, setX, setXAlign, setXExpand, setY, setYAlign, setYExpand, setZPosition, setZRotationFromGravity.
activate
Arguments
| :: (HasCallStack, MonadIO m, IsText a) | |
| => a |
|
| -> m Bool | Returns: |
Emits the Text::activate signal, if self has been set
as activatable using textSetActivatable.
This function can be used to emit the activate signal inside
a Actor::capturedEvent or Actor::keyPressEvent
signal handlers before the default signal handler for the
Text is invoked.
Since: 1.0
coordsToPosition
Arguments
| :: (HasCallStack, MonadIO m, IsText a) | |
| => a |
|
| -> Float |
|
| -> Float |
|
| -> m Int32 | Returns: the position of the character |
Retrieves the position of the character at the given coordinates.
Since: 1.10
deleteChars
Arguments
| :: (HasCallStack, MonadIO m, IsText a) | |
| => a |
|
| -> Word32 |
|
| -> m () |
Deletes nChars inside a Text actor, starting from the
current cursor position.
Somewhat awkwardly, the cursor position is decremented by the same number of characters you've deleted.
Since: 1.0
deleteSelection
deleteText
Arguments
| :: (HasCallStack, MonadIO m, IsText a) | |
| => a |
|
| -> Int64 |
|
| -> Int64 |
|
| -> m () |
Deletes the text inside a Text actor between startPos
and endPos.
The starting and ending positions are expressed in characters, not in bytes.
Since: 1.0
getActivatable
Arguments
| :: (HasCallStack, MonadIO m, IsText a) | |
| => a |
|
| -> m Bool | Returns: |
Retrieves whether a Text is activatable or not.
Since: 1.0
getAttributes
Arguments
| :: (HasCallStack, MonadIO m, IsText a) | |
| => a |
|
| -> m AttrList | Returns: the attribute list, or |
Gets the attribute list that was set on the Text actor
textSetAttributes, if any.
Since: 1.0
getBuffer
Arguments
| :: (HasCallStack, MonadIO m, IsText a) | |
| => a |
|
| -> m TextBuffer | Returns: A |
Get the TextBuffer object which holds the text for
this widget.
Since: 1.10
getChars
Arguments
| :: (HasCallStack, MonadIO m, IsText a) | |
| => a |
|
| -> Int64 |
|
| -> Int64 |
|
| -> m Text | Returns: a newly allocated string with the contents of
the text actor between the specified positions. Use |
Retrieves the contents of the Text actor between
startPos and endPos, but not including endPos.
The positions are specified in characters, not in bytes.
Since: 1.0
getColor
Arguments
| :: (HasCallStack, MonadIO m, IsText a) | |
| => a |
|
| -> m Color |
Retrieves the text color as set by textSetColor.
Since: 1.0
getCursorColor
Arguments
| :: (HasCallStack, MonadIO m, IsText a) | |
| => a |
|
| -> m Color |
Retrieves the color of the cursor of a Text actor.
Since: 1.0
getCursorPosition
textGetCursorPosition Source #
Arguments
| :: (HasCallStack, MonadIO m, IsText a) | |
| => a |
|
| -> m Int32 | Returns: the cursor position, in characters |
Retrieves the cursor position.
Since: 1.0
getCursorRect
Arguments
| :: (HasCallStack, MonadIO m, IsText a) | |
| => a |
|
| -> m Rect |
Retrieves the rectangle that contains the cursor.
The coordinates of the rectangle's origin are in actor-relative coordinates.
Since: 1.16
getCursorSize
Arguments
| :: (HasCallStack, MonadIO m, IsText a) | |
| => a |
|
| -> m Word32 | Returns: the size of the cursor, in pixels |
Retrieves the size of the cursor of a Text actor.
Since: 1.0
getCursorVisible
Arguments
| :: (HasCallStack, MonadIO m, IsText a) | |
| => a |
|
| -> m Bool | Returns: |
Retrieves whether the cursor of a Text actor is visible.
Since: 1.0
getEditable
Arguments
| :: (HasCallStack, MonadIO m, IsText a) | |
| => a |
|
| -> m Bool | Returns: |
Retrieves whether a Text is editable or not.
Since: 1.0
getEllipsize
Arguments
| :: (HasCallStack, MonadIO m, IsText a) | |
| => a |
|
| -> m EllipsizeMode | Returns: |
Returns the ellipsizing position of a Text actor, as
set by textSetEllipsize.
Since: 1.0
getFontDescription
textGetFontDescription Source #
Arguments
| :: (HasCallStack, MonadIO m, IsText a) | |
| => a |
|
| -> m FontDescription | Returns: a |
Retrieves the FontDescription used by self
Since: 1.2
getFontName
Arguments
| :: (HasCallStack, MonadIO m, IsText a) | |
| => a |
|
| -> m Text | Returns: a string containing the font name. The returned
string is owned by the |
Retrieves the font name as set by textSetFontName.
Since: 1.0
getJustify
Arguments
| :: (HasCallStack, MonadIO m, IsText a) | |
| => a |
|
| -> m Bool | Returns: |
Retrieves whether the Text actor should justify its contents
on both margins.
Since: 0.6
getLayout
getLayoutOffsets
getLineAlignment
Arguments
| :: (HasCallStack, MonadIO m, IsText a) | |
| => a |
|
| -> m Alignment | Returns: a |
Retrieves the alignment of a Text, as set by
textSetLineAlignment.
Since: 1.0
getLineWrap
Arguments
| :: (HasCallStack, MonadIO m, IsText a) | |
| => a |
|
| -> m Bool |
Retrieves the value set using textSetLineWrap.
Since: 1.0
getLineWrapMode
Arguments
| :: (HasCallStack, MonadIO m, IsText a) | |
| => a |
|
| -> m WrapMode | Returns: the wrap mode used by the |
Retrieves the line wrap mode used by the Text actor.
See clutter_text_set_line_wrap_mode ().
Since: 1.0
getMaxLength
Arguments
| :: (HasCallStack, MonadIO m, IsText a) | |
| => a |
|
| -> m Int32 | Returns: the maximum number of characters. |
getPasswordChar
Arguments
| :: (HasCallStack, MonadIO m, IsText a) | |
| => a |
|
| -> m Char | Returns: a Unicode character or 0 if the password character is not set |
Retrieves the character to use in place of the actual text
as set by textSetPasswordChar.
Since: 1.0
getSelectable
Arguments
| :: (HasCallStack, MonadIO m, IsText a) | |
| => a |
|
| -> m Bool | Returns: |
Retrieves whether a Text is selectable or not.
Since: 1.0
getSelectedTextColor
textGetSelectedTextColor Source #
Arguments
| :: (HasCallStack, MonadIO m, IsText a) | |
| => a |
|
| -> m Color |
Retrieves the color of selected text of a Text actor.
Since: 1.8
getSelection
Arguments
| :: (HasCallStack, MonadIO m, IsText a) | |
| => a |
|
| -> m Text | Returns: a newly allocated string containing the currently
selected text, or |
Retrieves the currently selected text.
Since: 1.0
getSelectionBound
textGetSelectionBound Source #
Arguments
| :: (HasCallStack, MonadIO m, IsText a) | |
| => a |
|
| -> m Int32 | Returns: the position of the other end of the selection |
Retrieves the other end of the selection of a Text actor,
in characters from the current cursor position.
Since: 1.0
getSelectionColor
textGetSelectionColor Source #
Arguments
| :: (HasCallStack, MonadIO m, IsText a) | |
| => a |
|
| -> m Color |
Retrieves the color of the selection of a Text actor.
Since: 1.0
getSingleLineMode
textGetSingleLineMode Source #
Arguments
| :: (HasCallStack, MonadIO m, IsText a) | |
| => a |
|
| -> m Bool |
Retrieves whether the Text actor is in single line mode.
Since: 1.0
getText
Arguments
| :: (HasCallStack, MonadIO m, IsText a) | |
| => a |
|
| -> m Text | Returns: the contents of the actor. The returned
string is owned by the |
Retrieves a pointer to the current contents of a Text
actor.
If you need a copy of the contents for manipulating, either
use strdup on the returned string, or use:
copy = clutter_text_get_chars (text, 0, -1);
Which will return a newly allocated string.
If the Text actor is empty, this function will return
an empty string, and not Nothing.
Since: 1.0
getUseMarkup
Arguments
| :: (HasCallStack, MonadIO m, IsText a) | |
| => a |
|
| -> m Bool | Returns: |
Retrieves whether the contents of the Text actor should be
parsed for the Pango text markup.
Since: 1.0
insertText
insertUnichar
Arguments
| :: (HasCallStack, MonadIO m, IsText a) | |
| => a |
|
| -> Char |
|
| -> m () |
Inserts wc at the current cursor position of a
Text actor.
Since: 1.0
new
Arguments
| :: (HasCallStack, MonadIO m) | |
| => m Text | Returns: the newly created |
Creates a new Text actor. This actor can be used to
display and edit text.
Since: 1.0
newFull
Arguments
| :: (HasCallStack, MonadIO m) | |
| => Text |
|
| -> Text |
|
| -> Color |
|
| -> m Text | Returns: the newly created |
Creates a new Text actor, using fontName as the font
description; text will be used to set the contents of the actor;
and color will be used as the color to render text.
This function is equivalent to calling textNew,
textSetFontName, textSetText and
textSetColor.
Since: 1.0
newWithBuffer
Arguments
| :: (HasCallStack, MonadIO m, IsTextBuffer a) | |
| => a |
|
| -> m Text | Returns: a new |
Creates a new entry with the specified text buffer.
Since: 1.10
newWithText
Arguments
| :: (HasCallStack, MonadIO m) | |
| => Maybe Text |
|
| -> Text |
|
| -> m Text | Returns: the newly created |
Creates a new Text actor, using fontName as the font
description; text will be used to set the contents of the actor.
This function is equivalent to calling textNew,
textSetFontName, and textSetText.
Since: 1.0
positionToCoords
Arguments
| :: (HasCallStack, MonadIO m, IsText a) | |
| => a |
|
| -> Int32 |
|
| -> m (Bool, Float, Float, Float) | Returns: |
Retrieves the coordinates of the given position.
Since: 1.0
setActivatable
Arguments
| :: (HasCallStack, MonadIO m, IsText a) | |
| => a |
|
| -> Bool |
|
| -> m () |
Sets whether a Text actor should be activatable.
An activatable Text actor will emit the Text::activate
signal whenever the 'Enter' (or 'Return') key is pressed; if it is not
activatable, a new line will be appended to the current content.
An activatable Text must also be set as editable using
textSetEditable.
Since: 1.0
setAttributes
Arguments
| :: (HasCallStack, MonadIO m, IsText a) | |
| => a |
|
| -> Maybe AttrList | |
| -> m () |
setBuffer
Arguments
| :: (HasCallStack, MonadIO m, IsText a, IsTextBuffer b) | |
| => a |
|
| -> b |
|
| -> m () |
Set the TextBuffer object which holds the text for
this widget.
Since: 1.10
setColor
Sets the color of the contents of a Text actor.
The overall opacity of the Text actor will be the
result of the alpha value of color and the composited
opacity of the actor itself on the scenegraph, as returned
by actorGetPaintOpacity.
Since: 1.0
setCursorColor
setCursorPosition
textSetCursorPosition Source #
Arguments
| :: (HasCallStack, MonadIO m, IsText a) | |
| => a |
|
| -> Int32 |
|
| -> m () |
Sets the cursor of a Text actor at position.
The position is expressed in characters, not in bytes.
Since: 1.0
setCursorSize
Arguments
| :: (HasCallStack, MonadIO m, IsText a) | |
| => a |
|
| -> Int32 |
|
| -> m () |
Sets the size of the cursor of a Text. The cursor
will only be visible if the Text:cursorVisible property
is set to True.
Since: 1.0
setCursorVisible
Arguments
| :: (HasCallStack, MonadIO m, IsText a) | |
| => a |
|
| -> Bool |
|
| -> m () |
Sets whether the cursor of a Text actor should be
visible or not.
The color of the cursor will be the same as the text color
unless textSetCursorColor has been called.
The size of the cursor can be set using textSetCursorSize.
The position of the cursor can be changed programmatically using
textSetCursorPosition.
Since: 1.0
setEditable
Arguments
| :: (HasCallStack, MonadIO m, IsText a) | |
| => a |
|
| -> Bool |
|
| -> m () |
Sets whether the Text actor should be editable.
An editable Text with key focus set using
actorGrabKeyFocus or stageSetKeyFocus
will receive key events and will update its contents accordingly.
Since: 1.0
setEllipsize
Arguments
| :: (HasCallStack, MonadIO m, IsText a) | |
| => a |
|
| -> EllipsizeMode |
|
| -> m () |
Sets the mode used to ellipsize (add an ellipsis: "...") to the
text if there is not enough space to render the entire contents
of a Text actor
Since: 1.0
setFontDescription
textSetFontDescription Source #
Arguments
| :: (HasCallStack, MonadIO m, IsText a) | |
| => a |
|
| -> FontDescription |
|
| -> m () |
Sets fontDesc as the font description for a Text
The FontDescription is copied by the Text actor
so you can safely call fontDescriptionFree on it after
calling this function.
Since: 1.2
setFontName
Arguments
| :: (HasCallStack, MonadIO m, IsText a) | |
| => a |
|
| -> Maybe Text |
|
| -> m () |
Sets the font used by a Text. The fontName string
must either be Nothing, which means that the font name from the
default Backend will be used; or be something that can
be parsed by the fontDescriptionFromString function,
like:
// Set the font to the system's Sans, 10 points clutter_text_set_font_name (text, "Sans 10"); // Set the font to the system's Serif, 16 pixels clutter_text_set_font_name (text, "Serif 16px"); // Set the font to Helvetica, 10 points clutter_text_set_font_name (text, "Helvetica 10");
Since: 1.0
setJustify
Arguments
| :: (HasCallStack, MonadIO m, IsText a) | |
| => a |
|
| -> Bool |
|
| -> m () |
Sets whether the text of the Text actor should be justified
on both margins. This setting is ignored if Clutter is compiled
against Pango < 1.18.
Since: 1.0
setLineAlignment
Arguments
| :: (HasCallStack, MonadIO m, IsText a) | |
| => a |
|
| -> Alignment |
|
| -> m () |
Sets the way that the lines of a wrapped label are aligned with respect to each other. This does not affect the overall alignment of the label within its allocated or specified width.
To align a Text actor you should add it to a container
that supports alignment, or use the anchor point.
Since: 1.0
setLineWrap
Arguments
| :: (HasCallStack, MonadIO m, IsText a) | |
| => a |
|
| -> Bool |
|
| -> m () |
Sets whether the contents of a Text actor should wrap,
if they don't fit the size assigned to the actor.
Since: 1.0
setLineWrapMode
Arguments
| :: (HasCallStack, MonadIO m, IsText a) | |
| => a |
|
| -> WrapMode |
|
| -> m () |
If line wrapping is enabled (see textSetLineWrap) this
function controls how the line wrapping is performed. The default is
WrapModeWord which means wrap on word boundaries.
Since: 1.0
setMarkup
Arguments
| :: (HasCallStack, MonadIO m, IsText a) | |
| => a |
|
| -> Maybe Text |
|
| -> m () |
Sets markup as the contents of a Text.
This is a convenience function for setting a string containing Pango markup, and it is logically equivalent to:
/* the order is important */ clutter_text_set_text (CLUTTER_TEXT (actor), markup); clutter_text_set_use_markup (CLUTTER_TEXT (actor), TRUE);
Since: 1.0
setMaxLength
Arguments
| :: (HasCallStack, MonadIO m, IsText a) | |
| => a |
|
| -> Int32 |
|
| -> m () |
Sets the maximum allowed length of the contents of the actor. If the current contents are longer than the given length, then they will be truncated to fit.
Since: 1.0
setPasswordChar
Arguments
| :: (HasCallStack, MonadIO m, IsText a) | |
| => a |
|
| -> Char |
|
| -> m () |
Sets the character to use in place of the actual text in a password text actor.
If wc is 0 the text will be displayed as it is entered in the
Text actor.
Since: 1.0
setPreeditString
Arguments
| :: (HasCallStack, MonadIO m, IsText a) | |
| => a |
|
| -> Maybe Text |
|
| -> Maybe AttrList |
|
| -> Word32 |
|
| -> m () |
Sets, or unsets, the pre-edit string. This function is useful
for input methods to display a string (with eventual specific
Pango attributes) before it is entered inside the Text
buffer.
The preedit string and attributes are ignored if the Text
actor is not editable.
This function should not be used by applications
Since: 1.2
setSelectable
setSelectedTextColor
setSelection
Arguments
| :: (HasCallStack, MonadIO m, IsText a) | |
| => a |
|
| -> Int64 |
|
| -> Int64 |
|
| -> m () |
Selects the region of text between startPos and endPos.
This function changes the position of the cursor to match
startPos and the selection bound to match endPos.
Since: 1.0
setSelectionBound
textSetSelectionBound Source #
Arguments
| :: (HasCallStack, MonadIO m, IsText a) | |
| => a |
|
| -> Int32 |
|
| -> m () |
Sets the other end of the selection, starting from the current cursor position.
If selectionBound is -1, the selection unset.
Since: 1.0
setSelectionColor
setSingleLineMode
textSetSingleLineMode Source #
Arguments
| :: (HasCallStack, MonadIO m, IsText a) | |
| => a |
|
| -> Bool |
|
| -> m () |
Sets whether a Text actor should be in single line mode
or not. Only editable Texts can be in single line
mode.
A text actor in single line mode will not wrap text and will clip the visible area to the predefined size. The contents of the text actor will scroll to display the end of the text if its length is bigger than the allocated width.
When setting the single line mode the Text:activatable property is also set as a side effect. Instead of entering a new line character, the text actor will emit the Text::activate signal.
Since: 1.0
setText
Arguments
| :: (HasCallStack, MonadIO m, IsText a) | |
| => a |
|
| -> Maybe Text |
|
| -> m () |
Sets the contents of a Text actor.
If the Text:useMarkup property was set to True it
will be reset to False as a side effect. If you want to
maintain the Text:useMarkup you should use the
textSetMarkup function instead
Since: 1.0
setUseMarkup
Arguments
| :: (HasCallStack, MonadIO m, IsText a) | |
| => a |
|
| -> Bool |
|
| -> m () |
Sets whether the contents of the Text actor contains markup
in <link linkend="PangoMarkupFormat">Pango's text markup language</link>.
Setting Text:useMarkup on an editable Text will
not have any effect except hiding the markup.
See also Text:useMarkup.
Since: 1.0
Properties
activatable
Toggles whether return invokes the activate signal or not.
Since: 1.0
constructTextActivatable :: (IsText o, MonadIO m) => Bool -> m (GValueConstruct o) Source #
Construct a GValueConstruct with valid value for the “activatable” property. This is rarely needed directly, but it is used by new.
getTextActivatable :: (MonadIO m, IsText o) => o -> m Bool Source #
Get the value of the “activatable” property.
When overloading is enabled, this is equivalent to
get text #activatable
setTextActivatable :: (MonadIO m, IsText o) => o -> Bool -> m () Source #
Set the value of the “activatable” property.
When overloading is enabled, this is equivalent to
settext [ #activatable:=value ]
attributes
A list of PangoStyleAttributes to be applied to the
contents of the Text actor.
Since: 1.0
clearTextAttributes :: (MonadIO m, IsText o) => o -> m () Source #
Set the value of the “attributes” property to Nothing.
When overloading is enabled, this is equivalent to
clear #attributes
constructTextAttributes :: (IsText o, MonadIO m) => AttrList -> m (GValueConstruct o) Source #
Construct a GValueConstruct with valid value for the “attributes” property. This is rarely needed directly, but it is used by new.
getTextAttributes :: (MonadIO m, IsText o) => o -> m AttrList Source #
Get the value of the “attributes” property.
When overloading is enabled, this is equivalent to
get text #attributes
setTextAttributes :: (MonadIO m, IsText o) => o -> AttrList -> m () Source #
Set the value of the “attributes” property.
When overloading is enabled, this is equivalent to
settext [ #attributes:=value ]
buffer
The buffer which stores the text for this Text.
If set to Nothing, a default buffer will be created.
Since: 1.8
constructTextBuffer :: (IsText o, MonadIO m, IsTextBuffer a) => a -> m (GValueConstruct o) Source #
Construct a GValueConstruct with valid value for the “buffer” property. This is rarely needed directly, but it is used by new.
getTextBuffer :: (MonadIO m, IsText o) => o -> m TextBuffer Source #
Get the value of the “buffer” property.
When overloading is enabled, this is equivalent to
get text #buffer
setTextBuffer :: (MonadIO m, IsText o, IsTextBuffer a) => o -> a -> m () Source #
Set the value of the “buffer” property.
When overloading is enabled, this is equivalent to
settext [ #buffer:=value ]
color
The color used to render the text.
Since: 1.0
constructTextColor :: (IsText o, MonadIO m) => Color -> m (GValueConstruct o) Source #
Construct a GValueConstruct with valid value for the “color” property. This is rarely needed directly, but it is used by new.
getTextColor :: (MonadIO m, IsText o) => o -> m (Maybe Color) Source #
Get the value of the “color” property.
When overloading is enabled, this is equivalent to
get text #color
setTextColor :: (MonadIO m, IsText o) => o -> Color -> m () Source #
Set the value of the “color” property.
When overloading is enabled, this is equivalent to
settext [ #color:=value ]
cursorColor
The color of the cursor.
Since: 1.0
clearTextCursorColor :: (MonadIO m, IsText o) => o -> m () Source #
Set the value of the “cursor-color” property to Nothing.
When overloading is enabled, this is equivalent to
clear #cursorColor
constructTextCursorColor :: (IsText o, MonadIO m) => Color -> m (GValueConstruct o) Source #
Construct a GValueConstruct with valid value for the “cursor-color” property. This is rarely needed directly, but it is used by new.
getTextCursorColor :: (MonadIO m, IsText o) => o -> m (Maybe Color) Source #
Get the value of the “cursor-color” property.
When overloading is enabled, this is equivalent to
get text #cursorColor
setTextCursorColor :: (MonadIO m, IsText o) => o -> Color -> m () Source #
Set the value of the “cursor-color” property.
When overloading is enabled, this is equivalent to
settext [ #cursorColor:=value ]
cursorColorSet
Will be set to True if Text:cursorColor has been set.
Since: 1.0
getTextCursorColorSet :: (MonadIO m, IsText o) => o -> m Bool Source #
Get the value of the “cursor-color-set” property.
When overloading is enabled, this is equivalent to
get text #cursorColorSet
cursorPosition
The current input cursor position. -1 is taken to be the end of the text
Since: 1.12
constructTextCursorPosition :: (IsText o, MonadIO m) => Int32 -> m (GValueConstruct o) Source #
Construct a GValueConstruct with valid value for the “cursor-position” property. This is rarely needed directly, but it is used by new.
getTextCursorPosition :: (MonadIO m, IsText o) => o -> m Int32 Source #
Get the value of the “cursor-position” property.
When overloading is enabled, this is equivalent to
get text #cursorPosition
setTextCursorPosition :: (MonadIO m, IsText o) => o -> Int32 -> m () Source #
Set the value of the “cursor-position” property.
When overloading is enabled, this is equivalent to
settext [ #cursorPosition:=value ]
cursorSize
The size of the cursor, in pixels. If set to -1 the size used will be the default cursor size of 2 pixels.
Since: 1.0
constructTextCursorSize :: (IsText o, MonadIO m) => Int32 -> m (GValueConstruct o) Source #
Construct a GValueConstruct with valid value for the “cursor-size” property. This is rarely needed directly, but it is used by new.
getTextCursorSize :: (MonadIO m, IsText o) => o -> m Int32 Source #
Get the value of the “cursor-size” property.
When overloading is enabled, this is equivalent to
get text #cursorSize
setTextCursorSize :: (MonadIO m, IsText o) => o -> Int32 -> m () Source #
Set the value of the “cursor-size” property.
When overloading is enabled, this is equivalent to
settext [ #cursorSize:=value ]
cursorVisible
Whether the input cursor is visible or not.
The cursor will only be visible if this property and either
the Text:editable or the Text:selectable properties
are set to True.
Since: 1.0
constructTextCursorVisible :: (IsText o, MonadIO m) => Bool -> m (GValueConstruct o) Source #
Construct a GValueConstruct with valid value for the “cursor-visible” property. This is rarely needed directly, but it is used by new.
getTextCursorVisible :: (MonadIO m, IsText o) => o -> m Bool Source #
Get the value of the “cursor-visible” property.
When overloading is enabled, this is equivalent to
get text #cursorVisible
setTextCursorVisible :: (MonadIO m, IsText o) => o -> Bool -> m () Source #
Set the value of the “cursor-visible” property.
When overloading is enabled, this is equivalent to
settext [ #cursorVisible:=value ]
editable
Whether key events delivered to the actor causes editing.
Since: 1.0
constructTextEditable :: (IsText o, MonadIO m) => Bool -> m (GValueConstruct o) Source #
Construct a GValueConstruct with valid value for the “editable” property. This is rarely needed directly, but it is used by new.
getTextEditable :: (MonadIO m, IsText o) => o -> m Bool Source #
Get the value of the “editable” property.
When overloading is enabled, this is equivalent to
get text #editable
setTextEditable :: (MonadIO m, IsText o) => o -> Bool -> m () Source #
Set the value of the “editable” property.
When overloading is enabled, this is equivalent to
settext [ #editable:=value ]
ellipsize
The preferred place to ellipsize the contents of the Text actor
Since: 1.0
constructTextEllipsize :: (IsText o, MonadIO m) => EllipsizeMode -> m (GValueConstruct o) Source #
Construct a GValueConstruct with valid value for the “ellipsize” property. This is rarely needed directly, but it is used by new.
getTextEllipsize :: (MonadIO m, IsText o) => o -> m EllipsizeMode Source #
Get the value of the “ellipsize” property.
When overloading is enabled, this is equivalent to
get text #ellipsize
setTextEllipsize :: (MonadIO m, IsText o) => o -> EllipsizeMode -> m () Source #
Set the value of the “ellipsize” property.
When overloading is enabled, this is equivalent to
settext [ #ellipsize:=value ]
fontDescription
The FontDescription that should be used by the Text
If you have a string describing the font then you should look at Text:fontName instead
Since: 1.2
constructTextFontDescription :: (IsText o, MonadIO m) => FontDescription -> m (GValueConstruct o) Source #
Construct a GValueConstruct with valid value for the “font-description” property. This is rarely needed directly, but it is used by new.
getTextFontDescription :: (MonadIO m, IsText o) => o -> m (Maybe FontDescription) Source #
Get the value of the “font-description” property.
When overloading is enabled, this is equivalent to
get text #fontDescription
setTextFontDescription :: (MonadIO m, IsText o) => o -> FontDescription -> m () Source #
Set the value of the “font-description” property.
When overloading is enabled, this is equivalent to
settext [ #fontDescription:=value ]
fontName
The font to be used by the Text, as a string
that can be parsed by fontDescriptionFromString.
If set to Nothing, the default system font will be used instead.
Since: 1.0
clearTextFontName :: (MonadIO m, IsText o) => o -> m () Source #
Set the value of the “font-name” property to Nothing.
When overloading is enabled, this is equivalent to
clear #fontName
constructTextFontName :: (IsText o, MonadIO m) => Text -> m (GValueConstruct o) Source #
Construct a GValueConstruct with valid value for the “font-name” property. This is rarely needed directly, but it is used by new.
getTextFontName :: (MonadIO m, IsText o) => o -> m Text Source #
Get the value of the “font-name” property.
When overloading is enabled, this is equivalent to
get text #fontName
setTextFontName :: (MonadIO m, IsText o) => o -> Text -> m () Source #
Set the value of the “font-name” property.
When overloading is enabled, this is equivalent to
settext [ #fontName:=value ]
justify
Whether the contents of the Text should be justified
on both margins.
Since: 1.0
constructTextJustify :: (IsText o, MonadIO m) => Bool -> m (GValueConstruct o) Source #
Construct a GValueConstruct with valid value for the “justify” property. This is rarely needed directly, but it is used by new.
getTextJustify :: (MonadIO m, IsText o) => o -> m Bool Source #
Get the value of the “justify” property.
When overloading is enabled, this is equivalent to
get text #justify
setTextJustify :: (MonadIO m, IsText o) => o -> Bool -> m () Source #
Set the value of the “justify” property.
When overloading is enabled, this is equivalent to
settext [ #justify:=value ]
lineAlignment
The preferred alignment for the text. This property controls the alignment of multi-line paragraphs.
Since: 1.0
constructTextLineAlignment :: (IsText o, MonadIO m) => Alignment -> m (GValueConstruct o) Source #
Construct a GValueConstruct with valid value for the “line-alignment” property. This is rarely needed directly, but it is used by new.
getTextLineAlignment :: (MonadIO m, IsText o) => o -> m Alignment Source #
Get the value of the “line-alignment” property.
When overloading is enabled, this is equivalent to
get text #lineAlignment
setTextLineAlignment :: (MonadIO m, IsText o) => o -> Alignment -> m () Source #
Set the value of the “line-alignment” property.
When overloading is enabled, this is equivalent to
settext [ #lineAlignment:=value ]
lineWrap
Whether to wrap the lines of Text:text if the contents exceed the available allocation. The wrapping strategy is controlled by the Text:lineWrapMode property.
Since: 1.0
constructTextLineWrap :: (IsText o, MonadIO m) => Bool -> m (GValueConstruct o) Source #
Construct a GValueConstruct with valid value for the “line-wrap” property. This is rarely needed directly, but it is used by new.
getTextLineWrap :: (MonadIO m, IsText o) => o -> m Bool Source #
Get the value of the “line-wrap” property.
When overloading is enabled, this is equivalent to
get text #lineWrap
setTextLineWrap :: (MonadIO m, IsText o) => o -> Bool -> m () Source #
Set the value of the “line-wrap” property.
When overloading is enabled, this is equivalent to
settext [ #lineWrap:=value ]
lineWrapMode
If Text:lineWrap is set to True, this property will
control how the text is wrapped.
Since: 1.0
constructTextLineWrapMode :: (IsText o, MonadIO m) => WrapMode -> m (GValueConstruct o) Source #
Construct a GValueConstruct with valid value for the “line-wrap-mode” property. This is rarely needed directly, but it is used by new.
getTextLineWrapMode :: (MonadIO m, IsText o) => o -> m WrapMode Source #
Get the value of the “line-wrap-mode” property.
When overloading is enabled, this is equivalent to
get text #lineWrapMode
setTextLineWrapMode :: (MonadIO m, IsText o) => o -> WrapMode -> m () Source #
Set the value of the “line-wrap-mode” property.
When overloading is enabled, this is equivalent to
settext [ #lineWrapMode:=value ]
maxLength
The maximum length of the contents of the Text actor.
Since: 1.0
constructTextMaxLength :: (IsText o, MonadIO m) => Int32 -> m (GValueConstruct o) Source #
Construct a GValueConstruct with valid value for the “max-length” property. This is rarely needed directly, but it is used by new.
getTextMaxLength :: (MonadIO m, IsText o) => o -> m Int32 Source #
Get the value of the “max-length” property.
When overloading is enabled, this is equivalent to
get text #maxLength
setTextMaxLength :: (MonadIO m, IsText o) => o -> Int32 -> m () Source #
Set the value of the “max-length” property.
When overloading is enabled, this is equivalent to
settext [ #maxLength:=value ]
passwordChar
If non-zero, the character that should be used in place of the actual text in a password text actor.
Since: 1.0
constructTextPasswordChar :: (IsText o, MonadIO m) => Word32 -> m (GValueConstruct o) Source #
Construct a GValueConstruct with valid value for the “password-char” property. This is rarely needed directly, but it is used by new.
getTextPasswordChar :: (MonadIO m, IsText o) => o -> m Word32 Source #
Get the value of the “password-char” property.
When overloading is enabled, this is equivalent to
get text #passwordChar
setTextPasswordChar :: (MonadIO m, IsText o) => o -> Word32 -> m () Source #
Set the value of the “password-char” property.
When overloading is enabled, this is equivalent to
settext [ #passwordChar:=value ]
position
The current input cursor position. -1 is taken to be the end of the text
Since: 1.0
constructTextPosition :: (IsText o, MonadIO m) => Int32 -> m (GValueConstruct o) Source #
Construct a GValueConstruct with valid value for the “position” property. This is rarely needed directly, but it is used by new.
getTextPosition :: (MonadIO m, IsText o) => o -> m Int32 Source #
Get the value of the “position” property.
When overloading is enabled, this is equivalent to
get text #position
setTextPosition :: (MonadIO m, IsText o) => o -> Int32 -> m () Source #
Set the value of the “position” property.
When overloading is enabled, this is equivalent to
settext [ #position:=value ]
selectable
Whether it is possible to select text, either using the pointer or the keyboard.
This property depends on the Actor:reactive property being
set to True.
Since: 1.0
constructTextSelectable :: (IsText o, MonadIO m) => Bool -> m (GValueConstruct o) Source #
Construct a GValueConstruct with valid value for the “selectable” property. This is rarely needed directly, but it is used by new.
getTextSelectable :: (MonadIO m, IsText o) => o -> m Bool Source #
Get the value of the “selectable” property.
When overloading is enabled, this is equivalent to
get text #selectable
setTextSelectable :: (MonadIO m, IsText o) => o -> Bool -> m () Source #
Set the value of the “selectable” property.
When overloading is enabled, this is equivalent to
settext [ #selectable:=value ]
selectedTextColor
The color of selected text.
Since: 1.8
clearTextSelectedTextColor :: (MonadIO m, IsText o) => o -> m () Source #
Set the value of the “selected-text-color” property to Nothing.
When overloading is enabled, this is equivalent to
clear #selectedTextColor
constructTextSelectedTextColor :: (IsText o, MonadIO m) => Color -> m (GValueConstruct o) Source #
Construct a GValueConstruct with valid value for the “selected-text-color” property. This is rarely needed directly, but it is used by new.
getTextSelectedTextColor :: (MonadIO m, IsText o) => o -> m (Maybe Color) Source #
Get the value of the “selected-text-color” property.
When overloading is enabled, this is equivalent to
get text #selectedTextColor
setTextSelectedTextColor :: (MonadIO m, IsText o) => o -> Color -> m () Source #
Set the value of the “selected-text-color” property.
When overloading is enabled, this is equivalent to
settext [ #selectedTextColor:=value ]
selectedTextColorSet
Will be set to True if Text:selectedTextColor has been set.
Since: 1.8
getTextSelectedTextColorSet :: (MonadIO m, IsText o) => o -> m Bool Source #
Get the value of the “selected-text-color-set” property.
When overloading is enabled, this is equivalent to
get text #selectedTextColorSet
selectionBound
The current input cursor position. -1 is taken to be the end of the text
Since: 1.0
constructTextSelectionBound :: (IsText o, MonadIO m) => Int32 -> m (GValueConstruct o) Source #
Construct a GValueConstruct with valid value for the “selection-bound” property. This is rarely needed directly, but it is used by new.
getTextSelectionBound :: (MonadIO m, IsText o) => o -> m Int32 Source #
Get the value of the “selection-bound” property.
When overloading is enabled, this is equivalent to
get text #selectionBound
setTextSelectionBound :: (MonadIO m, IsText o) => o -> Int32 -> m () Source #
Set the value of the “selection-bound” property.
When overloading is enabled, this is equivalent to
settext [ #selectionBound:=value ]
selectionColor
The color of the selection.
Since: 1.0
clearTextSelectionColor :: (MonadIO m, IsText o) => o -> m () Source #
Set the value of the “selection-color” property to Nothing.
When overloading is enabled, this is equivalent to
clear #selectionColor
constructTextSelectionColor :: (IsText o, MonadIO m) => Color -> m (GValueConstruct o) Source #
Construct a GValueConstruct with valid value for the “selection-color” property. This is rarely needed directly, but it is used by new.
getTextSelectionColor :: (MonadIO m, IsText o) => o -> m (Maybe Color) Source #
Get the value of the “selection-color” property.
When overloading is enabled, this is equivalent to
get text #selectionColor
setTextSelectionColor :: (MonadIO m, IsText o) => o -> Color -> m () Source #
Set the value of the “selection-color” property.
When overloading is enabled, this is equivalent to
settext [ #selectionColor:=value ]
selectionColorSet
Will be set to True if Text:selectionColor has been set.
Since: 1.0
getTextSelectionColorSet :: (MonadIO m, IsText o) => o -> m Bool Source #
Get the value of the “selection-color-set” property.
When overloading is enabled, this is equivalent to
get text #selectionColorSet
singleLineMode
Whether the Text actor should be in single line mode
or not. A single line Text actor will only contain a
single line of text, scrolling it in case its length is bigger
than the allocated size.
Setting this property will also set the Text:activatable property as a side-effect.
The Text:singleLineMode property is used only if the
Text:editable property is set to True.
Since: 1.0
constructTextSingleLineMode :: (IsText o, MonadIO m) => Bool -> m (GValueConstruct o) Source #
Construct a GValueConstruct with valid value for the “single-line-mode” property. This is rarely needed directly, but it is used by new.
getTextSingleLineMode :: (MonadIO m, IsText o) => o -> m Bool Source #
Get the value of the “single-line-mode” property.
When overloading is enabled, this is equivalent to
get text #singleLineMode
setTextSingleLineMode :: (MonadIO m, IsText o) => o -> Bool -> m () Source #
Set the value of the “single-line-mode” property.
When overloading is enabled, this is equivalent to
settext [ #singleLineMode:=value ]
text
The text to render inside the actor.
Since: 1.0
clearTextText :: (MonadIO m, IsText o) => o -> m () Source #
Set the value of the “text” property to Nothing.
When overloading is enabled, this is equivalent to
clear #text
constructTextText :: (IsText o, MonadIO m) => Text -> m (GValueConstruct o) Source #
Construct a GValueConstruct with valid value for the “text” property. This is rarely needed directly, but it is used by new.
getTextText :: (MonadIO m, IsText o) => o -> m Text Source #
Get the value of the “text” property.
When overloading is enabled, this is equivalent to
get text #text
setTextText :: (MonadIO m, IsText o) => o -> Text -> m () Source #
Set the value of the “text” property.
When overloading is enabled, this is equivalent to
settext [ #text:=value ]
useMarkup
Whether the text includes Pango markup.
For more informations about the Pango markup format, see
layoutSetMarkup in the Pango documentation.
It is not possible to round-trip this property between
True and False. Once a string with markup has been set on
a Text actor with :use-markup set to True, the markup
is stripped from the string.
Since: 1.0
constructTextUseMarkup :: (IsText o, MonadIO m) => Bool -> m (GValueConstruct o) Source #
Construct a GValueConstruct with valid value for the “use-markup” property. This is rarely needed directly, but it is used by new.
getTextUseMarkup :: (MonadIO m, IsText o) => o -> m Bool Source #
Get the value of the “use-markup” property.
When overloading is enabled, this is equivalent to
get text #useMarkup
setTextUseMarkup :: (MonadIO m, IsText o) => o -> Bool -> m () Source #
Set the value of the “use-markup” property.
When overloading is enabled, this is equivalent to
settext [ #useMarkup:=value ]
Signals
activate
type TextActivateCallback = IO () Source #
The activate signal is emitted each time the actor is 'activated'
by the user, normally by pressing the 'Enter' key. The signal is
emitted only if Text:activatable is set to True.
Since: 1.0
afterTextActivate :: (IsText a, MonadIO m) => a -> ((?self :: a) => TextActivateCallback) -> m SignalHandlerId Source #
Connect a signal handler for the activate signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after text #activate callback
By default the object invoking the signal is not passed to the callback.
If you need to access it, you can use the implit ?self parameter.
Note that this requires activating the ImplicitParams GHC extension.
onTextActivate :: (IsText a, MonadIO m) => a -> ((?self :: a) => TextActivateCallback) -> m SignalHandlerId Source #
Connect a signal handler for the activate signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on text #activate callback
cursorChanged
type TextCursorChangedCallback = IO () Source #
The cursorChanged signal is emitted whenever the cursor position or size changes.
Since: 1.16
afterTextCursorChanged :: (IsText a, MonadIO m) => a -> ((?self :: a) => TextCursorChangedCallback) -> m SignalHandlerId Source #
Connect a signal handler for the cursorChanged signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after text #cursorChanged callback
By default the object invoking the signal is not passed to the callback.
If you need to access it, you can use the implit ?self parameter.
Note that this requires activating the ImplicitParams GHC extension.
onTextCursorChanged :: (IsText a, MonadIO m) => a -> ((?self :: a) => TextCursorChangedCallback) -> m SignalHandlerId Source #
Connect a signal handler for the cursorChanged signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on text #cursorChanged callback
cursorEvent
type TextCursorEventCallback Source #
Deprecated: (Since version 1.16)Use the Text::cursorChanged signal instead
The cursorEvent signal is emitted whenever the cursor position
changes inside a Text actor. Inside geometry it is stored
the current position and size of the cursor, relative to the actor
itself.
Since: 1.0
afterTextCursorEvent :: (IsText a, MonadIO m) => a -> ((?self :: a) => TextCursorEventCallback) -> m SignalHandlerId Source #
Connect a signal handler for the cursorEvent signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after text #cursorEvent callback
By default the object invoking the signal is not passed to the callback.
If you need to access it, you can use the implit ?self parameter.
Note that this requires activating the ImplicitParams GHC extension.
onTextCursorEvent :: (IsText a, MonadIO m) => a -> ((?self :: a) => TextCursorEventCallback) -> m SignalHandlerId Source #
Connect a signal handler for the cursorEvent signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on text #cursorEvent callback
deleteText
type TextDeleteTextCallback Source #
This signal is emitted when text is deleted from the actor by
the user. It is emitted before self text changes.
Since: 1.2
afterTextDeleteText :: (IsText a, MonadIO m) => a -> ((?self :: a) => TextDeleteTextCallback) -> m SignalHandlerId Source #
Connect a signal handler for the deleteText signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after text #deleteText callback
By default the object invoking the signal is not passed to the callback.
If you need to access it, you can use the implit ?self parameter.
Note that this requires activating the ImplicitParams GHC extension.
onTextDeleteText :: (IsText a, MonadIO m) => a -> ((?self :: a) => TextDeleteTextCallback) -> m SignalHandlerId Source #
Connect a signal handler for the deleteText signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on text #deleteText callback
insertText
type TextInsertTextCallback Source #
Arguments
| = Text |
|
| -> Int32 |
|
| -> Ptr () |
|
| -> IO () |
This signal is emitted when text is inserted into the actor by
the user. It is emitted before self text changes.
Since: 1.2
afterTextInsertText :: (IsText a, MonadIO m) => a -> ((?self :: a) => TextInsertTextCallback) -> m SignalHandlerId Source #
Connect a signal handler for the insertText signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after text #insertText callback
By default the object invoking the signal is not passed to the callback.
If you need to access it, you can use the implit ?self parameter.
Note that this requires activating the ImplicitParams GHC extension.
onTextInsertText :: (IsText a, MonadIO m) => a -> ((?self :: a) => TextInsertTextCallback) -> m SignalHandlerId Source #
Connect a signal handler for the insertText signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on text #insertText callback
textChanged
type TextTextChangedCallback = IO () Source #
The textChanged signal is emitted after actor's text changes
Since: 1.0
afterTextTextChanged :: (IsText a, MonadIO m) => a -> ((?self :: a) => TextTextChangedCallback) -> m SignalHandlerId Source #
Connect a signal handler for the textChanged signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after text #textChanged callback
By default the object invoking the signal is not passed to the callback.
If you need to access it, you can use the implit ?self parameter.
Note that this requires activating the ImplicitParams GHC extension.
onTextTextChanged :: (IsText a, MonadIO m) => a -> ((?self :: a) => TextTextChangedCallback) -> m SignalHandlerId Source #
Connect a signal handler for the textChanged signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on text #textChanged callback