|
wlmaker
|
#include <libbase/libbase.h>#include <libbase/plist.h>#include <stdbool.h>#include <stdint.h>#include <wayland-client-protocol.h>

Go to the source code of this file.
Classes | |
| struct | wlmbe_output_config_position_t |
| struct | wlmbe_output_config_mode_t |
| struct | wlmbe_output_description_t |
| struct | wlmbe_output_config_attributes_t |
Typedefs | |
| typedef struct _wlmbe_output_config_t | wlmbe_output_config_t |
Variables | |
| const bs_test_case_t | wlmbe_output_config_test_cases [] |
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 struct _wlmbe_output_config_t wlmbe_output_config_t |
Forward declaration.
| bs_dllist_node_t * wlmbe_dlnode_from_output_config | ( | wlmbe_output_config_t * | config_ptr | ) |
Returns the base pointer from the wlmbe_output_config_t::dlnode.
| void wlmbe_output_config_apply_attributes | ( | wlmbe_output_config_t * | config_ptr, |
| const wlmbe_output_config_attributes_t * | attributes_ptr | ||
| ) |
Applies attributes_ptr to the configuration. Respects presence flags.
| config_ptr | |
| attributes_ptr |
| const wlmbe_output_config_attributes_t * wlmbe_output_config_attributes | ( | wlmbe_output_config_t * | config_ptr | ) |
Returns pointer to wlmbe_output_config_t::attributes.
| wlmbe_output_config_t * wlmbe_output_config_create_from_plist | ( | bspl_dict_t * | dict_ptr | ) |
Creates a new output config from the plist dictionnary dict_ptr.
| dict_ptr |
| wlmbe_output_config_t * wlmbe_output_config_create_from_wlr | ( | struct wlr_output * | wlr_output_ptr | ) |
Creates a new output config from wlr_output.
| wlr_output_ptr |
| bspl_dict_t * wlmbe_output_config_create_into_plist | ( | const wlmbe_output_config_t * | config_ptr | ) |
Creates a plist dict from the output config.
| config_ptr |
| void wlmbe_output_config_destroy | ( | wlmbe_output_config_t * | config_ptr | ) |
Destroys the output configuration.
| bool wlmbe_output_config_equals | ( | bs_dllist_node_t * | dlnode_ptr, |
| void * | ud_ptr | ||
| ) |
Returns whether the backend configuration equals the wlr_output attributes.
| dlnode_ptr | To wlmbe_output_config_t::dlnode. |
| ud_ptr | To a struct wlr_output. |
| bool wlmbe_output_config_fnmatches | ( | bs_dllist_node_t * | dlnode_ptr, |
| void * | ud_ptr | ||
| ) |
Returns if the backend configuration fnmatches the wlr_output attributes.
| dlnode_ptr | To wlmbe_output_config_t::dlnode. |
| ud_ptr | To a struct wlr_output. |
| wlmbe_output_config_t * wlmbe_output_config_from_dlnode | ( | bs_dllist_node_t * | dlnode_ptr | ) |
Returns the base pointer from the wlmbe_output_config_t::dlnode.
| void wlmbe_output_config_update_attributes | ( | wlmbe_output_config_t * | config_ptr, |
| struct wlr_output * | wlr_output_ptr, | ||
| int | x, | ||
| int | y, | ||
| bool | has_position | ||
| ) |
Updates the attributes from wlr_output_ptr and the given position info.
| bool wlmbe_output_description_equals | ( | wlmbe_output_description_t * | desc_ptr, |
| struct wlr_output * | wlr_output_ptr | ||
| ) |
Returns whether the output description equals the wlr_output's attributes.
| desc_ptr | |
| wlr_output_ptr |
wlr_output_ptr, and (if present) their values are equal. | void wlmbe_output_description_fini | ( | wlmbe_output_description_t * | desc_ptr | ) |
Un-initializes the output description.
| struct wlr_output * wlmbe_output_description_first_fnmatch | ( | wlmbe_output_description_t * | desc_ptr, |
| struct wlr_output_layout * | wlr_output_layout_ptr | ||
| ) |
Returns the first wlr_output_layout output that matches desc_ptr.
| desc_ptr | |
| wlr_output_layout_ptr |
wlr_output found in wlr_output_layout_ptr that matches desc_ptr. See wlmbe_output_description_fnmatches for matching details. | bool wlmbe_output_description_fnmatches | ( | wlmbe_output_description_t * | desc_ptr, |
| struct wlr_output * | wlr_output_ptr | ||
| ) |
Returns whether the output description matches the wlr_output's attributes.
| desc_ptr | |
| wlr_output_ptr |
wlr_output field. | bool wlmbe_output_description_init_from_plist | ( | wlmbe_output_description_t * | desc_ptr, |
| bspl_dict_t * | dict_ptr | ||
| ) |
Initializes the output description from the plist dictionary.
| desc_ptr | |
| dict_ptr | Dictionary describing the output. It may contain keys and values beyond of what's described in _wlmbe_output_description_desc. |
|
extern |
Unit tests for the output module.