wlmaker
Loading...
Searching...
No Matches
Classes | Typedefs | Functions | Variables
buffer.h File Reference
#include <libbase/libbase.h>
#include <stdbool.h>
#include <wayland-server-core.h>
#include "element.h"
#include "input.h"
Include dependency graph for buffer.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _wlmtk_buffer_t
 

Typedefs

typedef struct _wlmtk_buffer_t wlmtk_buffer_t
 

Functions

bool wlmtk_buffer_init (wlmtk_buffer_t *buffer_ptr)
 
void wlmtk_buffer_fini (wlmtk_buffer_t *buffer_ptr)
 
void wlmtk_buffer_set (wlmtk_buffer_t *buffer_ptr, struct wlr_buffer *wlr_buffer_ptr)
 
wlmtk_element_twlmtk_buffer_element (wlmtk_buffer_t *buffer_ptr)
 

Variables

const bs_test_case_t wlmtk_buffer_test_cases []
 

Detailed Description

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

https://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Typedef Documentation

◆ wlmtk_buffer_t

Forward declaration: Buffer state.

Function Documentation

◆ wlmtk_buffer_element()

wlmtk_element_t * wlmtk_buffer_element ( wlmtk_buffer_t buffer_ptr)
Returns
the superclass' wlmtk_element_t of buffer_ptr.

◆ wlmtk_buffer_fini()

void wlmtk_buffer_fini ( wlmtk_buffer_t buffer_ptr)

Cleans up the buffer.

Parameters
buffer_ptr

◆ wlmtk_buffer_init()

bool wlmtk_buffer_init ( wlmtk_buffer_t buffer_ptr)

Initializes the buffer.

Parameters
buffer_ptr
Returns
true on success.

◆ wlmtk_buffer_set()

void wlmtk_buffer_set ( wlmtk_buffer_t buffer_ptr,
struct wlr_buffer *  wlr_buffer_ptr 
)

Sets (or updates) buffer contents.

Parameters
buffer_ptr
wlr_buffer_ptrA WLR buffer to use for the update. That buffer will get locked by wlmtk_buffer_t for the duration of it's use.

Variable Documentation

◆ wlmtk_buffer_test_cases

const bs_test_case_t wlmtk_buffer_test_cases[]
extern

Unit test cases.