gfx/webrender_bindings/cbindgen.toml
author Michael Smith <michael@spinda.net>
Thu, 22 Jun 2017 15:31:32 -0700
changeset 372791 a179412ca028e816f367e2841f2afd91b472afe8
parent 369719 b8b85719bc59427964a1d393366e5dfc7f374deb
child 376681 24d91202ae28710254a5a9e8bb82e7ca4852da34
permissions -rw-r--r--
Bug 1373739 - Constrain widget size to screen size in headless mode. r=jrmuizel Every other widget backend ensures widget size is bounded to screen size, but this check was missing from headless. MozReview-Commit-ID: 6bKIAkdRxoO

header = """/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */"""
autogen_warning = """/* DO NOT MODIFY THIS MANUALLY! This file was generated using cbindgen.
 * To generate this file:
 *   1. Get the latest cbindgen using `cargo install --force cbindgen`
 *      a. Alternatively, you can clone `https://github.com/rlhunt/cbindgen` and use a tagged release
 *   2. Run `cbindgen toolkit/library/rust/ --crate webrender_bindings -o gfx/webrender_bindings/webrender_ffi_generated.h`
 */"""
include_version = true
braces = "SameLine"
line_length = 100
tab_width = 2
language = "C++"
namespaces = ["mozilla", "wr"]

[parse]
parse_deps = true
include = ["webrender", "webrender_api"]
expand = ["euclid"]

[fn]
prefix = "WR_INLINE"
postfix = "WR_FUNC"
args = "Vertical"
rename_args = "GeckoCase"

[struct]
derive_eq = true
generic_template_specialization = false

[enum]
add_sentinel = true