Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (inaki@blueleaf.cc) |
Safe Haskell | None |
Language | Haskell2010 |
Attributes to use for a newly-created window.
Synopsis
- newtype WindowAttr = WindowAttr (ManagedPtr WindowAttr)
- newZeroWindowAttr :: MonadIO m => m WindowAttr
- noWindowAttr :: Maybe WindowAttr
- clearWindowAttrCursor :: MonadIO m => WindowAttr -> m ()
- getWindowAttrCursor :: MonadIO m => WindowAttr -> m (Maybe Cursor)
- setWindowAttrCursor :: MonadIO m => WindowAttr -> Ptr Cursor -> m ()
- getWindowAttrEventMask :: MonadIO m => WindowAttr -> m Int32
- setWindowAttrEventMask :: MonadIO m => WindowAttr -> Int32 -> m ()
- getWindowAttrHeight :: MonadIO m => WindowAttr -> m Int32
- setWindowAttrHeight :: MonadIO m => WindowAttr -> Int32 -> m ()
- getWindowAttrOverrideRedirect :: MonadIO m => WindowAttr -> m Bool
- setWindowAttrOverrideRedirect :: MonadIO m => WindowAttr -> Bool -> m ()
- clearWindowAttrTitle :: MonadIO m => WindowAttr -> m ()
- getWindowAttrTitle :: MonadIO m => WindowAttr -> m (Maybe Text)
- setWindowAttrTitle :: MonadIO m => WindowAttr -> CString -> m ()
- getWindowAttrTypeHint :: MonadIO m => WindowAttr -> m WindowTypeHint
- setWindowAttrTypeHint :: MonadIO m => WindowAttr -> WindowTypeHint -> m ()
- clearWindowAttrVisual :: MonadIO m => WindowAttr -> m ()
- getWindowAttrVisual :: MonadIO m => WindowAttr -> m (Maybe Visual)
- setWindowAttrVisual :: MonadIO m => WindowAttr -> Ptr Visual -> m ()
- getWindowAttrWclass :: MonadIO m => WindowAttr -> m WindowWindowClass
- setWindowAttrWclass :: MonadIO m => WindowAttr -> WindowWindowClass -> m ()
- getWindowAttrWidth :: MonadIO m => WindowAttr -> m Int32
- setWindowAttrWidth :: MonadIO m => WindowAttr -> Int32 -> m ()
- getWindowAttrWindowType :: MonadIO m => WindowAttr -> m WindowType
- setWindowAttrWindowType :: MonadIO m => WindowAttr -> WindowType -> m ()
- clearWindowAttrWmclassClass :: MonadIO m => WindowAttr -> m ()
- getWindowAttrWmclassClass :: MonadIO m => WindowAttr -> m (Maybe Text)
- setWindowAttrWmclassClass :: MonadIO m => WindowAttr -> CString -> m ()
- clearWindowAttrWmclassName :: MonadIO m => WindowAttr -> m ()
- getWindowAttrWmclassName :: MonadIO m => WindowAttr -> m (Maybe Text)
- setWindowAttrWmclassName :: MonadIO m => WindowAttr -> CString -> m ()
- getWindowAttrX :: MonadIO m => WindowAttr -> m Int32
- setWindowAttrX :: MonadIO m => WindowAttr -> Int32 -> m ()
- getWindowAttrY :: MonadIO m => WindowAttr -> m Int32
- setWindowAttrY :: MonadIO m => WindowAttr -> Int32 -> m ()
Exported types
newtype WindowAttr Source #
Memory-managed wrapper type.
Instances
WrappedPtr WindowAttr Source # | |
Defined in GI.Gdk.Structs.WindowAttr | |
tag ~ AttrSet => Constructible WindowAttr tag Source # | |
Defined in GI.Gdk.Structs.WindowAttr new :: MonadIO m => (ManagedPtr WindowAttr -> WindowAttr) -> [AttrOp WindowAttr tag] -> m WindowAttr # |
newZeroWindowAttr :: MonadIO m => m WindowAttr Source #
Construct a WindowAttr
struct initialized to zero.
noWindowAttr :: Maybe WindowAttr Source #
A convenience alias for Nothing
:: Maybe
WindowAttr
.
Properties
cursor
cursor for the window (see windowSetCursor
)
clearWindowAttrCursor :: MonadIO m => WindowAttr -> m () Source #
Set the value of the “cursor
” field to Nothing
.
When overloading is enabled, this is equivalent to
clear
#cursor
getWindowAttrCursor :: MonadIO m => WindowAttr -> m (Maybe Cursor) Source #
Get the value of the “cursor
” field.
When overloading is enabled, this is equivalent to
get
windowAttr #cursor
setWindowAttrCursor :: MonadIO m => WindowAttr -> Ptr Cursor -> m () Source #
Set the value of the “cursor
” field.
When overloading is enabled, this is equivalent to
set
windowAttr [ #cursor:=
value ]
eventMask
event mask (see windowSetEvents
)
getWindowAttrEventMask :: MonadIO m => WindowAttr -> m Int32 Source #
Get the value of the “event_mask
” field.
When overloading is enabled, this is equivalent to
get
windowAttr #eventMask
setWindowAttrEventMask :: MonadIO m => WindowAttr -> Int32 -> m () Source #
Set the value of the “event_mask
” field.
When overloading is enabled, this is equivalent to
set
windowAttr [ #eventMask:=
value ]
height
height of window
getWindowAttrHeight :: MonadIO m => WindowAttr -> m Int32 Source #
Get the value of the “height
” field.
When overloading is enabled, this is equivalent to
get
windowAttr #height
setWindowAttrHeight :: MonadIO m => WindowAttr -> Int32 -> m () Source #
Set the value of the “height
” field.
When overloading is enabled, this is equivalent to
set
windowAttr [ #height:=
value ]
overrideRedirect
True
to bypass the window manager
getWindowAttrOverrideRedirect :: MonadIO m => WindowAttr -> m Bool Source #
Get the value of the “override_redirect
” field.
When overloading is enabled, this is equivalent to
get
windowAttr #overrideRedirect
setWindowAttrOverrideRedirect :: MonadIO m => WindowAttr -> Bool -> m () Source #
Set the value of the “override_redirect
” field.
When overloading is enabled, this is equivalent to
set
windowAttr [ #overrideRedirect:=
value ]
title
title of the window (for toplevel windows)
clearWindowAttrTitle :: MonadIO m => WindowAttr -> m () Source #
Set the value of the “title
” field to Nothing
.
When overloading is enabled, this is equivalent to
clear
#title
getWindowAttrTitle :: MonadIO m => WindowAttr -> m (Maybe Text) Source #
Get the value of the “title
” field.
When overloading is enabled, this is equivalent to
get
windowAttr #title
setWindowAttrTitle :: MonadIO m => WindowAttr -> CString -> m () Source #
Set the value of the “title
” field.
When overloading is enabled, this is equivalent to
set
windowAttr [ #title:=
value ]
typeHint
a hint of the function of the window
getWindowAttrTypeHint :: MonadIO m => WindowAttr -> m WindowTypeHint Source #
Get the value of the “type_hint
” field.
When overloading is enabled, this is equivalent to
get
windowAttr #typeHint
setWindowAttrTypeHint :: MonadIO m => WindowAttr -> WindowTypeHint -> m () Source #
Set the value of the “type_hint
” field.
When overloading is enabled, this is equivalent to
set
windowAttr [ #typeHint:=
value ]
visual
Visual
for window
clearWindowAttrVisual :: MonadIO m => WindowAttr -> m () Source #
Set the value of the “visual
” field to Nothing
.
When overloading is enabled, this is equivalent to
clear
#visual
getWindowAttrVisual :: MonadIO m => WindowAttr -> m (Maybe Visual) Source #
Get the value of the “visual
” field.
When overloading is enabled, this is equivalent to
get
windowAttr #visual
setWindowAttrVisual :: MonadIO m => WindowAttr -> Ptr Visual -> m () Source #
Set the value of the “visual
” field.
When overloading is enabled, this is equivalent to
set
windowAttr [ #visual:=
value ]
wclass
GDK_INPUT_OUTPUT
(normal window) or GDK_INPUT_ONLY
(invisible
window that receives events)
getWindowAttrWclass :: MonadIO m => WindowAttr -> m WindowWindowClass Source #
Get the value of the “wclass
” field.
When overloading is enabled, this is equivalent to
get
windowAttr #wclass
setWindowAttrWclass :: MonadIO m => WindowAttr -> WindowWindowClass -> m () Source #
Set the value of the “wclass
” field.
When overloading is enabled, this is equivalent to
set
windowAttr [ #wclass:=
value ]
width
width of window
getWindowAttrWidth :: MonadIO m => WindowAttr -> m Int32 Source #
Get the value of the “width
” field.
When overloading is enabled, this is equivalent to
get
windowAttr #width
setWindowAttrWidth :: MonadIO m => WindowAttr -> Int32 -> m () Source #
Set the value of the “width
” field.
When overloading is enabled, this is equivalent to
set
windowAttr [ #width:=
value ]
windowType
type of window
getWindowAttrWindowType :: MonadIO m => WindowAttr -> m WindowType Source #
Get the value of the “window_type
” field.
When overloading is enabled, this is equivalent to
get
windowAttr #windowType
setWindowAttrWindowType :: MonadIO m => WindowAttr -> WindowType -> m () Source #
Set the value of the “window_type
” field.
When overloading is enabled, this is equivalent to
set
windowAttr [ #windowType:=
value ]
wmclassClass
don’t use (see gtk_window_set_wmclass()
)
clearWindowAttrWmclassClass :: MonadIO m => WindowAttr -> m () Source #
Set the value of the “wmclass_class
” field to Nothing
.
When overloading is enabled, this is equivalent to
clear
#wmclassClass
getWindowAttrWmclassClass :: MonadIO m => WindowAttr -> m (Maybe Text) Source #
Get the value of the “wmclass_class
” field.
When overloading is enabled, this is equivalent to
get
windowAttr #wmclassClass
setWindowAttrWmclassClass :: MonadIO m => WindowAttr -> CString -> m () Source #
Set the value of the “wmclass_class
” field.
When overloading is enabled, this is equivalent to
set
windowAttr [ #wmclassClass:=
value ]
wmclassName
don’t use (see gtk_window_set_wmclass()
)
clearWindowAttrWmclassName :: MonadIO m => WindowAttr -> m () Source #
Set the value of the “wmclass_name
” field to Nothing
.
When overloading is enabled, this is equivalent to
clear
#wmclassName
getWindowAttrWmclassName :: MonadIO m => WindowAttr -> m (Maybe Text) Source #
Get the value of the “wmclass_name
” field.
When overloading is enabled, this is equivalent to
get
windowAttr #wmclassName
setWindowAttrWmclassName :: MonadIO m => WindowAttr -> CString -> m () Source #
Set the value of the “wmclass_name
” field.
When overloading is enabled, this is equivalent to
set
windowAttr [ #wmclassName:=
value ]
x
X coordinate relative to parent window (see windowMove
)
getWindowAttrX :: MonadIO m => WindowAttr -> m Int32 Source #
Get the value of the “x
” field.
When overloading is enabled, this is equivalent to
get
windowAttr #x
setWindowAttrX :: MonadIO m => WindowAttr -> Int32 -> m () Source #
Set the value of the “x
” field.
When overloading is enabled, this is equivalent to
set
windowAttr [ #x:=
value ]
y
Y coordinate relative to parent window (see windowMove
)
getWindowAttrY :: MonadIO m => WindowAttr -> m Int32 Source #
Get the value of the “y
” field.
When overloading is enabled, this is equivalent to
get
windowAttr #y
setWindowAttrY :: MonadIO m => WindowAttr -> Int32 -> m () Source #
Set the value of the “y
” field.
When overloading is enabled, this is equivalent to
set
windowAttr [ #y:=
value ]