gi-gdk-3.0.23: Gdk bindings
CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellNone
LanguageHaskell2010

GI.Gdk.Structs.EventExpose

Description

Generated when all or part of a window becomes visible and needs to be redrawn.

Synopsis

Exported types

newtype EventExpose Source #

Memory-managed wrapper type.

Constructors

EventExpose (ManagedPtr EventExpose) 

Instances

Instances details
Eq EventExpose Source # 
Instance details

Defined in GI.Gdk.Structs.EventExpose

Methods

(==) :: EventExpose -> EventExpose -> Bool

(/=) :: EventExpose -> EventExpose -> Bool

BoxedPtr EventExpose Source # 
Instance details

Defined in GI.Gdk.Structs.EventExpose

CallocPtr EventExpose Source # 
Instance details

Defined in GI.Gdk.Structs.EventExpose

ManagedPtrNewtype EventExpose Source # 
Instance details

Defined in GI.Gdk.Structs.EventExpose

Methods

toManagedPtr :: EventExpose -> ManagedPtr EventExpose

tag ~ 'AttrSet => Constructible EventExpose tag Source # 
Instance details

Defined in GI.Gdk.Structs.EventExpose

Methods

new :: MonadIO m => (ManagedPtr EventExpose -> EventExpose) -> [AttrOp EventExpose tag] -> m EventExpose

newZeroEventExpose :: MonadIO m => m EventExpose Source #

Construct a EventExpose struct initialized to zero.

Methods

Overloaded methods

Properties

area

bounding box of region.

getEventExposeArea :: MonadIO m => EventExpose -> m Rectangle Source #

Get the value of the “area” field. When overloading is enabled, this is equivalent to

get eventExpose #area

count

the number of contiguous EventTypeExpose events following this one. The only use for this is “exposure compression”, i.e. handling all contiguous EventTypeExpose events in one go, though GDK performs some exposure compression so this is not normally needed.

getEventExposeCount :: MonadIO m => EventExpose -> m Int32 Source #

Get the value of the “count” field. When overloading is enabled, this is equivalent to

get eventExpose #count

setEventExposeCount :: MonadIO m => EventExpose -> Int32 -> m () Source #

Set the value of the “count” field. When overloading is enabled, this is equivalent to

set eventExpose [ #count := value ]

region

the region that needs to be redrawn.

clearEventExposeRegion :: MonadIO m => EventExpose -> m () Source #

Set the value of the “region” field to Nothing. When overloading is enabled, this is equivalent to

clear #region

getEventExposeRegion :: MonadIO m => EventExpose -> m (Maybe Region) Source #

Get the value of the “region” field. When overloading is enabled, this is equivalent to

get eventExpose #region

setEventExposeRegion :: MonadIO m => EventExpose -> Ptr Region -> m () Source #

Set the value of the “region” field. When overloading is enabled, this is equivalent to

set eventExpose [ #region := value ]

sendEvent

True if the event was sent explicitly.

getEventExposeSendEvent :: MonadIO m => EventExpose -> m Int8 Source #

Get the value of the “send_event” field. When overloading is enabled, this is equivalent to

get eventExpose #sendEvent

setEventExposeSendEvent :: MonadIO m => EventExpose -> Int8 -> m () Source #

Set the value of the “send_event” field. When overloading is enabled, this is equivalent to

set eventExpose [ #sendEvent := value ]

type

the type of the event (EventTypeExpose or EventTypeDamage).

getEventExposeType :: MonadIO m => EventExpose -> m EventType Source #

Get the value of the “type” field. When overloading is enabled, this is equivalent to

get eventExpose #type

setEventExposeType :: MonadIO m => EventExpose -> EventType -> m () Source #

Set the value of the “type” field. When overloading is enabled, this is equivalent to

set eventExpose [ #type := value ]

window

the window which received the event.

clearEventExposeWindow :: MonadIO m => EventExpose -> m () Source #

Set the value of the “window” field to Nothing. When overloading is enabled, this is equivalent to

clear #window

getEventExposeWindow :: MonadIO m => EventExpose -> m (Maybe Window) Source #

Get the value of the “window” field. When overloading is enabled, this is equivalent to

get eventExpose #window

setEventExposeWindow :: MonadIO m => EventExpose -> Ptr Window -> m () Source #

Set the value of the “window” field. When overloading is enabled, this is equivalent to

set eventExpose [ #window := value ]