gi-wnck-3.0.4: Wnck bindings

CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (inaki@blueleaf.cc)
Safe HaskellNone
LanguageHaskell2010

GI.Wnck.Structs.ResourceUsage

Contents

Description

The ResourceUsage struct contains information about the total resource usage of an X client, and the number of resources allocated for each resource type.

Since: 2.6

Synopsis

Exported types

newtype ResourceUsage Source #

Memory-managed wrapper type.

Constructors

ResourceUsage (ManagedPtr ResourceUsage) 
Instances
WrappedPtr ResourceUsage Source # 
Instance details

Defined in GI.Wnck.Structs.ResourceUsage

tag ~ AttrSet => Constructible ResourceUsage tag Source # 
Instance details

Defined in GI.Wnck.Structs.ResourceUsage

Methods

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

newZeroResourceUsage :: MonadIO m => m ResourceUsage Source #

Construct a ResourceUsage struct initialized to zero.

Properties

nColormapEntries

number of Colormap resources allocated.

getResourceUsageNColormapEntries :: MonadIO m => ResourceUsage -> m Word32 Source #

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

get resourceUsage #nColormapEntries

setResourceUsageNColormapEntries :: MonadIO m => ResourceUsage -> Word32 -> m () Source #

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

set resourceUsage [ #nColormapEntries := value ]

nCursors

number of Cursor resources allocated.

getResourceUsageNCursors :: MonadIO m => ResourceUsage -> m Word32 Source #

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

get resourceUsage #nCursors

setResourceUsageNCursors :: MonadIO m => ResourceUsage -> Word32 -> m () Source #

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

set resourceUsage [ #nCursors := value ]

nFonts

number of Font resources allocated.

getResourceUsageNFonts :: MonadIO m => ResourceUsage -> m Word32 Source #

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

get resourceUsage #nFonts

setResourceUsageNFonts :: MonadIO m => ResourceUsage -> Word32 -> m () Source #

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

set resourceUsage [ #nFonts := value ]

nGcs

number of GContext resources allocated.

getResourceUsageNGcs :: MonadIO m => ResourceUsage -> m Word32 Source #

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

get resourceUsage #nGcs

setResourceUsageNGcs :: MonadIO m => ResourceUsage -> Word32 -> m () Source #

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

set resourceUsage [ #nGcs := value ]

nGlyphsets

number of Glyphset resources allocated.

getResourceUsageNGlyphsets :: MonadIO m => ResourceUsage -> m Word32 Source #

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

get resourceUsage #nGlyphsets

setResourceUsageNGlyphsets :: MonadIO m => ResourceUsage -> Word32 -> m () Source #

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

set resourceUsage [ #nGlyphsets := value ]

nOther

number of other resources allocated.

getResourceUsageNOther :: MonadIO m => ResourceUsage -> m Word32 Source #

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

get resourceUsage #nOther

setResourceUsageNOther :: MonadIO m => ResourceUsage -> Word32 -> m () Source #

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

set resourceUsage [ #nOther := value ]

nPassiveGrabs

number of PassiveGrab resources allocated.

getResourceUsageNPassiveGrabs :: MonadIO m => ResourceUsage -> m Word32 Source #

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

get resourceUsage #nPassiveGrabs

setResourceUsageNPassiveGrabs :: MonadIO m => ResourceUsage -> Word32 -> m () Source #

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

set resourceUsage [ #nPassiveGrabs := value ]

nPictures

number of Picture resources allocated.

getResourceUsageNPictures :: MonadIO m => ResourceUsage -> m Word32 Source #

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

get resourceUsage #nPictures

setResourceUsageNPictures :: MonadIO m => ResourceUsage -> Word32 -> m () Source #

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

set resourceUsage [ #nPictures := value ]

nPixmaps

number of Pixmap resources allocated.

getResourceUsageNPixmaps :: MonadIO m => ResourceUsage -> m Word32 Source #

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

get resourceUsage #nPixmaps

setResourceUsageNPixmaps :: MonadIO m => ResourceUsage -> Word32 -> m () Source #

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

set resourceUsage [ #nPixmaps := value ]

nWindows

number of Window resources allocated.

getResourceUsageNWindows :: MonadIO m => ResourceUsage -> m Word32 Source #

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

get resourceUsage #nWindows

setResourceUsageNWindows :: MonadIO m => ResourceUsage -> Word32 -> m () Source #

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

set resourceUsage [ #nWindows := value ]

pixmapBytes

number of bytes allocated in the X server for resources of type Pixmap.

getResourceUsagePixmapBytes :: MonadIO m => ResourceUsage -> m CULong Source #

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

get resourceUsage #pixmapBytes

setResourceUsagePixmapBytes :: MonadIO m => ResourceUsage -> CULong -> m () Source #

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

set resourceUsage [ #pixmapBytes := value ]

totalBytesEstimate

estimation of the total number of bytes allocated in the X server.

getResourceUsageTotalBytesEstimate :: MonadIO m => ResourceUsage -> m CULong Source #

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

get resourceUsage #totalBytesEstimate

setResourceUsageTotalBytesEstimate :: MonadIO m => ResourceUsage -> CULong -> m () Source #

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

set resourceUsage [ #totalBytesEstimate := value ]