wlmaker
Loading...
Searching...
No Matches
output.c File Reference
#include "output.h"
#include "toolkit/toolkit.h"
#include <libbase/libbase.h>
Include dependency graph for output.c:

Macros

#define _POSIX_C_SOURCE   199309L
 clock_gettime(2) is a POSIX extension, needs this macro.
 

Functions

static void handle_output_destroy (struct wl_listener *listener_ptr, void *data_ptr)
 
static void handle_output_frame (struct wl_listener *listener_ptr, void *data_ptr)
 
static void handle_request_state (struct wl_listener *listener_ptr, void *data_ptr)
 
wlmaker_output_twlmaker_output_create (struct wlr_output *wlr_output_ptr, struct wlr_allocator *wlr_allocator_ptr, struct wlr_renderer *wlr_renderer_ptr, struct wlr_scene *wlr_scene_ptr, wlmaker_server_t *server_ptr)
 
void wlmaker_output_destroy (wlmaker_output_t *output_ptr)
 

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.

Function Documentation

◆ handle_output_destroy()

void handle_output_destroy ( struct wl_listener * listener_ptr,
void * data_ptr )
static

Event handler for the destroy signal raised by wlr_output.

Parameters
listener_ptr
data_ptr

◆ handle_output_frame()

void handle_output_frame ( struct wl_listener * listener_ptr,
void * data_ptr )
static

Event handler for the frame signal raised by wlr_output.

Parameters
listener_ptr
data_ptr

◆ handle_request_state()

void handle_request_state ( struct wl_listener * listener_ptr,
void * data_ptr )
static

Event handler for the request_state signal raised by wlr_output.

Parameters
listener_ptr
data_ptr

◆ wlmaker_output_create()

wlmaker_output_t * wlmaker_output_create ( struct wlr_output * wlr_output_ptr,
struct wlr_allocator * wlr_allocator_ptr,
struct wlr_renderer * wlr_renderer_ptr,
struct wlr_scene * wlr_scene_ptr,
wlmaker_server_t * server_ptr )

Creates an output device from |wlr_output_ptr|.

Parameters
wlr_output_ptr
wlr_allocator_ptr
wlr_renderer_ptr
wlr_scene_ptr
server_ptr
Returns
The output device handle or NULL on error.

◆ wlmaker_output_destroy()

void wlmaker_output_destroy ( wlmaker_output_t * output_ptr)

Destroys the output device handle, as created by wlmaker_output_create().

Parameters
output_ptr