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 |
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
- newtype ResourceUsage = ResourceUsage (ManagedPtr ResourceUsage)
- newZeroResourceUsage :: MonadIO m => m ResourceUsage
- noResourceUsage :: Maybe ResourceUsage
- getResourceUsageNColormapEntries :: MonadIO m => ResourceUsage -> m Word32
- setResourceUsageNColormapEntries :: MonadIO m => ResourceUsage -> Word32 -> m ()
- getResourceUsageNCursors :: MonadIO m => ResourceUsage -> m Word32
- setResourceUsageNCursors :: MonadIO m => ResourceUsage -> Word32 -> m ()
- getResourceUsageNFonts :: MonadIO m => ResourceUsage -> m Word32
- setResourceUsageNFonts :: MonadIO m => ResourceUsage -> Word32 -> m ()
- getResourceUsageNGcs :: MonadIO m => ResourceUsage -> m Word32
- setResourceUsageNGcs :: MonadIO m => ResourceUsage -> Word32 -> m ()
- getResourceUsageNGlyphsets :: MonadIO m => ResourceUsage -> m Word32
- setResourceUsageNGlyphsets :: MonadIO m => ResourceUsage -> Word32 -> m ()
- getResourceUsageNOther :: MonadIO m => ResourceUsage -> m Word32
- setResourceUsageNOther :: MonadIO m => ResourceUsage -> Word32 -> m ()
- getResourceUsageNPassiveGrabs :: MonadIO m => ResourceUsage -> m Word32
- setResourceUsageNPassiveGrabs :: MonadIO m => ResourceUsage -> Word32 -> m ()
- getResourceUsageNPictures :: MonadIO m => ResourceUsage -> m Word32
- setResourceUsageNPictures :: MonadIO m => ResourceUsage -> Word32 -> m ()
- getResourceUsageNPixmaps :: MonadIO m => ResourceUsage -> m Word32
- setResourceUsageNPixmaps :: MonadIO m => ResourceUsage -> Word32 -> m ()
- getResourceUsageNWindows :: MonadIO m => ResourceUsage -> m Word32
- setResourceUsageNWindows :: MonadIO m => ResourceUsage -> Word32 -> m ()
- getResourceUsagePixmapBytes :: MonadIO m => ResourceUsage -> m CULong
- setResourceUsagePixmapBytes :: MonadIO m => ResourceUsage -> CULong -> m ()
- getResourceUsageTotalBytesEstimate :: MonadIO m => ResourceUsage -> m CULong
- setResourceUsageTotalBytesEstimate :: MonadIO m => ResourceUsage -> CULong -> m ()
Exported types
newtype ResourceUsage Source #
Memory-managed wrapper type.
ResourceUsage (ManagedPtr ResourceUsage) |
Instances
WrappedPtr ResourceUsage Source # | |
Defined in GI.Wnck.Structs.ResourceUsage wrappedPtrCalloc :: IO (Ptr ResourceUsage) wrappedPtrCopy :: ResourceUsage -> IO ResourceUsage wrappedPtrFree :: Maybe (GDestroyNotify ResourceUsage) | |
tag ~ AttrSet => Constructible ResourceUsage tag Source # | |
Defined in GI.Wnck.Structs.ResourceUsage new :: MonadIO m => (ManagedPtr ResourceUsage -> ResourceUsage) -> [AttrOp ResourceUsage tag] -> m ResourceUsage |
newZeroResourceUsage :: MonadIO m => m ResourceUsage Source #
Construct a ResourceUsage
struct initialized to zero.
noResourceUsage :: Maybe ResourceUsage Source #
A convenience alias for Nothing
:: Maybe
ResourceUsage
.
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 ]