Copyright | Will Thompson, Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (garetxe@gmail.com) |
Safe Haskell | None |
Language | Haskell2010 |
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.
- newtype Arrow = Arrow (ManagedPtr Arrow)
- class GObject o => IsArrow o
- toArrow :: IsArrow o => o -> IO Arrow
- noArrow :: Maybe Arrow
- arrowNew :: (HasCallStack, MonadIO m) => ArrowType -> ShadowType -> m Arrow
- data ArrowSetMethodInfo
- arrowSet :: (HasCallStack, MonadIO m, IsArrow a) => a -> ArrowType -> ShadowType -> m ()
- data ArrowArrowTypePropertyInfo
- arrowArrowType :: AttrLabelProxy "arrowType"
- constructArrowArrowType :: IsArrow o => ArrowType -> IO (GValueConstruct o)
- getArrowArrowType :: (MonadIO m, IsArrow o) => o -> m ArrowType
- setArrowArrowType :: (MonadIO m, IsArrow o) => o -> ArrowType -> m ()
- data ArrowShadowTypePropertyInfo
- arrowShadowType :: AttrLabelProxy "shadowType"
- constructArrowShadowType :: IsArrow o => ShadowType -> IO (GValueConstruct o)
- getArrowShadowType :: (MonadIO m, IsArrow o) => o -> m ShadowType
- setArrowShadowType :: (MonadIO m, IsArrow o) => o -> ShadowType -> m ()
Exported types
GObject Arrow Source # | |
IsImplementorIface Arrow Source # | |
IsObject Arrow Source # | |
IsWidget Arrow Source # | |
IsMisc Arrow Source # | |
IsBuildable Arrow Source # | |
IsArrow Arrow Source # | |
((~) * info (ResolveArrowMethod t Arrow), MethodInfo * info Arrow p) => IsLabel t (Arrow -> p) Source # | |
((~) * info (ResolveArrowMethod t Arrow), MethodInfo * info Arrow p) => IsLabelProxy t (Arrow -> p) Source # | |
HasAttributeList * Arrow Source # | |
type AttributeList Arrow Source # | |
type SignalList Arrow Source # | |
Methods
new
:: (HasCallStack, MonadIO m) | |
=> ArrowType |
|
-> ShadowType |
|
-> m Arrow | Returns: the new |
set
data ArrowSetMethodInfo Source #
((~) * signature (ArrowType -> ShadowType -> m ()), MonadIO m, IsArrow a) => MethodInfo * ArrowSetMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsArrow a) | |
=> a |
|
-> ArrowType |
|
-> ShadowType |
|
-> m () |
Properties
arrowType
data ArrowArrowTypePropertyInfo Source #
arrowArrowType :: AttrLabelProxy "arrowType" Source #
constructArrowArrowType :: IsArrow o => ArrowType -> IO (GValueConstruct o) Source #
shadowType
data ArrowShadowTypePropertyInfo Source #
arrowShadowType :: AttrLabelProxy "shadowType" Source #
constructArrowShadowType :: IsArrow o => ShadowType -> IO (GValueConstruct o) Source #
getArrowShadowType :: (MonadIO m, IsArrow o) => o -> m ShadowType Source #
setArrowShadowType :: (MonadIO m, IsArrow o) => o -> ShadowType -> m () Source #