gi-gtk-4.0.8: Gtk bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

GI.Gtk.Objects.StringObject

Description

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

Exported types

newtype StringObject Source #

Memory-managed wrapper type.

Constructors

StringObject (ManagedPtr StringObject) 

Instances

Instances details
Eq StringObject Source # 
Instance details

Defined in GI.Gtk.Objects.StringObject

GObject StringObject Source # 
Instance details

Defined in GI.Gtk.Objects.StringObject

ManagedPtrNewtype StringObject Source # 
Instance details

Defined in GI.Gtk.Objects.StringObject

Methods

toManagedPtr :: StringObject -> ManagedPtr StringObject

TypedObject StringObject Source # 
Instance details

Defined in GI.Gtk.Objects.StringObject

Methods

glibType :: IO GType

HasParentTypes StringObject Source # 
Instance details

Defined in GI.Gtk.Objects.StringObject

IsGValue (Maybe StringObject) Source #

Convert StringObject to and from GValue. See toGValue and fromGValue.

Instance details

Defined in GI.Gtk.Objects.StringObject

Methods

gvalueGType_ :: IO GType

gvalueSet_ :: Ptr GValue -> Maybe StringObject -> IO ()

gvalueGet_ :: Ptr GValue -> IO (Maybe StringObject)

type ParentTypes StringObject Source # 
Instance details

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

Instances details
(GObject o, IsDescendantOf StringObject o) => IsStringObject o Source # 
Instance details

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

getString

stringObjectGetString Source #

Arguments

:: (HasCallStack, MonadIO m, IsStringObject a) 
=> a

self: a GtkStringObject

-> m Text

Returns: the string of self

Returns the string contained in a GtkStringObject.

new

stringObjectNew Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Text

string: The string to wrap

-> m StringObject

Returns: a new GtkStringObject

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