wlmaker
|
#include "config.h"
#include <libbase/libbase.h>
#include <libbase/plist.h>
#include <limits.h>
#include <stdbool.h>
#include <stdlib.h>
#include <wlr/types/wlr_keyboard.h>
#include "default_configuration.h"
#include "default_state.h"
#include "../etc/style.h"
Functions | |
static bspl_dict_t * | _wlmaker_config_from_plist (const char *fname_ptr) |
static bool | _wlmaker_config_decode_fill_style (bspl_object_t *object_ptr, void *dest_ptr) |
bspl_object_t * | wlmaker_plist_load (const char *name_ptr, const char *fname_ptr, const char **fname_defaults, const uint8_t *default_data_ptr, size_t default_data_size) |
bspl_dict_t * | wlmaker_config_load (const char *fname_ptr) |
bspl_dict_t * | wlmaker_state_load (const char *fname_ptr) |
static void | test_embedded (bs_test_t *test_ptr) |
static void | test_file (bs_test_t *test_ptr) |
static void | test_style_file (bs_test_t *test_ptr) |
static void | test_decode_fill (bs_test_t *test_ptr) |
static void | test_decode_font (bs_test_t *test_ptr) |
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.
Configurables for wlmaker. Currently, this file lists hardcoded entities, and mainly serves as a catalog about which entities should be dynamically configurable.
|
static |
Custom decoder for fill style struct from a plist dict.
object_ptr | |
dest_ptr |
|
static |
Loads a plist dict from fname_ptr. Returns NULL on error.
|
static |
Tests the decoder for the fill style.
|
static |
Tests the decoder for a font descriptor.
|
static |
Verifies that the embedded config loads.
|
static |
Verifies that the (example) config files are loading.
|
static |
Loads and decodes the style file.
bspl_dict_t * wlmaker_config_load | ( | const char * | fname_ptr | ) |
Loads the configuration for wlmaker.
If fname_ptr
is give, it will attempt to load the configuration from the specified file. Otherwise, it will attempt to load the files specified in _wlmaker_config_fname_ptrs, or (at last) use the built-in default.
fname_ptr | Optional: Name of the file to load it from. May be NULL. |
bspl_object_t * wlmaker_plist_load | ( | const char * | name_ptr, |
const char * | fname_ptr, | ||
const char ** | fname_defaults, | ||
const uint8_t * | default_data_ptr, | ||
size_t | default_data_size | ||
) |
Loads a plist object from the given file(s) or data.
Useful to load configuration files from (1) the expclitly provided name in fname_ptr
, (2) any of the files listed in fname_defaults
, or (3) an in-memory buffer, as a compiled-in fallback option.
name_ptr | Name to use when logging about the plist. |
fname_ptr | Explicit filename to use for loading the file, eg. from the commandline. Or NULL. |
fname_defaults | NULL-terminated list of pointers to default paths & filenames to use for searching plist file(s). |
default_data_ptr | Points to in-memory plist data, or NULL. Will be used if fname_ptr was NULL and no file was found at fname_defaults. |
default_data_size | The size of the in-memory plist data. |
bspl_dict_t * wlmaker_state_load | ( | const char * | fname_ptr | ) |
Loads the state for wlmaker.
Behaviour is similar to wlmaker_config_load.
fname_ptr |
|
static |
Descriptor for decoding the "Clip" dictionary.
|
static |
Plist decoding descriptor of the dock's style.
|
static |
Plist decoding descriptor of the fill style.
|
static |
Plist decoding descriptor of the fill type.
|
static |
Lookup paths for the configuration file. [LookupPathsConfig]
|
static |
Descriptor for decoding "Font" sections.
|
static |
Plist decoding descriptor for font weight.
|
static |
Plist decoding descriptor of a margin's style.
|
static |
Descriptor for decoding the "Item" dictionary.
|
static |
Descriptor for decoding the "Menu" dictionary.
|
static |
Plist decoding descriptor of a color gradient.
|
static |
Plist decoding descriptor of the solid color.
|
static |
Plist decoding descriptor of a tile style.
|
static |
Descroptor for decoding the "TitleBar" dict below "Window".
|
static |
Descriptor for decoding the "Window" dictionary.
|
static |
Descroptor for decoding the "TitleBar" dict below "Window".
|
static |
Descriptor for decoding the "Cursor" dictionary.
|
static |
[LookupPathsConfig] Lookup paths for the configuration file.
|
static |
Descriptor for decoding the "TaskList" dictionary.
const float config_output_scale = 1.0 |
Overall scale of output.
const bspl_desc_t wlmaker_config_style_desc[] |
Desciptor for decoding the style information from a plist.
const bs_test_case_t wlmaker_config_test_cases[] |
Unit test cases.