gi-girepository-0.1.46.15: GIRepository bindings

CopyrightWill Thompson, Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (garetxe@gmail.com)
Safe HaskellNone
LanguageHaskell2010

GI.GIRepository.Structs.BaseInfo

Contents

Description

GIBaseInfo is the common base struct of all other *Info structs accessible through the #GIRepository API. All other structs can be casted to a #GIBaseInfo, for instance: example titleCasting a GIBaseInfo/title programlisting GIFunctionInfo *function_info = ...; GIBaseInfo *info = (GIBaseInfo*)function_info; /programlisting /example Most GIBaseInfo is actually creating a new struct, in other words, g_base_info_unref() has to be called when done accessing the data. GIBaseInfos are normally accessed by calling either g_irepository_find_by_name(), g_irepository_find_by_gtype() or g_irepository_get_info().

example titleGetting the Button of the Gtk typelib/title programlisting GIBaseInfo *button_info = g_irepository_find_by_name(NULL, Gtk, Button); ... use button_info ... g_base_info_unref(button_info); /programlisting /example

id="gi-gibaseinfo.struct-hierarchy" role="struct_hierarchy" role="struct_hierarchy.title"Struct hierarchy/title synopsis GIBaseInfo +----linkend="gi-GIArgInfo"GIArgInfo/link +----linkend="gi-GICallableInfo"GICallableInfo/link +----linkend="gi-GIConstantInfo"GIConstantInfo/link +----linkend="gi-GIFieldInfo"GIFieldInfo/link +----linkend="gi-GIPropertyInfo"GIPropertyInfo/link +----linkend="gi-GIRegisteredTypeInfo"GIRegisteredTypeInfo/link +----linkend="gi-GITypeInfo"GITypeInfo/link /synopsis /refsect1

Synopsis

Exported types

newtype BaseInfo Source

Constructors

BaseInfo (ForeignPtr BaseInfo) 

Instances

BoxedObject BaseInfo 
(~) AttrOpTag tag AttrSet => Constructible BaseInfo tag 
((~) * signature (AttributeIter -> m (Bool, Text, Text)), MonadIO m) => MethodInfo * BaseInfoIterateAttributesMethodInfo BaseInfo signature 
((~) * signature (m Bool), MonadIO m) => MethodInfo * BaseInfoIsDeprecatedMethodInfo BaseInfo signature 
((~) * signature (m Typelib), MonadIO m) => MethodInfo * BaseInfoGetTypelibMethodInfo BaseInfo signature 
((~) * signature (m InfoType), MonadIO m) => MethodInfo * BaseInfoGetTypeMethodInfo BaseInfo signature 
((~) * signature (m Text), MonadIO m) => MethodInfo * BaseInfoGetNamespaceMethodInfo BaseInfo signature 
((~) * signature (m Text), MonadIO m) => MethodInfo * BaseInfoGetNameMethodInfo BaseInfo signature 
((~) * signature (m BaseInfo), MonadIO m) => MethodInfo * BaseInfoGetContainerMethodInfo BaseInfo signature 
((~) * signature (Text -> m Text), MonadIO m) => MethodInfo * BaseInfoGetAttributeMethodInfo BaseInfo signature 
((~) * signature (BaseInfo -> m Bool), MonadIO m) => MethodInfo * BaseInfoEqualMethodInfo BaseInfo signature 
((~) * info (ResolveBaseInfoMethod t BaseInfo), MethodInfo * info BaseInfo p) => IsLabelProxy t (BaseInfo -> p) 
type AttributeList BaseInfo 

newZeroBaseInfo :: MonadIO m => m BaseInfo Source

Construct a BaseInfo struct initialized to zero.

Methods

baseInfoEqual

data BaseInfoEqualMethodInfo Source

Instances

((~) * signature (BaseInfo -> m Bool), MonadIO m) => MethodInfo * BaseInfoEqualMethodInfo BaseInfo signature 

baseInfoGetAttribute

baseInfoGetContainer

baseInfoGetName

data BaseInfoGetNameMethodInfo Source

Instances

((~) * signature (m Text), MonadIO m) => MethodInfo * BaseInfoGetNameMethodInfo BaseInfo signature 

baseInfoGetNamespace

baseInfoGetType

data BaseInfoGetTypeMethodInfo Source

Instances

((~) * signature (m InfoType), MonadIO m) => MethodInfo * BaseInfoGetTypeMethodInfo BaseInfo signature 

baseInfoGetTypelib

baseInfoIsDeprecated

baseInfoIterateAttributes