Struct gbm::MappedBufferObjectRW [] [src]

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

A read-write 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]

Map a region of a gbm buffer object for cpu access

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

[src]

Write data into the buffer object

If the buffer object was created with the BufferObjectFlags::Write flag, this function can be used to write data into the buffer object. The data is copied directly into the object and it's the responsibility of the caller to make sure the data represents valid pixel data, according to the width, height, stride and format of the buffer object.

[src]

Sets the userdata of the buffer object.

If previously userdata was set, it is returned.

[src]

Clears the set userdata of the buffer object.

[src]

Returns a reference to set userdata, if any.

[src]

Returns a mutable reference to set userdata, if any.

[src]

Takes ownership of previously set userdata, if any.

This removes the userdata from the buffer object.

Trait Implementations

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

The resulting type after dereferencing.

[src]

Dereferences the value.

impl<'a, T: 'static> DerefMut for MappedBufferObjectRW<'a, T>
[src]

[src]

Mutably dereferences the value.

impl<'a, T: 'static> ReadableMappedBufferObject<'a> for MappedBufferObjectRW<'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> WritableMappedBufferObject<'a> for MappedBufferObjectRW<'a, T>
[src]

[src]

Mutable access to the underlying image buffer

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

[src]

Executes the destructor for this type. Read more