Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
No description available in the introspection data.
Synopsis
- newtype StringObject = StringObject (ManagedPtr StringObject)
- class (GObject o, IsDescendantOf StringObject o) => IsStringObject o
- toStringObject :: (MonadIO m, IsStringObject o) => o -> m StringObject
- stringObjectGetString :: (HasCallStack, MonadIO m, IsStringObject a) => a -> m Text
- stringObjectNew :: (HasCallStack, MonadIO m) => Text -> m StringObject
- getStringObjectString :: (MonadIO m, IsStringObject o) => o -> m Text
Exported types
newtype StringObject Source #
Memory-managed wrapper type.
StringObject (ManagedPtr StringObject) |
Instances
Eq StringObject Source # | |
Defined in GI.Gtk.Objects.StringObject (==) :: StringObject -> StringObject -> Bool # (/=) :: StringObject -> StringObject -> Bool # | |
GObject StringObject Source # | |
Defined in GI.Gtk.Objects.StringObject | |
ManagedPtrNewtype StringObject Source # | |
Defined in GI.Gtk.Objects.StringObject toManagedPtr :: StringObject -> ManagedPtr StringObject | |
TypedObject StringObject Source # | |
Defined in GI.Gtk.Objects.StringObject | |
HasParentTypes StringObject Source # | |
Defined in GI.Gtk.Objects.StringObject | |
IsGValue (Maybe StringObject) Source # | Convert |
Defined in GI.Gtk.Objects.StringObject gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe StringObject -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe StringObject) | |
type ParentTypes StringObject Source # | |
Defined in GI.Gtk.Objects.StringObject |
class (GObject o, IsDescendantOf StringObject o) => IsStringObject o Source #
Type class for types which can be safely cast to StringObject
, for instance with toStringObject
.
Instances
(GObject o, IsDescendantOf StringObject o) => IsStringObject o Source # | |
Defined in GI.Gtk.Objects.StringObject |
toStringObject :: (MonadIO m, IsStringObject o) => o -> m StringObject Source #
Cast to StringObject
, for types for which this is known to be safe. For general casts, use castTo
.
Methods
Click to display all available methods, including inherited ones
Methods
bindProperty, bindPropertyFull, forceFloating, freezeNotify, getv, isFloating, notify, notifyByPspec, ref, refSink, runDispose, stealData, stealQdata, thawNotify, unref, watchClosure.
Getters
getData, getProperty, getQdata, getString.
Setters
getString
stringObjectGetString Source #
:: (HasCallStack, MonadIO m, IsStringObject a) | |
=> a |
|
-> m Text | Returns: the string of |
Returns the string contained in a StringObject
.
new
:: (HasCallStack, MonadIO m) | |
=> Text |
|
-> m StringObject | Returns: a new |
Wraps a string in an object for use with ListModel
Properties
string
No description available in the introspection data.
getStringObjectString :: (MonadIO m, IsStringObject o) => o -> m Text Source #
Get the value of the “string
” property.
When overloading is enabled, this is equivalent to
get
stringObject #string