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.
Synopsis
- newtype Arrow = Arrow (ManagedPtr Arrow)
- class GObject o => IsArrow o
- toArrow :: (MonadIO m, IsArrow o) => o -> m Arrow
- noArrow :: Maybe Arrow
- arrowNew :: (HasCallStack, MonadIO m) => ArrowType -> ShadowType -> m Arrow
- arrowSet :: (HasCallStack, MonadIO m, IsArrow a) => a -> ArrowType -> ShadowType -> m ()
- constructArrowArrowType :: IsArrow o => ArrowType -> IO (GValueConstruct o)
- getArrowArrowType :: (MonadIO m, IsArrow o) => o -> m ArrowType
- setArrowArrowType :: (MonadIO m, IsArrow o) => o -> ArrowType -> m ()
- 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
Memory-managed wrapper type.
Instances
GObject Arrow Source # | |
Defined in GI.Gtk.Objects.Arrow gobjectType :: Arrow -> IO GType # | |
IsImplementorIface Arrow Source # | |
Defined in GI.Gtk.Objects.Arrow | |
IsObject Arrow Source # | |
Defined in GI.Gtk.Objects.Arrow | |
IsBuildable Arrow Source # | |
Defined in GI.Gtk.Objects.Arrow | |
IsMisc Arrow Source # | |
Defined in GI.Gtk.Objects.Arrow | |
IsWidget Arrow Source # | |
Defined in GI.Gtk.Objects.Arrow | |
IsArrow Arrow Source # | |
Defined in GI.Gtk.Objects.Arrow |
class GObject o => IsArrow o Source #
Instances
(GObject a, (UnknownAncestorError Arrow a :: Constraint)) => IsArrow a Source # | |
Defined in GI.Gtk.Objects.Arrow | |
IsArrow Arrow Source # | |
Defined in GI.Gtk.Objects.Arrow |
Methods
new
:: (HasCallStack, MonadIO m) | |
=> ArrowType |
|
-> ShadowType |
|
-> m Arrow | Returns: the new |
set
:: (HasCallStack, MonadIO m, IsArrow a) | |
=> a |
|
-> ArrowType |
|
-> ShadowType |
|
-> m () |
Properties
arrowType
No description available in the introspection data.
constructArrowArrowType :: IsArrow o => ArrowType -> IO (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “arrow-type
” property. This is rarely needed directly, but it is used by new
.
getArrowArrowType :: (MonadIO m, IsArrow o) => o -> m ArrowType Source #
Get the value of the “arrow-type
” property.
When overloading is enabled, this is equivalent to
get
arrow #arrowType
setArrowArrowType :: (MonadIO m, IsArrow o) => o -> ArrowType -> m () Source #
Set the value of the “arrow-type
” property.
When overloading is enabled, this is equivalent to
set
arrow [ #arrowType:=
value ]
shadowType
No description available in the introspection data.
constructArrowShadowType :: IsArrow o => ShadowType -> IO (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “shadow-type
” property. This is rarely needed directly, but it is used by new
.
getArrowShadowType :: (MonadIO m, IsArrow o) => o -> m ShadowType Source #
Get the value of the “shadow-type
” property.
When overloading is enabled, this is equivalent to
get
arrow #shadowType
setArrowShadowType :: (MonadIO m, IsArrow o) => o -> ShadowType -> m () Source #
Set the value of the “shadow-type
” property.
When overloading is enabled, this is equivalent to
set
arrow [ #shadowType:=
value ]