wlmaker
Loading...
Searching...
No Matches
Macros | Functions | Variables
output.c File Reference
#include "output.h"
#include "toolkit/toolkit.h"
#include <libbase/libbase.h>
#include <wlr/backend/x11.h>
Include dependency graph for output.c:

Macros

#define _POSIX_C_SOURCE   199309L
 clock_gettime(2) is a POSIX extension, needs this macro.
 
#define WLR_USE_UNSTABLE
 Use wlroots non-stable API.
 

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, uint32_t width, uint32_t height, wlmaker_server_t *server_ptr)
 
void wlmaker_output_destroy (wlmaker_output_t *output_ptr)
 

Variables

static const char * _wlmaker_output_dict_name = "Output"
 
static const wlmcfg_enum_desc_t _wlmaker_output_transformation_desc []
 
static const wlmcfg_desc_t _wlmaker_output_config_desc []
 

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,
uint32_t width,
uint32_t height,
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
width
height
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

Variable Documentation

◆ _wlmaker_output_config_desc

const wlmcfg_desc_t _wlmaker_output_config_desc[]
static
Initial value:
= {
WLMCFG_DESC_ENUM("Transformation", true, wlmaker_output_t, transformation,
WL_OUTPUT_TRANSFORM_NORMAL,
WLMCFG_DESC_DOUBLE("Scale", true, wlmaker_output_t, scale, 1.0),
}
#define WLMCFG_DESC_ENUM(_key, _required, _base, _field, _default, _desc_ptr)
Definition decode.h:204
#define WLMCFG_DESC_DOUBLE(_key, _required, _base, _field, _default)
Definition decode.h:177
static const wlmcfg_enum_desc_t _wlmaker_output_transformation_desc[]
Definition output.c:50
Definition output.h:41

Descriptor for the output configuration.

◆ _wlmaker_output_dict_name

const char* _wlmaker_output_dict_name = "Output"
static

Name of the plist dict describing the (default) output configuration.

◆ _wlmaker_output_transformation_desc

const wlmcfg_enum_desc_t _wlmaker_output_transformation_desc[]
static
Initial value:
= {
WLMCFG_ENUM("Normal", WL_OUTPUT_TRANSFORM_NORMAL),
WLMCFG_ENUM("Rotate90", WL_OUTPUT_TRANSFORM_90),
WLMCFG_ENUM("Rotate180", WL_OUTPUT_TRANSFORM_180),
WLMCFG_ENUM("Rotate270", WL_OUTPUT_TRANSFORM_270),
WLMCFG_ENUM("Flip", WL_OUTPUT_TRANSFORM_FLIPPED),
WLMCFG_ENUM("FlipAndRotate90", WL_OUTPUT_TRANSFORM_FLIPPED_90),
WLMCFG_ENUM("FlipAndRotate180", WL_OUTPUT_TRANSFORM_FLIPPED_180),
WLMCFG_ENUM("FlipAndRotate270", WL_OUTPUT_TRANSFORM_FLIPPED_270),
}
#define WLMCFG_ENUM_SENTINEL()
Definition decode.h:49
#define WLMCFG_ENUM(_name, _value)
Definition decode.h:52

Descriptor for output transformations.