Hoogle Search
Within LTS Haskell 24.46 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
setSourceRGBA :: Double -> Double -> Double -> Double -> Render ()cairo Graphics.Rendering.Cairo Sets the source pattern within the context to a translucent color. This color will then be used for any subsequent drawing operation until a new source pattern is set. The color and alpha components are floating point numbers in the range 0 to 1. If the values passed in are outside that range, they will be clamped.
setSourceSurface :: Surface -> Double -> Double -> Render ()cairo Graphics.Rendering.Cairo This is a convenience function for creating a pattern from surface and setting it as the source in the context with setSource. The x and y parameters give the user-space coordinate at which the surface origin should appear. (The surface origin is its upper-left corner before any transformation has been applied.) The x and y patterns are negated and then set as translation values in the pattern matrix. Other than the initial translation pattern matrix, as described above, all other pattern attributes, (such as its extend mode), are set to the default values as in patternCreateForSurface. The resulting pattern can be queried with getSource so that these attributes can be modified if desired, (eg. to create a repeating pattern with patternSetExtent.
setTolerance :: Double -> Render ()cairo Graphics.Rendering.Cairo Sets the tolerance used when converting paths into trapezoids. Curved segments of the path will be subdivided until the maximum deviation between the original path and the polygonal approximation is less than tolerance. The default value is 0.1. A larger value will give better performance, a smaller value, better appearance. (Reducing the value from the default value of 0.1 is unlikely to improve appearance significantly.)
setAddrRange# :: Addr# -> Int# -> Int# -> State# RealWorld -> State# RealWorldghc-internal GHC.Internal.Base setAddrRange# dest len c sets all of the bytes in [dest, dest+len) to the value c. Analogous to the standard C function memset, but with a different argument order. Warning: this can fail with an unchecked exception.
setByteArray# :: MutableByteArray# d -> Int# -> Int# -> Int# -> State# d -> State# dghc-internal GHC.Internal.Base setByteArray# ba off len c sets the byte range [off, off+len) of the MutableByteArray# to the byte c. Warning: this can fail with an unchecked exception.
setThreadAllocationCounter# :: Int64# -> State# RealWorld -> State# RealWorldghc-internal GHC.Internal.Base Sets the allocation counter for the current thread to the given value.
setBit :: Bits a => a -> Int -> aghc-internal GHC.Internal.Bits x `setBit` i is the same as x .|. bit i
setHandler :: Signal -> Maybe (HandlerFun, Dynamic) -> IO (Maybe (HandlerFun, Dynamic))ghc-internal GHC.Internal.Conc.Signal No documentation available.
setAllocationCounter :: Int64 -> IO ()ghc-internal GHC.Internal.Conc.Sync Every thread has an allocation counter that tracks how much memory has been allocated by the thread. The counter is initialized to zero, and setAllocationCounter sets the current value. The allocation counter counts *down*, so in the absence of a call to setAllocationCounter its value is the negation of the number of bytes of memory allocated by the thread. There are two things that you can do with this counter:
- Use it as a simple profiling mechanism, with getAllocationCounter.
- Use it as a resource limit. See enableAllocationLimit.
setNumCapabilities :: Int -> IO ()ghc-internal GHC.Internal.Conc.Sync Set the number of Haskell threads that can run truly simultaneously (on separate physical processors) at any given time. The number passed to forkOn is interpreted modulo this value. The initial value is given by the +RTS -N runtime flag. This is also the number of threads that will participate in parallel garbage collection. It is strongly recommended that the number of capabilities is not set larger than the number of physical processor cores, and it may often be beneficial to leave one or more cores free to avoid contention with other processes in the machine.