gi-cogl-1.0.3: COGL GObject bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

GI.Cogl.Objects.Bitmap

Description

No description available in the introspection data.

Synopsis

Exported types

newtype Bitmap Source #

Memory-managed wrapper type.

Constructors

Bitmap (ManagedPtr Bitmap) 

Instances

Instances details
Eq Bitmap Source # 
Instance details

Defined in GI.Cogl.Objects.Bitmap

Methods

(==) :: Bitmap -> Bitmap -> Bool #

(/=) :: Bitmap -> Bitmap -> Bool #

BoxedPtr Bitmap Source # 
Instance details

Defined in GI.Cogl.Objects.Bitmap

ManagedPtrNewtype Bitmap Source # 
Instance details

Defined in GI.Cogl.Objects.Bitmap

Methods

toManagedPtr :: Bitmap -> ManagedPtr Bitmap

TypedObject Bitmap Source # 
Instance details

Defined in GI.Cogl.Objects.Bitmap

Methods

glibType :: IO GType

HasParentTypes Bitmap Source # 
Instance details

Defined in GI.Cogl.Objects.Bitmap

type ParentTypes Bitmap Source # 
Instance details

Defined in GI.Cogl.Objects.Bitmap

type ParentTypes Bitmap = '[] :: [Type]

class (BoxedPtr o, TypedObject o, IsDescendantOf Bitmap o) => IsBitmap o Source #

Type class for types which can be safely cast to Bitmap, for instance with toBitmap.

Instances

Instances details
(BoxedPtr o, TypedObject o, IsDescendantOf Bitmap o) => IsBitmap o Source # 
Instance details

Defined in GI.Cogl.Objects.Bitmap

toBitmap :: (MonadIO m, IsBitmap o) => o -> m Bitmap Source #

Cast to Bitmap, for types for which this is known to be safe. For general casts, use castTo.

Methods

getSizeFromFile

bitmapGetSizeFromFile Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Text

filename: the file to check

-> m (Int32, Int32, Int32)

Returns: True if the image was successfully parsed

Parses an image file enough to extract the width and height of the bitmap.

Since: 1.0

newFromFile

bitmapNewFromFile Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Text

filename: the file to load.

-> m Bitmap

Returns: a Bitmap to the new loaded image data, or Nothing if loading the image failed. (Can throw GError)

Loads an image file from disk. This function can be safely called from within a thread.

Since: 1.0