Struct gbm::MappedBufferObject [] [src]

pub struct MappedBufferObject<'a, T: 'static> { /* fields omitted */ }

A read-only mapped buffer object

Methods from Deref<Target = BufferObject<'a, T>>

[src]

Get the width of the buffer object

[src]

Get the height of the buffer object

[src]

Get the stride of the buffer object

[src]

Get the format of the buffer object

[src]

Get the handle of the buffer object

This is stored in the platform generic union BufferObjectHandle type. However the format of this handle is platform specific.

[src]

Map a region of a gbm buffer object for cpu access

This function maps a region of a gbm bo for cpu read access.

[src]

Returns a reference to set userdata, if any.

Trait Implementations

impl<'a, T: 'static> Deref for MappedBufferObject<'a, T>
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.

impl<'a, T: 'static> ReadableMappedBufferObject<'a> for MappedBufferObject<'a, T>
[src]

[src]

Get the stride of the buffer object Read more

[src]

The height of the mapped region for the buffer

[src]

The width of the mapped region for the buffer

[src]

The X (top left origin) starting position of the mapped region for the buffer

[src]

The Y (top left origin) starting position of the mapped region for the buffer

[src]

Access to the underlying image buffer

impl<'a, T: 'static> Drop for MappedBufferObject<'a, T>
[src]

[src]

Executes the destructor for this type. Read more