| Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
|---|---|
| License | LGPL-2.1 |
| Maintainer | Iñaki García Etxebarria |
| Safe Haskell | None |
| Language | Haskell2010 |
GI.Gtk.Objects.Invisible
Description
The Invisible widget is used internally in GTK+, and is probably not
very useful for application developers.
It is used for reliable pointer grabs and selection handling in the code for drag-and-drop.
Synopsis
- newtype Invisible = Invisible (ManagedPtr Invisible)
- class (GObject o, IsDescendantOf Invisible o) => IsInvisible o
- toInvisible :: (MonadIO m, IsInvisible o) => o -> m Invisible
- noInvisible :: Maybe Invisible
- invisibleGetScreen :: (HasCallStack, MonadIO m, IsInvisible a) => a -> m Screen
- invisibleNew :: (HasCallStack, MonadIO m) => m Invisible
- invisibleNewForScreen :: (HasCallStack, MonadIO m, IsScreen a) => a -> m Invisible
- invisibleSetScreen :: (HasCallStack, MonadIO m, IsInvisible a, IsScreen b) => a -> b -> m ()
- constructInvisibleScreen :: (IsInvisible o, IsScreen a) => a -> IO (GValueConstruct o)
- getInvisibleScreen :: (MonadIO m, IsInvisible o) => o -> m Screen
- setInvisibleScreen :: (MonadIO m, IsInvisible o, IsScreen a) => o -> a -> m ()
Exported types
Memory-managed wrapper type.
Constructors
| Invisible (ManagedPtr Invisible) |
Instances
| Eq Invisible Source # | |
| IsGValue Invisible Source # | Convert |
| GObject Invisible Source # | |
Defined in GI.Gtk.Objects.Invisible Methods gobjectType :: IO GType # | |
| HasParentTypes Invisible Source # | |
Defined in GI.Gtk.Objects.Invisible | |
| type ParentTypes Invisible Source # | |
Defined in GI.Gtk.Objects.Invisible | |
class (GObject o, IsDescendantOf Invisible o) => IsInvisible o Source #
Type class for types which can be safely cast to Invisible, for instance with toInvisible.
Instances
| (GObject o, IsDescendantOf Invisible o) => IsInvisible o Source # | |
Defined in GI.Gtk.Objects.Invisible | |
toInvisible :: (MonadIO m, IsInvisible o) => o -> m Invisible Source #
Methods
Overloaded methods
getScreen
Arguments
| :: (HasCallStack, MonadIO m, IsInvisible a) | |
| => a |
|
| -> m Screen | Returns: the associated |
Returns the Screen object associated with invisible
Since: 2.2
new
Arguments
| :: (HasCallStack, MonadIO m) | |
| => m Invisible | Returns: a new |
Creates a new Invisible.
newForScreen
invisibleNewForScreen Source #
Arguments
| :: (HasCallStack, MonadIO m, IsScreen a) | |
| => a |
|
| -> m Invisible | Returns: a newly created |
Creates a new Invisible object for a specified screen
Since: 2.2
setScreen
Arguments
| :: (HasCallStack, MonadIO m, IsInvisible a, IsScreen b) | |
| => a |
|
| -> b |
|
| -> m () |
Properties
screen
No description available in the introspection data.
constructInvisibleScreen :: (IsInvisible o, IsScreen a) => a -> IO (GValueConstruct o) Source #
Construct a GValueConstruct with valid value for the “screen” property. This is rarely needed directly, but it is used by new.
getInvisibleScreen :: (MonadIO m, IsInvisible o) => o -> m Screen Source #
Get the value of the “screen” property.
When overloading is enabled, this is equivalent to
get invisible #screen
setInvisibleScreen :: (MonadIO m, IsInvisible o, IsScreen a) => o -> a -> m () Source #
Set the value of the “screen” property.
When overloading is enabled, this is equivalent to
setinvisible [ #screen:=value ]