gi-gtk-3.0.11: 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.Objects.Arrow

Contents

Description

GtkArrow should be used to draw simple arrows that need to point in one of the four cardinal directions (up, down, left, or right). The style of the arrow can be one of shadow in, shadow out, etched in, or etched out. Note that these directions and style types may be amended in versions of GTK+ to come.

GtkArrow will fill any space alloted to it, but since it is inherited from Misc, it can be padded and/or aligned, to fill exactly the space the programmer desires.

Arrows are created with a call to arrowNew. The direction or style of an arrow can be changed after creation by using arrowSet.

GtkArrow has been deprecated; you can simply use a Image with a suitable icon name, such as “pan-down-symbolic“. When replacing GtkArrow by an image, pay attention to the fact that GtkArrow is doing automatic flipping between GTK_ARROW_LEFT and GTK_ARROW_RIGHT, depending on the text direction. To get the same effect with an image, use the icon names “pan-start-symbolic“ and “pan-end-symbolic“, which react to the text direction.

Synopsis

Exported types

newtype Arrow Source #

Constructors

Arrow (ManagedPtr Arrow) 

Instances

Methods

new

arrowNew Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> ArrowType

arrowType: a valid ArrowType.

-> ShadowType

shadowType: a valid ShadowType.

-> m Arrow

Returns: the new Arrow widget.

Deprecated: (Since version 3.14)Use a Image with a suitable icon.

Creates a new Arrow widget.

set

data ArrowSetMethodInfo Source #

Instances

((~) * signature (ArrowType -> ShadowType -> m ()), MonadIO m, IsArrow a) => MethodInfo * ArrowSetMethodInfo a signature Source # 

Methods

overloadedMethod :: MethodProxy ArrowSetMethodInfo a -> signature -> s #

arrowSet Source #

Arguments

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

arrow: a widget of type Arrow.

-> ArrowType

arrowType: a valid ArrowType.

-> ShadowType

shadowType: a valid ShadowType.

-> m () 

Deprecated: (Since version 3.14)Use a Image with a suitable icon.

Sets the direction and style of the Arrow, arrow.

Properties

arrowType

data ArrowArrowTypePropertyInfo Source #

Instances

AttrInfo ArrowArrowTypePropertyInfo Source # 
type AttrOrigin ArrowArrowTypePropertyInfo Source # 
type AttrLabel ArrowArrowTypePropertyInfo Source # 
type AttrGetType ArrowArrowTypePropertyInfo Source # 
type AttrBaseTypeConstraint ArrowArrowTypePropertyInfo Source # 
type AttrSetTypeConstraint ArrowArrowTypePropertyInfo Source # 
type AttrAllowedOps ArrowArrowTypePropertyInfo Source # 

shadowType

data ArrowShadowTypePropertyInfo Source #

Instances

AttrInfo ArrowShadowTypePropertyInfo Source # 
type AttrOrigin ArrowShadowTypePropertyInfo Source # 
type AttrLabel ArrowShadowTypePropertyInfo Source # 
type AttrGetType ArrowShadowTypePropertyInfo Source # 
type AttrBaseTypeConstraint ArrowShadowTypePropertyInfo Source # 
type AttrSetTypeConstraint ArrowShadowTypePropertyInfo Source # 
type AttrAllowedOps ArrowShadowTypePropertyInfo Source #