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 |
GtkStringObject
is the type of items in a GtkStringList
.
A GtkStringObject
is a wrapper around a const char*
; it has
a StringObject:string property.
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 type ParentTypes StringObject = '[Object] |
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 GtkStringObject
.
new
:: (HasCallStack, MonadIO m) | |
=> Text |
|
-> m StringObject | Returns: a new |
Wraps a string in an object for use with GListModel
.
Properties
string
The string.
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