gi-gtk-3.0.2: Gtk 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.Gtk.Structs.WidgetPath

Contents

Description

GtkWidgetPath is a boxed type that represents a widget hierarchy from the topmost widget, typically a toplevel, to any child. This widget path abstraction is used in #GtkStyleContext on behalf of the real widget in order to query style information.

If you are using GTK+ widgets, you probably will not need to use this API directly, as there is gtk_widget_get_path(), and the style context returned by gtk_widget_get_style_context() will be automatically updated on widget hierarchy changes.

The widget path generation is generally simple:

## Defining a button within a window

|[language="C" -- { GtkWidgetPath *path;

path = gtk_widget_path_new (); gtk_widget_path_append_type (path, GTK_TYPE_WINDOW); gtk_widget_path_append_type (path, GTK_TYPE_BUTTON); } ]|

Although more complex information, such as widget names, or different classes (property that may be used by other widget types) and intermediate regions may be included:

## Defining the first tab widget in a notebook

|[language="C" -- { GtkWidgetPath *path; guint pos;

path = gtk_widget_path_new ();

pos = gtk_widget_path_append_type (path, GTK_TYPE_NOTEBOOK); gtk_widget_path_iter_add_region (path, pos, "tab", GTK_REGION_EVEN | GTK_REGION_FIRST);

pos = gtk_widget_path_append_type (path, GTK_TYPE_LABEL); gtk_widget_path_iter_set_name (path, pos, "first tab label"); } ]|

All this information will be used to match the style information that applies to the described widget.

Synopsis

Exported types

newtype WidgetPath Source

Instances

BoxedObject WidgetPath Source 
((~) * signature (m ()), MonadIO m) => MethodInfo * WidgetPathUnrefMethodInfo WidgetPath signature Source 
((~) * signature (m Text), MonadIO m) => MethodInfo * WidgetPathToStringMethodInfo WidgetPath signature Source 
((~) * signature (m WidgetPath), MonadIO m) => MethodInfo * WidgetPathRefMethodInfo WidgetPath signature Source 
((~) * signature (GType -> m ()), MonadIO m) => MethodInfo * WidgetPathPrependTypeMethodInfo WidgetPath signature Source 
((~) * signature (m Int32), MonadIO m) => MethodInfo * WidgetPathLengthMethodInfo WidgetPath signature Source 
((~) * signature (Int32 -> [StateFlags] -> m ()), MonadIO m) => MethodInfo * WidgetPathIterSetStateMethodInfo WidgetPath signature Source 
((~) * signature (Int32 -> GType -> m ()), MonadIO m) => MethodInfo * WidgetPathIterSetObjectTypeMethodInfo WidgetPath signature Source 
((~) * signature (Int32 -> Text -> m ()), MonadIO m) => MethodInfo * WidgetPathIterSetNameMethodInfo WidgetPath signature Source 
((~) * signature (Int32 -> Text -> m ()), MonadIO m) => MethodInfo * WidgetPathIterRemoveRegionMethodInfo WidgetPath signature Source 
((~) * signature (Int32 -> Text -> m ()), MonadIO m) => MethodInfo * WidgetPathIterRemoveClassMethodInfo WidgetPath signature Source 
((~) * signature (Int32 -> m [Text]), MonadIO m) => MethodInfo * WidgetPathIterListRegionsMethodInfo WidgetPath signature Source 
((~) * signature (Int32 -> m [Text]), MonadIO m) => MethodInfo * WidgetPathIterListClassesMethodInfo WidgetPath signature Source 
((~) * signature (Int32 -> Text -> m (Bool, [RegionFlags])), MonadIO m) => MethodInfo * WidgetPathIterHasRegionMethodInfo WidgetPath signature Source 
((~) * signature (Int32 -> Word32 -> m (Bool, [RegionFlags])), MonadIO m) => MethodInfo * WidgetPathIterHasQregionMethodInfo WidgetPath signature Source 
((~) * signature (Int32 -> Word32 -> m Bool), MonadIO m) => MethodInfo * WidgetPathIterHasQnameMethodInfo WidgetPath signature Source 
((~) * signature (Int32 -> Word32 -> m Bool), MonadIO m) => MethodInfo * WidgetPathIterHasQclassMethodInfo WidgetPath signature Source 
((~) * signature (Int32 -> Text -> m Bool), MonadIO m) => MethodInfo * WidgetPathIterHasNameMethodInfo WidgetPath signature Source 
((~) * signature (Int32 -> Text -> m Bool), MonadIO m) => MethodInfo * WidgetPathIterHasClassMethodInfo WidgetPath signature Source 
((~) * signature (Int32 -> m [StateFlags]), MonadIO m) => MethodInfo * WidgetPathIterGetStateMethodInfo WidgetPath signature Source 
((~) * signature (Int32 -> m WidgetPath), MonadIO m) => MethodInfo * WidgetPathIterGetSiblingsMethodInfo WidgetPath signature Source 
((~) * signature (Int32 -> m Word32), MonadIO m) => MethodInfo * WidgetPathIterGetSiblingIndexMethodInfo WidgetPath signature Source 
((~) * signature (Int32 -> m GType), MonadIO m) => MethodInfo * WidgetPathIterGetObjectTypeMethodInfo WidgetPath signature Source 
((~) * signature (Int32 -> m Text), MonadIO m) => MethodInfo * WidgetPathIterGetNameMethodInfo WidgetPath signature Source 
((~) * signature (Int32 -> m ()), MonadIO m) => MethodInfo * WidgetPathIterClearRegionsMethodInfo WidgetPath signature Source 
((~) * signature (Int32 -> m ()), MonadIO m) => MethodInfo * WidgetPathIterClearClassesMethodInfo WidgetPath signature Source 
((~) * signature (Int32 -> Text -> [RegionFlags] -> m ()), MonadIO m) => MethodInfo * WidgetPathIterAddRegionMethodInfo WidgetPath signature Source 
((~) * signature (Int32 -> Text -> m ()), MonadIO m) => MethodInfo * WidgetPathIterAddClassMethodInfo WidgetPath signature Source 
((~) * signature (GType -> m Bool), MonadIO m) => MethodInfo * WidgetPathIsTypeMethodInfo WidgetPath signature Source 
((~) * signature (GType -> m Bool), MonadIO m) => MethodInfo * WidgetPathHasParentMethodInfo WidgetPath signature Source 
((~) * signature (m GType), MonadIO m) => MethodInfo * WidgetPathGetObjectTypeMethodInfo WidgetPath signature Source 
((~) * signature (m ()), MonadIO m) => MethodInfo * WidgetPathFreeMethodInfo WidgetPath signature Source 
((~) * signature (m WidgetPath), MonadIO m) => MethodInfo * WidgetPathCopyMethodInfo WidgetPath signature Source 
((~) * signature (WidgetPath -> Word32 -> m Int32), MonadIO m) => MethodInfo * WidgetPathAppendWithSiblingsMethodInfo WidgetPath signature Source 
((~) * signature (GType -> m Int32), MonadIO m) => MethodInfo * WidgetPathAppendTypeMethodInfo WidgetPath signature Source 
((~) * signature (a -> m Int32), MonadIO m, WidgetK a) => MethodInfo * WidgetPathAppendForWidgetMethodInfo WidgetPath signature Source 
((~) * info (ResolveWidgetPathMethod t WidgetPath), MethodInfo * info WidgetPath p) => IsLabelProxy t (WidgetPath -> p) Source 
type AttributeList WidgetPath Source 

Methods

widgetPathAppendForWidget

widgetPathAppendType

widgetPathAppendWithSiblings

widgetPathCopy

widgetPathFree

data WidgetPathFreeMethodInfo Source

Instances

((~) * signature (m ()), MonadIO m) => MethodInfo * WidgetPathFreeMethodInfo WidgetPath signature Source 

widgetPathGetObjectType

widgetPathHasParent

widgetPathIsType

widgetPathIterAddClass

widgetPathIterAddRegion

widgetPathIterAddRegion :: MonadIO m => WidgetPath -> Int32 -> Text -> [RegionFlags] -> m () Source

Deprecated: (Since version 3.14)The use of regions is deprecated.

widgetPathIterClearClasses

widgetPathIterClearRegions

widgetPathIterClearRegions :: MonadIO m => WidgetPath -> Int32 -> m () Source

Deprecated: (Since version 3.14)The use of regions is deprecated.

widgetPathIterGetName

widgetPathIterGetObjectType

widgetPathIterGetSiblingIndex

widgetPathIterGetSiblings

widgetPathIterGetState

widgetPathIterHasClass

widgetPathIterHasName

widgetPathIterHasQclass

widgetPathIterHasQname

widgetPathIterHasQregion

widgetPathIterHasQregion :: MonadIO m => WidgetPath -> Int32 -> Word32 -> m (Bool, [RegionFlags]) Source

Deprecated: (Since version 3.14)The use of regions is deprecated.

widgetPathIterHasRegion

widgetPathIterHasRegion :: MonadIO m => WidgetPath -> Int32 -> Text -> m (Bool, [RegionFlags]) Source

Deprecated: (Since version 3.14)The use of regions is deprecated.

widgetPathIterListClasses

widgetPathIterListRegions

widgetPathIterListRegions :: MonadIO m => WidgetPath -> Int32 -> m [Text] Source

Deprecated: (Since version 3.14)The use of regions is deprecated.

widgetPathIterRemoveClass

widgetPathIterRemoveRegion

widgetPathIterRemoveRegion :: MonadIO m => WidgetPath -> Int32 -> Text -> m () Source

Deprecated: (Since version 3.14)The use of regions is deprecated.

widgetPathIterSetName

widgetPathIterSetObjectType

widgetPathIterSetState

widgetPathLength

widgetPathNew

widgetPathPrependType

widgetPathRef

widgetPathToString

widgetPathUnref

data WidgetPathUnrefMethodInfo Source

Instances

((~) * signature (m ()), MonadIO m) => MethodInfo * WidgetPathUnrefMethodInfo WidgetPath signature Source