diff --git a/AUTHORS b/AUTHORS index 9ec0ff6f61..e5986b5850 100644 --- a/AUTHORS +++ b/AUTHORS @@ -1,8 +1,9 @@ -# This is the list of Druid authors for copyright purposes. +# This is the list of Druid's significant contributors. # -# This does not necessarily list everyone who has contributed code, since in -# some cases, their employer may be the copyright holder. To see the full list -# of contributors, see the revision history in source control. +# This does not necessarily list everyone who has contributed code, +# especially since many employees of one corporation may be contributing. +# To see the full list of contributors, see the revision history in +# source control. Google LLC Raph Levien Hilmar Gústafsson diff --git a/druid-derive/src/attr.rs b/druid-derive/src/attr.rs index 2b8135f401..dcc2836e01 100644 --- a/druid-derive/src/attr.rs +++ b/druid-derive/src/attr.rs @@ -1,16 +1,5 @@ -// Copyright 2019 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2019 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! parsing #[druid(attributes)] diff --git a/druid-derive/src/data.rs b/druid-derive/src/data.rs index a126786df0..3f53efe0ab 100644 --- a/druid-derive/src/data.rs +++ b/druid-derive/src/data.rs @@ -1,16 +1,5 @@ -// Copyright 2019 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2019 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! The implementation for #[derive(Data)] diff --git a/druid-derive/src/lens.rs b/druid-derive/src/lens.rs index 42abebec06..7d0a749e6c 100644 --- a/druid-derive/src/lens.rs +++ b/druid-derive/src/lens.rs @@ -1,16 +1,5 @@ -// Copyright 2019 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2019 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 use super::attr::{FieldKind, Fields, LensAttrs}; use proc_macro2::{Ident, Span}; diff --git a/druid-derive/src/lib.rs b/druid-derive/src/lib.rs index ee4bf1dd21..2decaf4ebe 100644 --- a/druid-derive/src/lib.rs +++ b/druid-derive/src/lib.rs @@ -1,16 +1,5 @@ -// Copyright 2019 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2019 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! derive macros for Druid. diff --git a/druid-derive/tests/data.rs b/druid-derive/tests/data.rs index 788cb72a45..65967af756 100644 --- a/druid-derive/tests/data.rs +++ b/druid-derive/tests/data.rs @@ -1,16 +1,5 @@ -// Copyright 2019 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2019 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! Test #[derive(Data)] diff --git a/druid-derive/tests/ignore.rs b/druid-derive/tests/ignore.rs index 533bc13405..ba08ffe033 100644 --- a/druid-derive/tests/ignore.rs +++ b/druid-derive/tests/ignore.rs @@ -1,16 +1,5 @@ -// Copyright 2019 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2019 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! testing the ignore attribute diff --git a/druid-derive/tests/lens_generic.rs b/druid-derive/tests/lens_generic.rs index 680342285c..37d786ae58 100644 --- a/druid-derive/tests/lens_generic.rs +++ b/druid-derive/tests/lens_generic.rs @@ -1,16 +1,5 @@ -// Copyright 2020 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2020 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 use druid::{Lens, LensExt}; use std::fmt::Debug; diff --git a/druid-derive/tests/ui.rs b/druid-derive/tests/ui.rs index baf63161c2..aa2fe10815 100644 --- a/druid-derive/tests/ui.rs +++ b/druid-derive/tests/ui.rs @@ -1,16 +1,5 @@ -// Copyright 2021 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2021 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 // https://github.com/dtolnay/trybuild // trybuild is a crate that essentially runs cargo on the provided files, and checks the output. diff --git a/druid-derive/tests/with_lens.rs b/druid-derive/tests/with_lens.rs index 930732516c..9b243434d6 100644 --- a/druid-derive/tests/with_lens.rs +++ b/druid-derive/tests/with_lens.rs @@ -1,16 +1,5 @@ -// Copyright 2020 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2020 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 use float_cmp::assert_approx_eq; diff --git a/druid-derive/tests/with_same.rs b/druid-derive/tests/with_same.rs index 123d641fe0..7255528d66 100644 --- a/druid-derive/tests/with_same.rs +++ b/druid-derive/tests/with_same.rs @@ -1,16 +1,5 @@ -// Copyright 2019 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2019 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 use druid::Data; diff --git a/druid-shell/build.rs b/druid-shell/build.rs index b738c801bc..efe1ac76ea 100644 --- a/druid-shell/build.rs +++ b/druid-shell/build.rs @@ -1,16 +1,5 @@ -// Copyright 2021 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2021 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 #[cfg(not(any(feature = "x11", feature = "wayland")))] fn main() {} diff --git a/druid-shell/examples/edit_text.rs b/druid-shell/examples/edit_text.rs index 351a62bbb0..345d4b0a5b 100644 --- a/druid-shell/examples/edit_text.rs +++ b/druid-shell/examples/edit_text.rs @@ -1,16 +1,5 @@ -// Copyright 2020 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2020 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! This example shows a how a single-line text field might be implemented for `druid-shell`. //! Beyond the omission of multiple lines and text wrapping, it also is missing many motions diff --git a/druid-shell/examples/invalidate.rs b/druid-shell/examples/invalidate.rs index b3564a688b..61b6959488 100644 --- a/druid-shell/examples/invalidate.rs +++ b/druid-shell/examples/invalidate.rs @@ -1,16 +1,5 @@ -// Copyright 2020 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2020 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 use std::any::Any; diff --git a/druid-shell/examples/perftest.rs b/druid-shell/examples/perftest.rs index 7c7e4563a2..1e0b2d3f6a 100644 --- a/druid-shell/examples/perftest.rs +++ b/druid-shell/examples/perftest.rs @@ -1,16 +1,5 @@ -// Copyright 2018 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2018 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 use std::any::Any; diff --git a/druid-shell/examples/quit.rs b/druid-shell/examples/quit.rs index b77b2ab037..7bb0e37e2f 100644 --- a/druid-shell/examples/quit.rs +++ b/druid-shell/examples/quit.rs @@ -1,16 +1,5 @@ -// Copyright 2020 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2020 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 use std::any::Any; diff --git a/druid-shell/examples/shello.rs b/druid-shell/examples/shello.rs index 8bb97b143f..1104f3ddc8 100644 --- a/druid-shell/examples/shello.rs +++ b/druid-shell/examples/shello.rs @@ -1,16 +1,5 @@ -// Copyright 2018 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2018 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 use std::any::Any; diff --git a/druid-shell/src/application.rs b/druid-shell/src/application.rs index 7df4a03e87..97483f6e39 100644 --- a/druid-shell/src/application.rs +++ b/druid-shell/src/application.rs @@ -1,16 +1,5 @@ -// Copyright 2019 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2019 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! The top-level application type. diff --git a/druid-shell/src/backend/gtk/application.rs b/druid-shell/src/backend/gtk/application.rs index 9a1c9c3929..d8756044b1 100644 --- a/druid-shell/src/backend/gtk/application.rs +++ b/druid-shell/src/backend/gtk/application.rs @@ -1,16 +1,5 @@ -// Copyright 2019 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2019 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! GTK implementation of features at the application scope. diff --git a/druid-shell/src/backend/gtk/clipboard.rs b/druid-shell/src/backend/gtk/clipboard.rs index 04422b0eb2..d95346b49b 100644 --- a/druid-shell/src/backend/gtk/clipboard.rs +++ b/druid-shell/src/backend/gtk/clipboard.rs @@ -1,16 +1,5 @@ -// Copyright 2019 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2019 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! Interactions with the system pasteboard on GTK+. diff --git a/druid-shell/src/backend/gtk/dialog.rs b/druid-shell/src/backend/gtk/dialog.rs index 7114e4dc26..e2b14f575e 100644 --- a/druid-shell/src/backend/gtk/dialog.rs +++ b/druid-shell/src/backend/gtk/dialog.rs @@ -1,16 +1,5 @@ -// Copyright 2019 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2019 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! File open/save dialogs, GTK implementation. diff --git a/druid-shell/src/backend/gtk/error.rs b/druid-shell/src/backend/gtk/error.rs index 6a2f699acc..0a3c0ed1ad 100644 --- a/druid-shell/src/backend/gtk/error.rs +++ b/druid-shell/src/backend/gtk/error.rs @@ -1,16 +1,5 @@ -// Copyright 2019 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2019 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! GTK backend errors. diff --git a/druid-shell/src/backend/gtk/keycodes.rs b/druid-shell/src/backend/gtk/keycodes.rs index ef14066c7e..2a934438ef 100644 --- a/druid-shell/src/backend/gtk/keycodes.rs +++ b/druid-shell/src/backend/gtk/keycodes.rs @@ -1,16 +1,5 @@ -// Copyright 2019 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2019 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! GTK code handling. diff --git a/druid-shell/src/backend/gtk/menu.rs b/druid-shell/src/backend/gtk/menu.rs index 15eb60f43f..2c2ca9ecd4 100644 --- a/druid-shell/src/backend/gtk/menu.rs +++ b/druid-shell/src/backend/gtk/menu.rs @@ -1,16 +1,5 @@ -// Copyright 2019 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2019 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! GTK implementation of menus. diff --git a/druid-shell/src/backend/gtk/mod.rs b/druid-shell/src/backend/gtk/mod.rs index 0ab0b7b863..9d3357b4a1 100644 --- a/druid-shell/src/backend/gtk/mod.rs +++ b/druid-shell/src/backend/gtk/mod.rs @@ -1,16 +1,5 @@ -// Copyright 2019 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2019 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! GTK-based backend support diff --git a/druid-shell/src/backend/gtk/screen.rs b/druid-shell/src/backend/gtk/screen.rs index 03333ba530..7c6ba6c7fc 100644 --- a/druid-shell/src/backend/gtk/screen.rs +++ b/druid-shell/src/backend/gtk/screen.rs @@ -1,16 +1,5 @@ -// Copyright 2020 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2020 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! GTK Monitors and Screen information. diff --git a/druid-shell/src/backend/gtk/util.rs b/druid-shell/src/backend/gtk/util.rs index f92dc11822..64c859c7bb 100644 --- a/druid-shell/src/backend/gtk/util.rs +++ b/druid-shell/src/backend/gtk/util.rs @@ -1,16 +1,5 @@ -// Copyright 2019 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2019 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! Utilities, GTK specific. diff --git a/druid-shell/src/backend/gtk/window.rs b/druid-shell/src/backend/gtk/window.rs index 5e3ae2ff08..d75a97a681 100644 --- a/druid-shell/src/backend/gtk/window.rs +++ b/druid-shell/src/backend/gtk/window.rs @@ -1,16 +1,5 @@ -// Copyright 2019 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2019 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! GTK window creation and management. diff --git a/druid-shell/src/backend/mac/appkit.rs b/druid-shell/src/backend/mac/appkit.rs index d3966630a5..cf5ee89c07 100644 --- a/druid-shell/src/backend/mac/appkit.rs +++ b/druid-shell/src/backend/mac/appkit.rs @@ -1,16 +1,5 @@ -// Copyright 2020 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2020 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! macOS AppKit bindings. diff --git a/druid-shell/src/backend/mac/application.rs b/druid-shell/src/backend/mac/application.rs index 222ede5727..21d785146c 100644 --- a/druid-shell/src/backend/mac/application.rs +++ b/druid-shell/src/backend/mac/application.rs @@ -1,16 +1,5 @@ -// Copyright 2019 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2019 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! macOS implementation of features at the application scope. diff --git a/druid-shell/src/backend/mac/clipboard.rs b/druid-shell/src/backend/mac/clipboard.rs index 920660e261..e4b2ddbf35 100644 --- a/druid-shell/src/backend/mac/clipboard.rs +++ b/druid-shell/src/backend/mac/clipboard.rs @@ -1,16 +1,5 @@ -// Copyright 2019 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2019 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! Interactions with the system pasteboard on macOS. diff --git a/druid-shell/src/backend/mac/dialog.rs b/druid-shell/src/backend/mac/dialog.rs index eb88d308d2..519841bf79 100644 --- a/druid-shell/src/backend/mac/dialog.rs +++ b/druid-shell/src/backend/mac/dialog.rs @@ -1,16 +1,5 @@ -// Copyright 2019 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2019 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! File open/save dialogs, macOS implementation. diff --git a/druid-shell/src/backend/mac/error.rs b/druid-shell/src/backend/mac/error.rs index 290dc5a656..8bc014d7fa 100644 --- a/druid-shell/src/backend/mac/error.rs +++ b/druid-shell/src/backend/mac/error.rs @@ -1,16 +1,5 @@ -// Copyright 2019 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2019 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! macOS backend errors. diff --git a/druid-shell/src/backend/mac/keyboard.rs b/druid-shell/src/backend/mac/keyboard.rs index dd5b68fd33..1094591ae6 100644 --- a/druid-shell/src/backend/mac/keyboard.rs +++ b/druid-shell/src/backend/mac/keyboard.rs @@ -1,16 +1,5 @@ -// Copyright 2020 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2020 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! Conversion of backend keyboard event into cross-platform event. diff --git a/druid-shell/src/backend/mac/menu.rs b/druid-shell/src/backend/mac/menu.rs index 3d970210b7..6ee0bc7200 100644 --- a/druid-shell/src/backend/mac/menu.rs +++ b/druid-shell/src/backend/mac/menu.rs @@ -1,16 +1,5 @@ -// Copyright 2019 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2019 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! macOS implementation of menus. diff --git a/druid-shell/src/backend/mac/mod.rs b/druid-shell/src/backend/mac/mod.rs index 6832d1953f..1e55522a6d 100644 --- a/druid-shell/src/backend/mac/mod.rs +++ b/druid-shell/src/backend/mac/mod.rs @@ -1,16 +1,5 @@ -// Copyright 2019 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2019 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! macOS `druid-shell` backend. diff --git a/druid-shell/src/backend/mac/screen.rs b/druid-shell/src/backend/mac/screen.rs index c5de8e9d03..a6a1549cf8 100644 --- a/druid-shell/src/backend/mac/screen.rs +++ b/druid-shell/src/backend/mac/screen.rs @@ -1,16 +1,5 @@ -// Copyright 2020 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2020 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! macOS Monitors and Screen information. diff --git a/druid-shell/src/backend/mac/text_input.rs b/druid-shell/src/backend/mac/text_input.rs index 512f1c9d57..8b7583bcd1 100644 --- a/druid-shell/src/backend/mac/text_input.rs +++ b/druid-shell/src/backend/mac/text_input.rs @@ -1,16 +1,5 @@ -// Copyright 2020 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2020 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 // massive thanks to github.com/yvt and their project tcw3 (https://github.com/yvt/Stella2), which is some // of the most solid/well documented input method code for mac written in Rust that we've found. tcw3 was diff --git a/druid-shell/src/backend/mac/util.rs b/druid-shell/src/backend/mac/util.rs index 34541cd45a..e66be0fa76 100644 --- a/druid-shell/src/backend/mac/util.rs +++ b/druid-shell/src/backend/mac/util.rs @@ -1,16 +1,5 @@ -// Copyright 2019 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2019 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! Utilities, macOS specific. diff --git a/druid-shell/src/backend/mac/window.rs b/druid-shell/src/backend/mac/window.rs index 77bc1484a3..d8a280a5c9 100644 --- a/druid-shell/src/backend/mac/window.rs +++ b/druid-shell/src/backend/mac/window.rs @@ -1,16 +1,5 @@ -// Copyright 2019 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2019 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! macOS implementation of window creation. diff --git a/druid-shell/src/backend/mod.rs b/druid-shell/src/backend/mod.rs index eeb920842d..362f121c7f 100644 --- a/druid-shell/src/backend/mod.rs +++ b/druid-shell/src/backend/mod.rs @@ -1,16 +1,5 @@ -// Copyright 2019 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2019 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! Platform specific implementations. diff --git a/druid-shell/src/backend/shared/keyboard.rs b/druid-shell/src/backend/shared/keyboard.rs index 63972d7f94..9cb893b3b8 100644 --- a/druid-shell/src/backend/shared/keyboard.rs +++ b/druid-shell/src/backend/shared/keyboard.rs @@ -1,16 +1,5 @@ -// Copyright 2020 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2020 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! Keyboard logic that is shared by more than one backend. diff --git a/druid-shell/src/backend/shared/linux/env.rs b/druid-shell/src/backend/shared/linux/env.rs index d4dd1f3e02..43c34702ce 100644 --- a/druid-shell/src/backend/shared/linux/env.rs +++ b/druid-shell/src/backend/shared/linux/env.rs @@ -1,16 +1,5 @@ -// Copyright 2022 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2022 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 pub fn locale() -> String { fn locale_env_var(var: &str) -> Option { diff --git a/druid-shell/src/backend/shared/linux/mod.rs b/druid-shell/src/backend/shared/linux/mod.rs index 27aad76f75..461d4b9020 100644 --- a/druid-shell/src/backend/shared/linux/mod.rs +++ b/druid-shell/src/backend/shared/linux/mod.rs @@ -1,16 +1,5 @@ -// Copyright 2022 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2022 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 // environment based utilities pub mod env; diff --git a/druid-shell/src/backend/shared/mod.rs b/druid-shell/src/backend/shared/mod.rs index cdf4c2bf13..0f11a2c65a 100644 --- a/druid-shell/src/backend/shared/mod.rs +++ b/druid-shell/src/backend/shared/mod.rs @@ -1,16 +1,5 @@ -// Copyright 2020 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2020 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! Logic that is shared by more than one backend. diff --git a/druid-shell/src/backend/shared/timer.rs b/druid-shell/src/backend/shared/timer.rs index ce6c520c16..43c672bfbd 100644 --- a/druid-shell/src/backend/shared/timer.rs +++ b/druid-shell/src/backend/shared/timer.rs @@ -1,16 +1,5 @@ -// Copyright 2022 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2022 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 use crate::TimerToken; use std::{cmp::Ordering, time::Instant}; diff --git a/druid-shell/src/backend/shared/xkb/keycodes.rs b/druid-shell/src/backend/shared/xkb/keycodes.rs index f0ad5a8ee1..35a0fb6cd0 100644 --- a/druid-shell/src/backend/shared/xkb/keycodes.rs +++ b/druid-shell/src/backend/shared/xkb/keycodes.rs @@ -1,16 +1,5 @@ -// Copyright 2020 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2020 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 #![allow(non_upper_case_globals)] diff --git a/druid-shell/src/backend/shared/xkb/mod.rs b/druid-shell/src/backend/shared/xkb/mod.rs index e4cf233735..0499b631ff 100644 --- a/druid-shell/src/backend/shared/xkb/mod.rs +++ b/druid-shell/src/backend/shared/xkb/mod.rs @@ -1,16 +1,5 @@ -// Copyright 2021 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2021 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! A minimal wrapper around Xkb for our use. diff --git a/druid-shell/src/backend/shared/xkb/xkbcommon_sys.rs b/druid-shell/src/backend/shared/xkb/xkbcommon_sys.rs index 1f8bc90932..87a547e44c 100644 --- a/druid-shell/src/backend/shared/xkb/xkbcommon_sys.rs +++ b/druid-shell/src/backend/shared/xkb/xkbcommon_sys.rs @@ -1,16 +1,5 @@ -// Copyright 2021 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2021 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 #![allow(unused, non_upper_case_globals, non_camel_case_types, non_snake_case)] // unknown lints to make compile on older rust versions diff --git a/druid-shell/src/backend/wayland/application.rs b/druid-shell/src/backend/wayland/application.rs index fdb743c254..fb30823d88 100644 --- a/druid-shell/src/backend/wayland/application.rs +++ b/druid-shell/src/backend/wayland/application.rs @@ -1,16 +1,5 @@ -// Copyright 2019 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2019 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 #![allow(clippy::single_match)] diff --git a/druid-shell/src/backend/wayland/clipboard.rs b/druid-shell/src/backend/wayland/clipboard.rs index 2ad9c20f00..9878f0be16 100644 --- a/druid-shell/src/backend/wayland/clipboard.rs +++ b/druid-shell/src/backend/wayland/clipboard.rs @@ -1,16 +1,5 @@ -// Copyright 2019 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2019 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! Interactions with the system pasteboard on wayland compositors. use super::application; diff --git a/druid-shell/src/backend/wayland/display.rs b/druid-shell/src/backend/wayland/display.rs index 459578af7a..f1bebd2b46 100644 --- a/druid-shell/src/backend/wayland/display.rs +++ b/druid-shell/src/backend/wayland/display.rs @@ -1,16 +1,5 @@ -// Copyright 2022 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2022 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 #![allow(clippy::single_match)] use super::error; diff --git a/druid-shell/src/backend/wayland/error.rs b/druid-shell/src/backend/wayland/error.rs index b7074b319b..f246799aa7 100644 --- a/druid-shell/src/backend/wayland/error.rs +++ b/druid-shell/src/backend/wayland/error.rs @@ -1,16 +1,5 @@ -// Copyright 2019 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2019 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! wayland platform errors. diff --git a/druid-shell/src/backend/wayland/events.rs b/druid-shell/src/backend/wayland/events.rs index 6ca23b4b25..a7519a72e1 100644 --- a/druid-shell/src/backend/wayland/events.rs +++ b/druid-shell/src/backend/wayland/events.rs @@ -1,16 +1,5 @@ -// Copyright 2022 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2022 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! Multiplexing events. //! diff --git a/druid-shell/src/backend/wayland/keyboard.rs b/druid-shell/src/backend/wayland/keyboard.rs index 4b55c3d8a1..53b91c362c 100644 --- a/druid-shell/src/backend/wayland/keyboard.rs +++ b/druid-shell/src/backend/wayland/keyboard.rs @@ -1,16 +1,5 @@ -// Copyright 2022 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2022 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 use std::convert::TryInto; use wayland_client as wlc; diff --git a/druid-shell/src/backend/wayland/menu.rs b/druid-shell/src/backend/wayland/menu.rs index da5cc97a04..fa5ade88d2 100644 --- a/druid-shell/src/backend/wayland/menu.rs +++ b/druid-shell/src/backend/wayland/menu.rs @@ -1,16 +1,5 @@ -// Copyright 2019 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2019 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 #![allow(unused)] use super::window::WindowHandle; diff --git a/druid-shell/src/backend/wayland/mod.rs b/druid-shell/src/backend/wayland/mod.rs index 9af3b48d37..7f7d3a41c5 100644 --- a/druid-shell/src/backend/wayland/mod.rs +++ b/druid-shell/src/backend/wayland/mod.rs @@ -1,16 +1,5 @@ -// Copyright 2019 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2019 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! wayland platform support diff --git a/druid-shell/src/backend/wayland/outputs/mod.rs b/druid-shell/src/backend/wayland/outputs/mod.rs index 7ec47ca00e..239ede7271 100644 --- a/druid-shell/src/backend/wayland/outputs/mod.rs +++ b/druid-shell/src/backend/wayland/outputs/mod.rs @@ -1,16 +1,5 @@ -// Copyright 2022 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2022 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 use wayland_client as wlc; use wayland_client::protocol::wl_output; diff --git a/druid-shell/src/backend/wayland/outputs/output.rs b/druid-shell/src/backend/wayland/outputs/output.rs index f69a26d6c1..4082676e82 100644 --- a/druid-shell/src/backend/wayland/outputs/output.rs +++ b/druid-shell/src/backend/wayland/outputs/output.rs @@ -1,16 +1,5 @@ -// Copyright 2022 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2022 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 use super::super::display; use super::super::error; diff --git a/druid-shell/src/backend/wayland/pointers.rs b/druid-shell/src/backend/wayland/pointers.rs index fc2039ad15..83fd708117 100644 --- a/druid-shell/src/backend/wayland/pointers.rs +++ b/druid-shell/src/backend/wayland/pointers.rs @@ -1,16 +1,5 @@ -// Copyright 2022 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2022 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 use std::collections::VecDeque; use wayland_client::protocol::wl_pointer; diff --git a/druid-shell/src/backend/wayland/screen.rs b/druid-shell/src/backend/wayland/screen.rs index 512bc90508..37b6138297 100644 --- a/druid-shell/src/backend/wayland/screen.rs +++ b/druid-shell/src/backend/wayland/screen.rs @@ -1,16 +1,5 @@ -// Copyright 2020 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2020 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! wayland Monitors and Screen information. diff --git a/druid-shell/src/backend/wayland/surfaces/buffers.rs b/druid-shell/src/backend/wayland/surfaces/buffers.rs index a69640f984..9eff7bfbf5 100644 --- a/druid-shell/src/backend/wayland/surfaces/buffers.rs +++ b/druid-shell/src/backend/wayland/surfaces/buffers.rs @@ -1,16 +1,5 @@ -// Copyright 2022 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2022 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 use crate::kurbo::{Rect, Size}; use nix::{ diff --git a/druid-shell/src/backend/wayland/surfaces/idle.rs b/druid-shell/src/backend/wayland/surfaces/idle.rs index 6cc75eb6eb..c59054a48e 100644 --- a/druid-shell/src/backend/wayland/surfaces/idle.rs +++ b/druid-shell/src/backend/wayland/surfaces/idle.rs @@ -1,16 +1,5 @@ -// Copyright 2022 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2022 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 use crate::common_util::IdleCallback; use crate::window; diff --git a/druid-shell/src/backend/wayland/surfaces/layershell.rs b/druid-shell/src/backend/wayland/surfaces/layershell.rs index 4cf01b0ea0..82030854b3 100644 --- a/druid-shell/src/backend/wayland/surfaces/layershell.rs +++ b/druid-shell/src/backend/wayland/surfaces/layershell.rs @@ -1,16 +1,5 @@ -// Copyright 2022 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2022 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 use wayland_client as wlc; use wayland_protocols::wlr::unstable::layer_shell::v1::client as layershell; diff --git a/druid-shell/src/backend/wayland/surfaces/mod.rs b/druid-shell/src/backend/wayland/surfaces/mod.rs index ef9b462f9a..5633bdaf67 100644 --- a/druid-shell/src/backend/wayland/surfaces/mod.rs +++ b/druid-shell/src/backend/wayland/surfaces/mod.rs @@ -1,16 +1,5 @@ -// Copyright 2022 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2022 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 use wayland_client::protocol::wl_shm::WlShm; use wayland_client::{self as wlc, protocol::wl_region::WlRegion, protocol::wl_surface::WlSurface}; diff --git a/druid-shell/src/backend/wayland/surfaces/popup.rs b/druid-shell/src/backend/wayland/surfaces/popup.rs index fd411666aa..bb5277a855 100644 --- a/druid-shell/src/backend/wayland/surfaces/popup.rs +++ b/druid-shell/src/backend/wayland/surfaces/popup.rs @@ -1,16 +1,5 @@ -// Copyright 2022 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2022 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 use wayland_client as wlc; use wayland_protocols::xdg_shell::client::xdg_popup; diff --git a/druid-shell/src/backend/wayland/surfaces/surface.rs b/druid-shell/src/backend/wayland/surfaces/surface.rs index 1213fda2dc..e215ce13b1 100644 --- a/druid-shell/src/backend/wayland/surfaces/surface.rs +++ b/druid-shell/src/backend/wayland/surfaces/surface.rs @@ -1,16 +1,5 @@ -// Copyright 2022 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2022 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 use std::cell::{Cell, RefCell}; use std::rc::Rc; diff --git a/druid-shell/src/backend/wayland/surfaces/toplevel.rs b/druid-shell/src/backend/wayland/surfaces/toplevel.rs index 17fccc735d..c50b8d2a3c 100644 --- a/druid-shell/src/backend/wayland/surfaces/toplevel.rs +++ b/druid-shell/src/backend/wayland/surfaces/toplevel.rs @@ -1,16 +1,5 @@ -// Copyright 2022 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2022 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 use wayland_client as wlc; use wayland_protocols::xdg_shell::client::xdg_surface; diff --git a/druid-shell/src/backend/wayland/window.rs b/druid-shell/src/backend/wayland/window.rs index 3a7df3fdde..52b0e8ceef 100644 --- a/druid-shell/src/backend/wayland/window.rs +++ b/druid-shell/src/backend/wayland/window.rs @@ -1,16 +1,5 @@ -// Copyright 2022 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2022 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 #![allow(clippy::single_match)] diff --git a/druid-shell/src/backend/web/application.rs b/druid-shell/src/backend/web/application.rs index 51669d4a11..0af45c53ff 100644 --- a/druid-shell/src/backend/web/application.rs +++ b/druid-shell/src/backend/web/application.rs @@ -1,16 +1,5 @@ -// Copyright 2020 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2020 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! Web implementation of features at the application scope. diff --git a/druid-shell/src/backend/web/clipboard.rs b/druid-shell/src/backend/web/clipboard.rs index 76cd2fd755..2cdb43050d 100644 --- a/druid-shell/src/backend/web/clipboard.rs +++ b/druid-shell/src/backend/web/clipboard.rs @@ -1,16 +1,5 @@ -// Copyright 2020 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2020 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! Interactions with the browser pasteboard. diff --git a/druid-shell/src/backend/web/error.rs b/druid-shell/src/backend/web/error.rs index f318564f89..47b0ff9ab8 100644 --- a/druid-shell/src/backend/web/error.rs +++ b/druid-shell/src/backend/web/error.rs @@ -1,16 +1,5 @@ -// Copyright 2020 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2020 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! Web backend errors. diff --git a/druid-shell/src/backend/web/keycodes.rs b/druid-shell/src/backend/web/keycodes.rs index 09bbff8f48..7102c3e743 100644 --- a/druid-shell/src/backend/web/keycodes.rs +++ b/druid-shell/src/backend/web/keycodes.rs @@ -1,16 +1,5 @@ -// Copyright 2020 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2020 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! Web keycode handling. diff --git a/druid-shell/src/backend/web/menu.rs b/druid-shell/src/backend/web/menu.rs index ccd58ed281..4324882d70 100644 --- a/druid-shell/src/backend/web/menu.rs +++ b/druid-shell/src/backend/web/menu.rs @@ -1,16 +1,5 @@ -// Copyright 2020 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2020 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! Safe wrapper for menus. diff --git a/druid-shell/src/backend/web/mod.rs b/druid-shell/src/backend/web/mod.rs index f8968c0773..78dfc9832b 100644 --- a/druid-shell/src/backend/web/mod.rs +++ b/druid-shell/src/backend/web/mod.rs @@ -1,16 +1,5 @@ -// Copyright 2020 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2020 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! Web-based backend support diff --git a/druid-shell/src/backend/web/screen.rs b/druid-shell/src/backend/web/screen.rs index 0da80f8cad..a8119e9dfb 100644 --- a/druid-shell/src/backend/web/screen.rs +++ b/druid-shell/src/backend/web/screen.rs @@ -1,16 +1,5 @@ -// Copyright 2020 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2020 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! Monitor and Screen information ignored for web. diff --git a/druid-shell/src/backend/web/window.rs b/druid-shell/src/backend/web/window.rs index 5baec562bb..945733fcbc 100644 --- a/druid-shell/src/backend/web/window.rs +++ b/druid-shell/src/backend/web/window.rs @@ -1,16 +1,5 @@ -// Copyright 2020 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2020 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! Web window creation and management. diff --git a/druid-shell/src/backend/windows/accels.rs b/druid-shell/src/backend/windows/accels.rs index 7e3ee5f122..b8a1a30c02 100644 --- a/druid-shell/src/backend/windows/accels.rs +++ b/druid-shell/src/backend/windows/accels.rs @@ -1,16 +1,5 @@ -// Copyright 2019 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2019 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! Wrappers for Windows of Accelerate Table. diff --git a/druid-shell/src/backend/windows/application.rs b/druid-shell/src/backend/windows/application.rs index d911154bad..b584b62a83 100644 --- a/druid-shell/src/backend/windows/application.rs +++ b/druid-shell/src/backend/windows/application.rs @@ -1,16 +1,5 @@ -// Copyright 2019 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2019 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! Windows implementation of features at the application scope. diff --git a/druid-shell/src/backend/windows/clipboard.rs b/druid-shell/src/backend/windows/clipboard.rs index 327d9bbc39..804adbde73 100644 --- a/druid-shell/src/backend/windows/clipboard.rs +++ b/druid-shell/src/backend/windows/clipboard.rs @@ -1,16 +1,5 @@ -// Copyright 2019 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2019 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! Interactions with the system pasteboard on Windows. diff --git a/druid-shell/src/backend/windows/dcomp.rs b/druid-shell/src/backend/windows/dcomp.rs index 9a57de325f..4a1b97cbe0 100644 --- a/druid-shell/src/backend/windows/dcomp.rs +++ b/druid-shell/src/backend/windows/dcomp.rs @@ -1,16 +1,5 @@ -// Copyright 2018 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2018 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! Safe-ish wrappers for DirectComposition and related interfaces. diff --git a/druid-shell/src/backend/windows/dialog.rs b/druid-shell/src/backend/windows/dialog.rs index 2dd761683e..33a6e9b499 100644 --- a/druid-shell/src/backend/windows/dialog.rs +++ b/druid-shell/src/backend/windows/dialog.rs @@ -1,16 +1,5 @@ -// Copyright 2018 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2018 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! File open/save dialogs, Windows implementation. //! diff --git a/druid-shell/src/backend/windows/error.rs b/druid-shell/src/backend/windows/error.rs index d6e641aacc..e964bf3830 100644 --- a/druid-shell/src/backend/windows/error.rs +++ b/druid-shell/src/backend/windows/error.rs @@ -1,16 +1,5 @@ -// Copyright 2019 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2019 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! Errors at the application shell level. diff --git a/druid-shell/src/backend/windows/keyboard.rs b/druid-shell/src/backend/windows/keyboard.rs index c81d320bc3..319f0667ba 100644 --- a/druid-shell/src/backend/windows/keyboard.rs +++ b/druid-shell/src/backend/windows/keyboard.rs @@ -1,16 +1,5 @@ -// Copyright 2020 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2020 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! Key event handling. diff --git a/druid-shell/src/backend/windows/keycodes.rs b/druid-shell/src/backend/windows/keycodes.rs index f14d620124..11f531219d 100644 --- a/druid-shell/src/backend/windows/keycodes.rs +++ b/druid-shell/src/backend/windows/keycodes.rs @@ -1,16 +1,5 @@ -// Copyright 2019 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2019 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! Windows keycode conversion. diff --git a/druid-shell/src/backend/windows/menu.rs b/druid-shell/src/backend/windows/menu.rs index e9fd0bd529..3115c15daf 100644 --- a/druid-shell/src/backend/windows/menu.rs +++ b/druid-shell/src/backend/windows/menu.rs @@ -1,16 +1,5 @@ -// Copyright 2018 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2018 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! Safe wrapper for menus. diff --git a/druid-shell/src/backend/windows/mod.rs b/druid-shell/src/backend/windows/mod.rs index 28ddcf8122..15f6297778 100644 --- a/druid-shell/src/backend/windows/mod.rs +++ b/druid-shell/src/backend/windows/mod.rs @@ -1,16 +1,5 @@ -// Copyright 2018 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2018 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! Windows implementation of `druid-shell`. diff --git a/druid-shell/src/backend/windows/paint.rs b/druid-shell/src/backend/windows/paint.rs index 56298cf5ba..8f3f004517 100644 --- a/druid-shell/src/backend/windows/paint.rs +++ b/druid-shell/src/backend/windows/paint.rs @@ -1,16 +1,5 @@ -// Copyright 2017 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2017 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! Bureaucracy to create render targets for painting. //! diff --git a/druid-shell/src/backend/windows/screen.rs b/druid-shell/src/backend/windows/screen.rs index 67da1c9f01..e205ac718a 100644 --- a/druid-shell/src/backend/windows/screen.rs +++ b/druid-shell/src/backend/windows/screen.rs @@ -1,16 +1,5 @@ -// Copyright 2020 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2020 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! Windows Monitors and Screen information. diff --git a/druid-shell/src/backend/windows/timers.rs b/druid-shell/src/backend/windows/timers.rs index 1ebf5af2f3..aa63a99d70 100644 --- a/druid-shell/src/backend/windows/timers.rs +++ b/druid-shell/src/backend/windows/timers.rs @@ -1,16 +1,5 @@ -// Copyright 2019 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2019 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! Timer state. diff --git a/druid-shell/src/backend/windows/util.rs b/druid-shell/src/backend/windows/util.rs index 58e0e8a48b..752b0670cb 100644 --- a/druid-shell/src/backend/windows/util.rs +++ b/druid-shell/src/backend/windows/util.rs @@ -1,16 +1,5 @@ -// Copyright 2017 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2017 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! Various utilities for working with windows. Includes utilities for converting between Windows //! and Rust types, including strings. diff --git a/druid-shell/src/backend/windows/window.rs b/druid-shell/src/backend/windows/window.rs index 2b671b29b0..7cfb29ff09 100644 --- a/druid-shell/src/backend/windows/window.rs +++ b/druid-shell/src/backend/windows/window.rs @@ -1,16 +1,5 @@ -// Copyright 2018 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2018 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! Creation and management of windows. diff --git a/druid-shell/src/backend/x11/application.rs b/druid-shell/src/backend/x11/application.rs index d58cee1391..a7bb3970ec 100644 --- a/druid-shell/src/backend/x11/application.rs +++ b/druid-shell/src/backend/x11/application.rs @@ -1,16 +1,5 @@ -// Copyright 2020 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2020 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! X11 implementation of features at the application scope. diff --git a/druid-shell/src/backend/x11/clipboard.rs b/druid-shell/src/backend/x11/clipboard.rs index 035eb56f97..0c585aac7c 100644 --- a/druid-shell/src/backend/x11/clipboard.rs +++ b/druid-shell/src/backend/x11/clipboard.rs @@ -1,16 +1,5 @@ -// Copyright 2020 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2020 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! Interactions with the system pasteboard on X11. diff --git a/druid-shell/src/backend/x11/dialog.rs b/druid-shell/src/backend/x11/dialog.rs index a0eb256bfd..bda790ae9c 100644 --- a/druid-shell/src/backend/x11/dialog.rs +++ b/druid-shell/src/backend/x11/dialog.rs @@ -1,16 +1,5 @@ -// Copyright 2022 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2022 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! This module contains functions for opening file dialogs using DBus. diff --git a/druid-shell/src/backend/x11/error.rs b/druid-shell/src/backend/x11/error.rs index ef23cdb86c..25ba822a18 100644 --- a/druid-shell/src/backend/x11/error.rs +++ b/druid-shell/src/backend/x11/error.rs @@ -1,16 +1,5 @@ -// Copyright 2020 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2020 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! Errors at the application shell level. diff --git a/druid-shell/src/backend/x11/menu.rs b/druid-shell/src/backend/x11/menu.rs index b19ea7810d..19cc161be2 100644 --- a/druid-shell/src/backend/x11/menu.rs +++ b/druid-shell/src/backend/x11/menu.rs @@ -1,16 +1,5 @@ -// Copyright 2020 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2020 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! X11 menus implementation. diff --git a/druid-shell/src/backend/x11/mod.rs b/druid-shell/src/backend/x11/mod.rs index 388f1e38b4..953ca85a05 100644 --- a/druid-shell/src/backend/x11/mod.rs +++ b/druid-shell/src/backend/x11/mod.rs @@ -1,16 +1,5 @@ -// Copyright 2020 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2020 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! X11 implementation of `druid-shell`. diff --git a/druid-shell/src/backend/x11/screen.rs b/druid-shell/src/backend/x11/screen.rs index fbd27558bc..22a7c0cafd 100644 --- a/druid-shell/src/backend/x11/screen.rs +++ b/druid-shell/src/backend/x11/screen.rs @@ -1,16 +1,5 @@ -// Copyright 2020 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2020 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! X11 Monitors and Screen information. diff --git a/druid-shell/src/backend/x11/util.rs b/druid-shell/src/backend/x11/util.rs index 714bc4d355..00785c4adc 100644 --- a/druid-shell/src/backend/x11/util.rs +++ b/druid-shell/src/backend/x11/util.rs @@ -1,16 +1,5 @@ -// Copyright 2020 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2020 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! Miscellaneous utility functions for working with X11. diff --git a/druid-shell/src/backend/x11/window.rs b/druid-shell/src/backend/x11/window.rs index 162c4862cc..2d7a0c5eb1 100644 --- a/druid-shell/src/backend/x11/window.rs +++ b/druid-shell/src/backend/x11/window.rs @@ -1,16 +1,5 @@ -// Copyright 2020 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2020 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! X11 window creation and window management. diff --git a/druid-shell/src/clipboard.rs b/druid-shell/src/clipboard.rs index 099a3e5766..5a14f6ed9f 100644 --- a/druid-shell/src/clipboard.rs +++ b/druid-shell/src/clipboard.rs @@ -1,16 +1,5 @@ -// Copyright 2019 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2019 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! Interacting with the system pasteboard/clipboard. pub use crate::backend::clipboard as backend; diff --git a/druid-shell/src/common_util.rs b/druid-shell/src/common_util.rs index c6467abde6..17c36809f9 100644 --- a/druid-shell/src/common_util.rs +++ b/druid-shell/src/common_util.rs @@ -1,16 +1,5 @@ -// Copyright 2019 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2019 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! Common functions used by the backends diff --git a/druid-shell/src/dialog.rs b/druid-shell/src/dialog.rs index d25734aa80..4a0c668b82 100644 --- a/druid-shell/src/dialog.rs +++ b/druid-shell/src/dialog.rs @@ -1,16 +1,5 @@ -// Copyright 2019 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2019 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! File open/save dialogs. diff --git a/druid-shell/src/error.rs b/druid-shell/src/error.rs index ba86906ebc..d53c7686ed 100644 --- a/druid-shell/src/error.rs +++ b/druid-shell/src/error.rs @@ -1,16 +1,5 @@ -// Copyright 2019 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2019 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! Errors at the application shell level. diff --git a/druid-shell/src/hotkey.rs b/druid-shell/src/hotkey.rs index f757eb95fd..0745680378 100644 --- a/druid-shell/src/hotkey.rs +++ b/druid-shell/src/hotkey.rs @@ -1,16 +1,5 @@ -// Copyright 2019 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2019 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! Hotkeys and helpers for parsing keyboard shortcuts. diff --git a/druid-shell/src/keyboard.rs b/druid-shell/src/keyboard.rs index ea482df9ee..1b05f2ec04 100644 --- a/druid-shell/src/keyboard.rs +++ b/druid-shell/src/keyboard.rs @@ -1,16 +1,5 @@ -// Copyright 2020 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2020 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! Keyboard types. diff --git a/druid-shell/src/lib.rs b/druid-shell/src/lib.rs index cc520991d5..b14e1410c9 100644 --- a/druid-shell/src/lib.rs +++ b/druid-shell/src/lib.rs @@ -1,16 +1,5 @@ -// Copyright 2018 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2018 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! Platform abstraction for Druid toolkit. //! diff --git a/druid-shell/src/menu.rs b/druid-shell/src/menu.rs index 175eb54fd5..be98f8904d 100644 --- a/druid-shell/src/menu.rs +++ b/druid-shell/src/menu.rs @@ -1,16 +1,5 @@ -// Copyright 2019 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2019 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 use crate::backend::menu as backend; use crate::hotkey::HotKey; diff --git a/druid-shell/src/mouse.rs b/druid-shell/src/mouse.rs index b280b895ed..474d718cb5 100644 --- a/druid-shell/src/mouse.rs +++ b/druid-shell/src/mouse.rs @@ -1,16 +1,5 @@ -// Copyright 2019 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2019 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! Common types for representing mouse events and state diff --git a/druid-shell/src/platform/linux.rs b/druid-shell/src/platform/linux.rs index 55e2dda348..dea8433042 100644 --- a/druid-shell/src/platform/linux.rs +++ b/druid-shell/src/platform/linux.rs @@ -1,16 +1,5 @@ -// Copyright 2021 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2021 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! Linux specific extensions. use crate::Clipboard; diff --git a/druid-shell/src/platform/mac.rs b/druid-shell/src/platform/mac.rs index 972a031999..1d3bdcd747 100644 --- a/druid-shell/src/platform/mac.rs +++ b/druid-shell/src/platform/mac.rs @@ -1,16 +1,5 @@ -// Copyright 2021 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2021 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! macOS specific extensions. diff --git a/druid-shell/src/platform/mod.rs b/druid-shell/src/platform/mod.rs index 2dd5c36071..3a196bd15a 100644 --- a/druid-shell/src/platform/mod.rs +++ b/druid-shell/src/platform/mod.rs @@ -1,16 +1,5 @@ -// Copyright 2021 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2021 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! Platorm specific extensions. diff --git a/druid-shell/src/region.rs b/druid-shell/src/region.rs index 158d123a9a..7e387da14d 100644 --- a/druid-shell/src/region.rs +++ b/druid-shell/src/region.rs @@ -1,16 +1,5 @@ -// Copyright 2020 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2020 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 use crate::kurbo::{BezPath, Point, Rect, Shape, Vec2}; diff --git a/druid-shell/src/scale.rs b/druid-shell/src/scale.rs index 14b5cee7f3..ef05b4fffb 100644 --- a/druid-shell/src/scale.rs +++ b/druid-shell/src/scale.rs @@ -1,16 +1,5 @@ -// Copyright 2020 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2020 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! Resolution scale related helpers. diff --git a/druid-shell/src/screen.rs b/druid-shell/src/screen.rs index 586f600aab..645d6fcae8 100644 --- a/druid-shell/src/screen.rs +++ b/druid-shell/src/screen.rs @@ -1,16 +1,5 @@ -// Copyright 2020 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2020 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! Module to get information about monitors diff --git a/druid-shell/src/text.rs b/druid-shell/src/text.rs index d79e95184a..305339754b 100644 --- a/druid-shell/src/text.rs +++ b/druid-shell/src/text.rs @@ -1,16 +1,5 @@ -// Copyright 2020 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2020 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! Types and functions for cross-platform text input. //! diff --git a/druid-shell/src/util.rs b/druid-shell/src/util.rs index f219e6a7e1..1d264d1a58 100644 --- a/druid-shell/src/util.rs +++ b/druid-shell/src/util.rs @@ -1,16 +1,5 @@ -// Copyright 2020 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2020 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! Utility functions for determining the main thread. diff --git a/druid-shell/src/window.rs b/druid-shell/src/window.rs index 125d567d63..4aabac13d3 100644 --- a/druid-shell/src/window.rs +++ b/druid-shell/src/window.rs @@ -1,16 +1,5 @@ -// Copyright 2018 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2018 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! Platform independent window types. diff --git a/druid/examples/anim.rs b/druid/examples/anim.rs index c3ceee9bf5..f416e68044 100644 --- a/druid/examples/anim.rs +++ b/druid/examples/anim.rs @@ -1,16 +1,5 @@ -// Copyright 2019 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2019 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! An example of an animating widget. It is just a widget that //! requests an animation frame when it needs to, and draws the frame in the diff --git a/druid/examples/async_event.rs b/druid/examples/async_event.rs index a33939cd5f..ae7e3c8653 100644 --- a/druid/examples/async_event.rs +++ b/druid/examples/async_event.rs @@ -1,16 +1,5 @@ -// Copyright 2020 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2020 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! An example of sending commands from another thread. //! This is useful when you want to have some kind of diff --git a/druid/examples/blocking_function.rs b/druid/examples/blocking_function.rs index 6326fb0541..f0952a918a 100644 --- a/druid/examples/blocking_function.rs +++ b/druid/examples/blocking_function.rs @@ -1,16 +1,5 @@ -// Copyright 2019 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2019 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! An example of a blocking function running in another thread. We give //! the other thread some data and then we also pass some data back diff --git a/druid/examples/calc.rs b/druid/examples/calc.rs index 8b58c25c8c..e00d7ce876 100644 --- a/druid/examples/calc.rs +++ b/druid/examples/calc.rs @@ -1,16 +1,5 @@ -// Copyright 2018 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2018 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! Simple calculator. diff --git a/druid/examples/cursor.rs b/druid/examples/cursor.rs index b8a88b9ebf..44376da774 100644 --- a/druid/examples/cursor.rs +++ b/druid/examples/cursor.rs @@ -1,16 +1,5 @@ -// Copyright 2020 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2020 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! An example showing how to change the mouse cursor. //! Clicking the button should switch your cursor, and diff --git a/druid/examples/custom_widget.rs b/druid/examples/custom_widget.rs index 0b7e87ebb6..a056713d8e 100644 --- a/druid/examples/custom_widget.rs +++ b/druid/examples/custom_widget.rs @@ -1,16 +1,5 @@ -// Copyright 2019 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2019 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! An example of a custom drawing widget. //! We draw an image, some text, a shape, and a curve. diff --git a/druid/examples/disabled.rs b/druid/examples/disabled.rs index ec0eec9c64..263176bb7a 100644 --- a/druid/examples/disabled.rs +++ b/druid/examples/disabled.rs @@ -1,16 +1,5 @@ -// Copyright 2021 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2021 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! An example showing the effect of the disabled state on focus-chain and the widgets. //! When the disabled checkbox is clicked only the widgets not marked as disabled should diff --git a/druid/examples/either.rs b/druid/examples/either.rs index 7fdcd5a98a..7b45f47095 100644 --- a/druid/examples/either.rs +++ b/druid/examples/either.rs @@ -1,16 +1,5 @@ -// Copyright 2019 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2019 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! An example using the Either widget to show/hide a slider. //! This is a very simple example, it uses a bool to determine diff --git a/druid/examples/event_viewer.rs b/druid/examples/event_viewer.rs index 163bb8cd6c..6daefdad78 100644 --- a/druid/examples/event_viewer.rs +++ b/druid/examples/event_viewer.rs @@ -1,16 +1,5 @@ -// Copyright 2020 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2020 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! An application that accepts keyboard and mouse input, and displays //! information about received events. diff --git a/druid/examples/flex.rs b/druid/examples/flex.rs index 1f8eae5bff..df67e2b4e5 100644 --- a/druid/examples/flex.rs +++ b/druid/examples/flex.rs @@ -1,16 +1,5 @@ -// Copyright 2020 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2020 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! Demonstrates alignment of children in the flex container. //! This example showcases the full set of functionality of flex, giving you diff --git a/druid/examples/game_of_life.rs b/druid/examples/game_of_life.rs index f531bba4c0..5c8b54f41b 100644 --- a/druid/examples/game_of_life.rs +++ b/druid/examples/game_of_life.rs @@ -1,16 +1,5 @@ -// Copyright 2019 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2019 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! This is an example of how you would implement the game of life with Druid. //! This example doesn't showcase anything specific in Druid. diff --git a/druid/examples/hello.rs b/druid/examples/hello.rs index 5338e05d57..7d21a26bca 100644 --- a/druid/examples/hello.rs +++ b/druid/examples/hello.rs @@ -1,16 +1,5 @@ -// Copyright 2019 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2019 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! This is a very small example of how to setup a Druid application. //! It does the almost bare minimum while still being useful. diff --git a/druid/examples/hello_web/src/lib.rs b/druid/examples/hello_web/src/lib.rs index 8b07d2256c..3de50a3143 100644 --- a/druid/examples/hello_web/src/lib.rs +++ b/druid/examples/hello_web/src/lib.rs @@ -1,16 +1,5 @@ -// Copyright 2020 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2020 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 use druid::widget::{Align, Flex, Label, TextBox}; use druid::{AppLauncher, Data, Env, Lens, Widget, WidgetExt, WindowDesc}; diff --git a/druid/examples/identity.rs b/druid/examples/identity.rs index e59d871dcf..7c8ebdd0d5 100644 --- a/druid/examples/identity.rs +++ b/druid/examples/identity.rs @@ -1,16 +1,5 @@ -// Copyright 2019 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2019 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! An example of sending commands to specific widgets. //! diff --git a/druid/examples/image.rs b/druid/examples/image.rs index f8ddcf6eba..dbf4dc6a2f 100644 --- a/druid/examples/image.rs +++ b/druid/examples/image.rs @@ -1,16 +1,5 @@ -// Copyright 2020 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2020 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! This showcase demonstrates how to use the image widget and its //! properties. You can change the parameters in the GUI to see how diff --git a/druid/examples/input_region.rs b/druid/examples/input_region.rs index e74d8afbda..c056a39166 100644 --- a/druid/examples/input_region.rs +++ b/druid/examples/input_region.rs @@ -1,16 +1,5 @@ -// Copyright 2023 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2023 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! A demo of a few window features, including input region, always on top, //! and titlebar visibility. diff --git a/druid/examples/invalidation.rs b/druid/examples/invalidation.rs index cb9adc1759..a5727fd94e 100644 --- a/druid/examples/invalidation.rs +++ b/druid/examples/invalidation.rs @@ -1,16 +1,5 @@ -// Copyright 2019 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2019 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! Demonstrates how to debug invalidation regions, and also shows the //! invalidation behavior of several built-in widgets. diff --git a/druid/examples/layout.rs b/druid/examples/layout.rs index 2d8fc500b6..162a84eea9 100644 --- a/druid/examples/layout.rs +++ b/druid/examples/layout.rs @@ -1,16 +1,5 @@ -// Copyright 2019 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2019 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! This example shows how to construct a basic layout, //! using columns, rows, and loops, for repeated Widgets. diff --git a/druid/examples/lens.rs b/druid/examples/lens.rs index 71181f5482..93881caa76 100644 --- a/druid/examples/lens.rs +++ b/druid/examples/lens.rs @@ -1,16 +1,5 @@ -// Copyright 2019 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2019 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! This example shows basic usage of Lens diff --git a/druid/examples/list.rs b/druid/examples/list.rs index 849808ffa6..a5b18571b4 100644 --- a/druid/examples/list.rs +++ b/druid/examples/list.rs @@ -1,16 +1,5 @@ -// Copyright 2019 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2019 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! Demos basic list widget and list manipulations. diff --git a/druid/examples/markdown_preview.rs b/druid/examples/markdown_preview.rs index 9b84afcd95..eab9eaf226 100644 --- a/druid/examples/markdown_preview.rs +++ b/druid/examples/markdown_preview.rs @@ -1,16 +1,5 @@ -// Copyright 2020 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2020 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! An example of live markdown preview diff --git a/druid/examples/multiwin.rs b/druid/examples/multiwin.rs index 3875e2e406..d2a3858aba 100644 --- a/druid/examples/multiwin.rs +++ b/druid/examples/multiwin.rs @@ -1,16 +1,5 @@ -// Copyright 2019 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2019 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! Opening and closing windows and using window and context menus. diff --git a/druid/examples/open_save.rs b/druid/examples/open_save.rs index e0e197b611..480fcc26ec 100644 --- a/druid/examples/open_save.rs +++ b/druid/examples/open_save.rs @@ -1,16 +1,5 @@ -// Copyright 2020 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2020 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! Usage of file open and saving. diff --git a/druid/examples/panels.rs b/druid/examples/panels.rs index 53c6feb111..3d3264dae3 100644 --- a/druid/examples/panels.rs +++ b/druid/examples/panels.rs @@ -1,16 +1,5 @@ -// Copyright 2019 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2019 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! This example shows how to construct a basic layout. diff --git a/druid/examples/scroll.rs b/druid/examples/scroll.rs index 0d6a5d59bd..559e8bcc2d 100644 --- a/druid/examples/scroll.rs +++ b/druid/examples/scroll.rs @@ -1,16 +1,5 @@ -// Copyright 2019 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2019 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! Shows a scroll widget, and also demonstrates how widgets that paint //! outside their bounds can specify their paint region. diff --git a/druid/examples/scroll_colors.rs b/druid/examples/scroll_colors.rs index d9239f6ea4..e2f04274a2 100644 --- a/druid/examples/scroll_colors.rs +++ b/druid/examples/scroll_colors.rs @@ -1,16 +1,5 @@ -// Copyright 2019 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2019 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! This example allows to play with scroll bars over different color tones. diff --git a/druid/examples/slider.rs b/druid/examples/slider.rs index f79fa1f62d..c36e8deb2b 100644 --- a/druid/examples/slider.rs +++ b/druid/examples/slider.rs @@ -1,16 +1,5 @@ -// Copyright 2019 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2019 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! This is a demo of the settings of Slider, RangeSlider and Annotated. //! It contains a `Slider` and `RangeSlider`. diff --git a/druid/examples/split_demo.rs b/druid/examples/split_demo.rs index 5c0389d4a3..c36579e7c5 100644 --- a/druid/examples/split_demo.rs +++ b/druid/examples/split_demo.rs @@ -1,16 +1,5 @@ -// Copyright 2019 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2019 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! This example demonstrates the `Split` widget diff --git a/druid/examples/styled_text.rs b/druid/examples/styled_text.rs index 82d5a1210f..49b4b2cc8f 100644 --- a/druid/examples/styled_text.rs +++ b/druid/examples/styled_text.rs @@ -1,16 +1,5 @@ -// Copyright 2020 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2020 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! Example of dynamic text styling diff --git a/druid/examples/sub_window.rs b/druid/examples/sub_window.rs index 27e83f9b2d..a643adac79 100644 --- a/druid/examples/sub_window.rs +++ b/druid/examples/sub_window.rs @@ -1,16 +1,5 @@ -// Copyright 2021 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2021 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! Example of sub windows. diff --git a/druid/examples/svg.rs b/druid/examples/svg.rs index 3c17476430..7b520a9ee4 100644 --- a/druid/examples/svg.rs +++ b/druid/examples/svg.rs @@ -1,16 +1,5 @@ -// Copyright 2019 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2019 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! This example shows how to draw an SVG. diff --git a/druid/examples/switches.rs b/druid/examples/switches.rs index 5abd0e1c1b..73b251f5e9 100644 --- a/druid/examples/switches.rs +++ b/druid/examples/switches.rs @@ -1,16 +1,5 @@ -// Copyright 2019 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2019 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! Example of switches diff --git a/druid/examples/tabs.rs b/druid/examples/tabs.rs index 5cadf6ed7f..c89241700c 100644 --- a/druid/examples/tabs.rs +++ b/druid/examples/tabs.rs @@ -1,16 +1,5 @@ -// Copyright 2020 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2020 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! Example of tabs diff --git a/druid/examples/text.rs b/druid/examples/text.rs index e03a5c983a..b2fcad12cd 100644 --- a/druid/examples/text.rs +++ b/druid/examples/text.rs @@ -1,16 +1,5 @@ -// Copyright 2020 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2020 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! An example of various text layout features. diff --git a/druid/examples/textbox.rs b/druid/examples/textbox.rs index 22a5bf1470..9b36506e62 100644 --- a/druid/examples/textbox.rs +++ b/druid/examples/textbox.rs @@ -1,16 +1,5 @@ -// Copyright 2021 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2021 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! An example of various text layout features. //! diff --git a/druid/examples/timer.rs b/druid/examples/timer.rs index 5cdd160243..44f9714507 100644 --- a/druid/examples/timer.rs +++ b/druid/examples/timer.rs @@ -1,16 +1,5 @@ -// Copyright 2019 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2019 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! An example of a timer. diff --git a/druid/examples/transparency.rs b/druid/examples/transparency.rs index 9ada7455c6..243590b996 100644 --- a/druid/examples/transparency.rs +++ b/druid/examples/transparency.rs @@ -1,16 +1,5 @@ -// Copyright 2019 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2019 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! An example of a transparent window background. //! Useful for dropdowns, tooltips and other overlay windows. diff --git a/druid/examples/value_formatting/src/formatters.rs b/druid/examples/value_formatting/src/formatters.rs index d5df7aa9ff..816bb374d9 100644 --- a/druid/examples/value_formatting/src/formatters.rs +++ b/druid/examples/value_formatting/src/formatters.rs @@ -1,16 +1,5 @@ -// Copyright 2020 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2020 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! Implementations of the [`druid::text::Formatter`] trait. diff --git a/druid/examples/value_formatting/src/main.rs b/druid/examples/value_formatting/src/main.rs index aecddba1fc..dccc02528c 100644 --- a/druid/examples/value_formatting/src/main.rs +++ b/druid/examples/value_formatting/src/main.rs @@ -1,16 +1,5 @@ -// Copyright 2020 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2020 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 // On Windows platform, don't show a console when opening the app. #![windows_subsystem = "windows"] diff --git a/druid/examples/value_formatting/src/widgets.rs b/druid/examples/value_formatting/src/widgets.rs index 0b7b7c07a5..dc8b1ec7bb 100644 --- a/druid/examples/value_formatting/src/widgets.rs +++ b/druid/examples/value_formatting/src/widgets.rs @@ -1,16 +1,5 @@ -// Copyright 2020 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2020 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! Widgets, widget components, and functions for creating widgets diff --git a/druid/examples/view_switcher.rs b/druid/examples/view_switcher.rs index 9f4f7d6345..82d79fbf43 100644 --- a/druid/examples/view_switcher.rs +++ b/druid/examples/view_switcher.rs @@ -1,16 +1,5 @@ -// Copyright 2020 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2020 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! This example demonstrates the `ViewSwitcher` widget diff --git a/druid/examples/web/build.rs b/druid/examples/web/build.rs index 5602f94bc9..b300e43e77 100644 --- a/druid/examples/web/build.rs +++ b/druid/examples/web/build.rs @@ -1,16 +1,5 @@ -// Copyright 2020 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2020 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 use std::io::{ErrorKind, Result}; use std::path::{Path, PathBuf}; diff --git a/druid/examples/web/src/lib.rs b/druid/examples/web/src/lib.rs index 34f3ec54b6..15516312b0 100644 --- a/druid/examples/web/src/lib.rs +++ b/druid/examples/web/src/lib.rs @@ -1,16 +1,5 @@ -// Copyright 2020 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2020 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 use wasm_bindgen::prelude::*; diff --git a/druid/examples/widget_gallery.rs b/druid/examples/widget_gallery.rs index ef1515860f..162a60ac16 100644 --- a/druid/examples/widget_gallery.rs +++ b/druid/examples/widget_gallery.rs @@ -1,16 +1,5 @@ -// Copyright 2020 The xi-editor Authors. -// -// 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 -// -// http://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. +// Copyright 2020 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! An example showcasing various widgets. diff --git a/druid/examples/z_stack.rs b/druid/examples/z_stack.rs index b736c8e206..6d0aa0a7f8 100644 --- a/druid/examples/z_stack.rs +++ b/druid/examples/z_stack.rs @@ -1,16 +1,5 @@ -// Copyright 2019 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2019 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! A simple test of overlapping widgets. diff --git a/druid/src/app.rs b/druid/src/app.rs index 7853850001..53d53df924 100644 --- a/druid/src/app.rs +++ b/druid/src/app.rs @@ -1,16 +1,5 @@ -// Copyright 2019 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2019 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! Window building and app lifecycle. diff --git a/druid/src/app_delegate.rs b/druid/src/app_delegate.rs index eb2fb854a5..80c9fcad8a 100644 --- a/druid/src/app_delegate.rs +++ b/druid/src/app_delegate.rs @@ -1,16 +1,5 @@ -// Copyright 2019 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2019 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! Customizing application-level behaviour. diff --git a/druid/src/bloom.rs b/druid/src/bloom.rs index a8f51d30e1..7838a2a87d 100644 --- a/druid/src/bloom.rs +++ b/druid/src/bloom.rs @@ -1,16 +1,5 @@ -// Copyright 2020 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2020 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! A simple Bloom filter, used to track child widgets. diff --git a/druid/src/box_constraints.rs b/druid/src/box_constraints.rs index 3d97e61a3a..79d027fdcf 100644 --- a/druid/src/box_constraints.rs +++ b/druid/src/box_constraints.rs @@ -1,16 +1,5 @@ -// Copyright 2019 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2019 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! The fundamental Druid types. diff --git a/druid/src/command.rs b/druid/src/command.rs index 1bd69315b7..df71cb2e2d 100644 --- a/druid/src/command.rs +++ b/druid/src/command.rs @@ -1,16 +1,5 @@ -// Copyright 2019 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2019 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! Custom commands. diff --git a/druid/src/contexts.rs b/druid/src/contexts.rs index eeb7ac2656..5f16053150 100644 --- a/druid/src/contexts.rs +++ b/druid/src/contexts.rs @@ -1,16 +1,5 @@ -// Copyright 2020 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2020 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! The context types that are passed into various widget methods. diff --git a/druid/src/core.rs b/druid/src/core.rs index ec922dc8e4..f890583d35 100644 --- a/druid/src/core.rs +++ b/druid/src/core.rs @@ -1,16 +1,5 @@ -// Copyright 2018 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2018 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! The fundamental Druid types. diff --git a/druid/src/data.rs b/druid/src/data.rs index b5a5e1f369..e8ce36d393 100644 --- a/druid/src/data.rs +++ b/druid/src/data.rs @@ -1,16 +1,5 @@ -// Copyright 2019 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2019 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! Traits for handling value types. diff --git a/druid/src/debug_state.rs b/druid/src/debug_state.rs index 681aafc4a9..3128fa0467 100644 --- a/druid/src/debug_state.rs +++ b/druid/src/debug_state.rs @@ -1,16 +1,5 @@ -// Copyright 2021 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2021 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! A data structure for representing widget trees. diff --git a/druid/src/dialog.rs b/druid/src/dialog.rs index 9e84d715d7..0b481eb90b 100644 --- a/druid/src/dialog.rs +++ b/druid/src/dialog.rs @@ -1,16 +1,5 @@ -// Copyright 2020 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2020 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! Configuration for open and save file dialogs. //! diff --git a/druid/src/env.rs b/druid/src/env.rs index 30c1206fe8..67fa4452ec 100644 --- a/druid/src/env.rs +++ b/druid/src/env.rs @@ -1,16 +1,5 @@ -// Copyright 2019 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2019 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! An environment which is passed downward into the widget tree. diff --git a/druid/src/event.rs b/druid/src/event.rs index b118d00a47..ba081ee43e 100644 --- a/druid/src/event.rs +++ b/druid/src/event.rs @@ -1,16 +1,5 @@ -// Copyright 2019 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2019 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! Events. diff --git a/druid/src/ext_event.rs b/druid/src/ext_event.rs index 936bf78f1c..c96601fb9c 100644 --- a/druid/src/ext_event.rs +++ b/druid/src/ext_event.rs @@ -1,16 +1,5 @@ -// Copyright 2020 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2020 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! Simple handle for submitting external events. diff --git a/druid/src/lens/lens.rs b/druid/src/lens/lens.rs index 16ad8463fb..d674f06256 100644 --- a/druid/src/lens/lens.rs +++ b/druid/src/lens/lens.rs @@ -1,16 +1,5 @@ -// Copyright 2019 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2019 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 use std::marker::PhantomData; use std::ops; diff --git a/druid/src/lens/mod.rs b/druid/src/lens/mod.rs index 11ae7af11f..ae039ace05 100644 --- a/druid/src/lens/mod.rs +++ b/druid/src/lens/mod.rs @@ -1,16 +1,5 @@ -// Copyright 2020 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2020 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! Implementations of [`Lens`], a way of focusing on subfields of data. //! diff --git a/druid/src/lib.rs b/druid/src/lib.rs index 7775e53f05..2217b02da5 100644 --- a/druid/src/lib.rs +++ b/druid/src/lib.rs @@ -1,16 +1,5 @@ -// Copyright 2018 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2018 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! Simple data-oriented GUI. //! diff --git a/druid/src/localization.rs b/druid/src/localization.rs index c6fab35f13..7b143476ad 100644 --- a/druid/src/localization.rs +++ b/druid/src/localization.rs @@ -1,16 +1,5 @@ -// Copyright 2019 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2019 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! Localization handling. //! diff --git a/druid/src/menu/mod.rs b/druid/src/menu/mod.rs index ae3c6c9366..d22bfb8998 100644 --- a/druid/src/menu/mod.rs +++ b/druid/src/menu/mod.rs @@ -1,16 +1,5 @@ -// Copyright 2019 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2019 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! ## Window, application, and context menus //! diff --git a/druid/src/menu/sys.rs b/druid/src/menu/sys.rs index 1dfc42c73f..0fe79702c5 100644 --- a/druid/src/menu/sys.rs +++ b/druid/src/menu/sys.rs @@ -1,16 +1,5 @@ -// Copyright 2019 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2019 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! Pre-configured, platform appropriate menus and menu items. diff --git a/druid/src/mouse.rs b/druid/src/mouse.rs index fef4c620fc..18a2e1c517 100644 --- a/druid/src/mouse.rs +++ b/druid/src/mouse.rs @@ -1,16 +1,5 @@ -// Copyright 2019 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2019 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! The mousey bits diff --git a/druid/src/scroll_component.rs b/druid/src/scroll_component.rs index 6bdc0393bd..f3ec4d8975 100644 --- a/druid/src/scroll_component.rs +++ b/druid/src/scroll_component.rs @@ -1,16 +1,5 @@ -// Copyright 2020 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2020 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! A component for embedding in another widget to provide consistent and //! extendable scrolling behavior diff --git a/druid/src/sub_window.rs b/druid/src/sub_window.rs index 7097cc3016..e126c1aed6 100644 --- a/druid/src/sub_window.rs +++ b/druid/src/sub_window.rs @@ -1,16 +1,5 @@ -// Copyright 2021 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2021 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 use crate::app::{PendingWindow, WindowConfig}; use crate::commands::{SUB_WINDOW_HOST_TO_PARENT, SUB_WINDOW_PARENT_TO_HOST}; diff --git a/druid/src/tests/harness.rs b/druid/src/tests/harness.rs index dc5940e22e..ce38bb0213 100644 --- a/druid/src/tests/harness.rs +++ b/druid/src/tests/harness.rs @@ -1,16 +1,5 @@ -// Copyright 2020 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2020 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! Tools and infrastructure for testing widgets. diff --git a/druid/src/tests/helpers.rs b/druid/src/tests/helpers.rs index d3c6a7c384..fbdabdce73 100644 --- a/druid/src/tests/helpers.rs +++ b/druid/src/tests/helpers.rs @@ -1,16 +1,5 @@ -// Copyright 2020 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2020 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! Helper types for test writing. //! diff --git a/druid/src/tests/invalidation_tests.rs b/druid/src/tests/invalidation_tests.rs index 601bd185da..984d8a715b 100644 --- a/druid/src/tests/invalidation_tests.rs +++ b/druid/src/tests/invalidation_tests.rs @@ -1,16 +1,5 @@ -// Copyright 2020 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2020 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! Tests related to propagation of invalid rects. diff --git a/druid/src/tests/layout_tests.rs b/druid/src/tests/layout_tests.rs index e0b3cbf9a8..a64f3e0f5e 100644 --- a/druid/src/tests/layout_tests.rs +++ b/druid/src/tests/layout_tests.rs @@ -1,16 +1,5 @@ -// Copyright 2020 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2020 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! Tests related to layout. diff --git a/druid/src/tests/mod.rs b/druid/src/tests/mod.rs index bfe352be4a..46d2d07f3c 100644 --- a/druid/src/tests/mod.rs +++ b/druid/src/tests/mod.rs @@ -1,16 +1,5 @@ -// Copyright 2020 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2020 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! Additional unit tests that cross file or module boundaries. diff --git a/druid/src/text/attribute.rs b/druid/src/text/attribute.rs index 178c214e03..3ded3f36f6 100644 --- a/druid/src/text/attribute.rs +++ b/druid/src/text/attribute.rs @@ -1,16 +1,5 @@ -// Copyright 2020 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2020 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! Text attributes and spans. diff --git a/druid/src/text/backspace.rs b/druid/src/text/backspace.rs index a0229cd265..14fa63348b 100644 --- a/druid/src/text/backspace.rs +++ b/druid/src/text/backspace.rs @@ -1,16 +1,5 @@ -// Copyright 2019 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2019 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! Calc start of a backspace delete interval diff --git a/druid/src/text/editable_text.rs b/druid/src/text/editable_text.rs index d646623e5a..3f7aa72d46 100644 --- a/druid/src/text/editable_text.rs +++ b/druid/src/text/editable_text.rs @@ -1,16 +1,5 @@ -// Copyright 2019 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2019 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! Traits for text editing and a basic String implementation. diff --git a/druid/src/text/font_descriptor.rs b/druid/src/text/font_descriptor.rs index ae2f9b15fa..a02e206146 100644 --- a/druid/src/text/font_descriptor.rs +++ b/druid/src/text/font_descriptor.rs @@ -1,16 +1,5 @@ -// Copyright 2020 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2020 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! Font attributes diff --git a/druid/src/text/format.rs b/druid/src/text/format.rs index 4c52ea5be3..fdcbcd7f03 100644 --- a/druid/src/text/format.rs +++ b/druid/src/text/format.rs @@ -1,16 +1,5 @@ -// Copyright 2020 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2020 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! Creating, interpreting, and validating textual representations of values. diff --git a/druid/src/text/input_component.rs b/druid/src/text/input_component.rs index 693335f019..8eb8a2519a 100644 --- a/druid/src/text/input_component.rs +++ b/druid/src/text/input_component.rs @@ -1,16 +1,5 @@ -// Copyright 2021 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2021 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! A widget component that integrates with the platform text system. diff --git a/druid/src/text/input_methods.rs b/druid/src/text/input_methods.rs index 371697430f..0830ed1e5c 100644 --- a/druid/src/text/input_methods.rs +++ b/druid/src/text/input_methods.rs @@ -1,16 +1,5 @@ -// Copyright 2021 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2021 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! Types related to input method editing. //! diff --git a/druid/src/text/layout.rs b/druid/src/text/layout.rs index 2d5b5c9965..26d3b09feb 100644 --- a/druid/src/text/layout.rs +++ b/druid/src/text/layout.rs @@ -1,16 +1,5 @@ -// Copyright 2020 The xi-editor Authors. -// -// 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 -// -// http://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. +// Copyright 2020 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! A type for laying out, drawing, and interacting with text. diff --git a/druid/src/text/mod.rs b/druid/src/text/mod.rs index 6e82322fb8..0cdc3964ca 100644 --- a/druid/src/text/mod.rs +++ b/druid/src/text/mod.rs @@ -1,16 +1,5 @@ -// Copyright 2018 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2018 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! Editing and displaying text. diff --git a/druid/src/text/movement.rs b/druid/src/text/movement.rs index 2b65ddf5c5..03804981d1 100644 --- a/druid/src/text/movement.rs +++ b/druid/src/text/movement.rs @@ -1,16 +1,5 @@ -// Copyright 2019 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2019 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! Text editing movements. diff --git a/druid/src/text/rich_text.rs b/druid/src/text/rich_text.rs index c78cf3801c..7b069572c8 100644 --- a/druid/src/text/rich_text.rs +++ b/druid/src/text/rich_text.rs @@ -1,16 +1,5 @@ -// Copyright 2018 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2018 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! Rich text with style spans. diff --git a/druid/src/text/storage.rs b/druid/src/text/storage.rs index 2f7e1efded..36e7276305 100644 --- a/druid/src/text/storage.rs +++ b/druid/src/text/storage.rs @@ -1,16 +1,5 @@ -// Copyright 2020 The xi-editor Authors. -// -// 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 -// -// http://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. +// Copyright 2020 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! Storing text. diff --git a/druid/src/theme.rs b/druid/src/theme.rs index 4df7178006..805119ce70 100644 --- a/druid/src/theme.rs +++ b/druid/src/theme.rs @@ -1,16 +1,5 @@ -// Copyright 2019 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2019 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! Theme keys and initial values. diff --git a/druid/src/util.rs b/druid/src/util.rs index 9a4d281cd5..c8873686ad 100644 --- a/druid/src/util.rs +++ b/druid/src/util.rs @@ -1,16 +1,5 @@ -// Copyright 2020 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2020 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! Miscellaneous utility functions. diff --git a/druid/src/widget/added.rs b/druid/src/widget/added.rs index ebed1a4d9a..95984941fc 100644 --- a/druid/src/widget/added.rs +++ b/druid/src/widget/added.rs @@ -1,16 +1,5 @@ -// Copyright 2020 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2020 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! A [`Controller`] widget that responds to [`LifeCycle::WidgetAdded`] event. //! diff --git a/druid/src/widget/align.rs b/druid/src/widget/align.rs index c3b813156f..b647ffb5f8 100644 --- a/druid/src/widget/align.rs +++ b/druid/src/widget/align.rs @@ -1,16 +1,5 @@ -// Copyright 2018 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2018 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! A widget that aligns its child (for example, centering it). diff --git a/druid/src/widget/aspect_ratio_box.rs b/druid/src/widget/aspect_ratio_box.rs index cabda839d0..2ba73d837b 100644 --- a/druid/src/widget/aspect_ratio_box.rs +++ b/druid/src/widget/aspect_ratio_box.rs @@ -1,16 +1,5 @@ -// Copyright 2021 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2021 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 use crate::debug_state::DebugState; diff --git a/druid/src/widget/button.rs b/druid/src/widget/button.rs index f506462fe1..24d0673ab5 100644 --- a/druid/src/widget/button.rs +++ b/druid/src/widget/button.rs @@ -1,16 +1,5 @@ -// Copyright 2018 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2018 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! A button widget. diff --git a/druid/src/widget/checkbox.rs b/druid/src/widget/checkbox.rs index 581590d14b..0b4b519726 100644 --- a/druid/src/widget/checkbox.rs +++ b/druid/src/widget/checkbox.rs @@ -1,16 +1,5 @@ -// Copyright 2019 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2019 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! A checkbox widget. diff --git a/druid/src/widget/click.rs b/druid/src/widget/click.rs index 678a0fad8b..3b87592425 100644 --- a/druid/src/widget/click.rs +++ b/druid/src/widget/click.rs @@ -1,16 +1,5 @@ -// Copyright 2020 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2020 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! A clickable [`Controller`] widget. diff --git a/druid/src/widget/clip_box.rs b/druid/src/widget/clip_box.rs index af017e8a18..b3d22196c8 100644 --- a/druid/src/widget/clip_box.rs +++ b/druid/src/widget/clip_box.rs @@ -1,16 +1,5 @@ -// Copyright 2020 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2020 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 use crate::commands::SCROLL_TO_VIEW; use crate::contexts::ChangeCtx; diff --git a/druid/src/widget/common.rs b/druid/src/widget/common.rs index e13dd9072c..11ddefbb31 100644 --- a/druid/src/widget/common.rs +++ b/druid/src/widget/common.rs @@ -1,16 +1,5 @@ -// Copyright 2020 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2020 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 use crate::{Affine, Data, Size}; diff --git a/druid/src/widget/container.rs b/druid/src/widget/container.rs index 20573af694..3b864a52be 100644 --- a/druid/src/widget/container.rs +++ b/druid/src/widget/container.rs @@ -1,16 +1,5 @@ -// Copyright 2019 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2019 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! A widget that provides simple visual styling options to a child. diff --git a/druid/src/widget/controller.rs b/druid/src/widget/controller.rs index a5311a68d2..ee55ce1e46 100644 --- a/druid/src/widget/controller.rs +++ b/druid/src/widget/controller.rs @@ -1,16 +1,5 @@ -// Copyright 2020 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2020 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! A widget-controlling widget. diff --git a/druid/src/widget/disable_if.rs b/druid/src/widget/disable_if.rs index 4ff59d4af4..e4caeb5e0f 100644 --- a/druid/src/widget/disable_if.rs +++ b/druid/src/widget/disable_if.rs @@ -1,16 +1,5 @@ -// Copyright 2021 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2021 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 use crate::debug_state::DebugState; use crate::{ diff --git a/druid/src/widget/either.rs b/druid/src/widget/either.rs index 34f77d2a55..8a977b67b3 100644 --- a/druid/src/widget/either.rs +++ b/druid/src/widget/either.rs @@ -1,16 +1,5 @@ -// Copyright 2019 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2019 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! A widget that switches dynamically between two child views. diff --git a/druid/src/widget/env_scope.rs b/druid/src/widget/env_scope.rs index ab2a14074a..689fdf6106 100644 --- a/druid/src/widget/env_scope.rs +++ b/druid/src/widget/env_scope.rs @@ -1,16 +1,5 @@ -// Copyright 2019 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2019 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! A widget that accepts a closure to update the environment for its child. diff --git a/druid/src/widget/flex.rs b/druid/src/widget/flex.rs index 44ba7e5f63..cd7e3eb9ac 100644 --- a/druid/src/widget/flex.rs +++ b/druid/src/widget/flex.rs @@ -1,16 +1,5 @@ -// Copyright 2018 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2018 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! A widget that arranges its children in a one-dimensional array. diff --git a/druid/src/widget/identity_wrapper.rs b/druid/src/widget/identity_wrapper.rs index bdc67ee2c1..766906b83f 100644 --- a/druid/src/widget/identity_wrapper.rs +++ b/druid/src/widget/identity_wrapper.rs @@ -1,16 +1,5 @@ -// Copyright 2019 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2019 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! A widget that provides an explicit identity to a child. diff --git a/druid/src/widget/image.rs b/druid/src/widget/image.rs index 04e3e41359..8e689ad9b2 100644 --- a/druid/src/widget/image.rs +++ b/druid/src/widget/image.rs @@ -1,16 +1,5 @@ -// Copyright 2020 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2020 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! An Image widget. //! Please consider using SVG and the SVG widget as it scales much better. diff --git a/druid/src/widget/intrinsic_width.rs b/druid/src/widget/intrinsic_width.rs index 968609d9d9..b52c7d63e4 100644 --- a/druid/src/widget/intrinsic_width.rs +++ b/druid/src/widget/intrinsic_width.rs @@ -1,16 +1,5 @@ -// Copyright 2022 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2022 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! A widget that sizes its child to the child's maximum intrinsic width. diff --git a/druid/src/widget/invalidation.rs b/druid/src/widget/invalidation.rs index f99062e390..c437ad1865 100644 --- a/druid/src/widget/invalidation.rs +++ b/druid/src/widget/invalidation.rs @@ -1,16 +1,5 @@ -// Copyright 2020 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2020 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 use crate::debug_state::DebugState; use crate::widget::prelude::*; diff --git a/druid/src/widget/label.rs b/druid/src/widget/label.rs index 8b580b7718..92932ce075 100644 --- a/druid/src/widget/label.rs +++ b/druid/src/widget/label.rs @@ -1,16 +1,5 @@ -// Copyright 2019 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2019 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! A label widget. diff --git a/druid/src/widget/lens_wrap.rs b/druid/src/widget/lens_wrap.rs index d227f0c1d2..04e9dbf3b6 100644 --- a/druid/src/widget/lens_wrap.rs +++ b/druid/src/widget/lens_wrap.rs @@ -1,16 +1,5 @@ -// Copyright 2020 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2020 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! A [`Widget`] that uses a [`Lens`] to change the [`Data`] of its child. diff --git a/druid/src/widget/list.rs b/druid/src/widget/list.rs index dc3786c4b7..1ce48a0580 100644 --- a/druid/src/widget/list.rs +++ b/druid/src/widget/list.rs @@ -1,16 +1,5 @@ -// Copyright 2019 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2019 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! Simple list view widget. diff --git a/druid/src/widget/maybe.rs b/druid/src/widget/maybe.rs index f063e4c144..75649a6d39 100644 --- a/druid/src/widget/maybe.rs +++ b/druid/src/widget/maybe.rs @@ -1,16 +1,5 @@ -// Copyright 2021 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2021 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! A widget for optional data, with different `Some` and `None` children. diff --git a/druid/src/widget/mod.rs b/druid/src/widget/mod.rs index b2e272188c..724fae790a 100644 --- a/druid/src/widget/mod.rs +++ b/druid/src/widget/mod.rs @@ -1,16 +1,5 @@ -// Copyright 2018 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2018 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! Common widgets. diff --git a/druid/src/widget/padding.rs b/druid/src/widget/padding.rs index c10e942fc5..e24f493c07 100644 --- a/druid/src/widget/padding.rs +++ b/druid/src/widget/padding.rs @@ -1,16 +1,5 @@ -// Copyright 2018 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2018 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! A widget that just adds padding during layout. diff --git a/druid/src/widget/painter.rs b/druid/src/widget/painter.rs index 0846f2ff32..59bdbd467a 100644 --- a/druid/src/widget/painter.rs +++ b/druid/src/widget/painter.rs @@ -1,16 +1,5 @@ -// Copyright 2020 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2020 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 use crate::piet::{FixedGradient, LinearGradient, PaintBrush, RadialGradient}; use crate::widget::prelude::*; diff --git a/druid/src/widget/parse.rs b/druid/src/widget/parse.rs index 65126407a5..5c8a458d9a 100644 --- a/druid/src/widget/parse.rs +++ b/druid/src/widget/parse.rs @@ -1,16 +1,5 @@ -// Copyright 2020 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2020 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 // This whole widget was deprecated in Druid 0.7 // https://github.com/linebender/druid/pull/1377 diff --git a/druid/src/widget/progress_bar.rs b/druid/src/widget/progress_bar.rs index 104fa925cc..8774a9c7c0 100644 --- a/druid/src/widget/progress_bar.rs +++ b/druid/src/widget/progress_bar.rs @@ -1,16 +1,5 @@ -// Copyright 2019 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2019 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! A progress bar widget. diff --git a/druid/src/widget/radio.rs b/druid/src/widget/radio.rs index 5c6b088b3e..7629f01ac0 100644 --- a/druid/src/widget/radio.rs +++ b/druid/src/widget/radio.rs @@ -1,16 +1,5 @@ -// Copyright 2019 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2019 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! A radio button widget. diff --git a/druid/src/widget/scope.rs b/druid/src/widget/scope.rs index fd95746327..28f9bfd9c8 100644 --- a/druid/src/widget/scope.rs +++ b/druid/src/widget/scope.rs @@ -1,16 +1,5 @@ -// Copyright 2020 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2020 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 use std::marker::PhantomData; diff --git a/druid/src/widget/scroll.rs b/druid/src/widget/scroll.rs index b57b1d449b..6faee8d79c 100644 --- a/druid/src/widget/scroll.rs +++ b/druid/src/widget/scroll.rs @@ -1,16 +1,5 @@ -// Copyright 2019 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2019 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! A container that scrolls its contents. diff --git a/druid/src/widget/sized_box.rs b/druid/src/widget/sized_box.rs index 5ebced9ad2..84e2c1f133 100644 --- a/druid/src/widget/sized_box.rs +++ b/druid/src/widget/sized_box.rs @@ -1,16 +1,5 @@ -// Copyright 2019 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2019 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! A widget with predefined size. diff --git a/druid/src/widget/slider.rs b/druid/src/widget/slider.rs index 28fa49bcaf..4607103a4b 100644 --- a/druid/src/widget/slider.rs +++ b/druid/src/widget/slider.rs @@ -1,16 +1,5 @@ -// Copyright 2019 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2019 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! A slider widget. diff --git a/druid/src/widget/spinner.rs b/druid/src/widget/spinner.rs index 2cbf98eee5..a73cb327ac 100644 --- a/druid/src/widget/spinner.rs +++ b/druid/src/widget/spinner.rs @@ -1,16 +1,5 @@ -// Copyright 2020 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2020 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! An animated spinner widget. diff --git a/druid/src/widget/split.rs b/druid/src/widget/split.rs index 96e53e208d..9db08d5574 100644 --- a/druid/src/widget/split.rs +++ b/druid/src/widget/split.rs @@ -1,16 +1,5 @@ -// Copyright 2019 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2019 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! A widget which splits an area in two, with a settable ratio, and optional draggable resizing. diff --git a/druid/src/widget/stepper.rs b/druid/src/widget/stepper.rs index 3ca3bf39ba..0fbded6183 100644 --- a/druid/src/widget/stepper.rs +++ b/druid/src/widget/stepper.rs @@ -1,16 +1,5 @@ -// Copyright 2019 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2019 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! A stepper widget. diff --git a/druid/src/widget/svg.rs b/druid/src/widget/svg.rs index 1975dfc88b..f446e0cfd6 100644 --- a/druid/src/widget/svg.rs +++ b/druid/src/widget/svg.rs @@ -1,16 +1,5 @@ -// Copyright 2019 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2019 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! An SVG widget. diff --git a/druid/src/widget/switch.rs b/druid/src/widget/switch.rs index 627ba39bdd..b985395107 100644 --- a/druid/src/widget/switch.rs +++ b/druid/src/widget/switch.rs @@ -1,16 +1,5 @@ -// Copyright 2019 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2019 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! A toggle switch widget. diff --git a/druid/src/widget/tabs.rs b/druid/src/widget/tabs.rs index 31523746f1..f93c323ebf 100644 --- a/druid/src/widget/tabs.rs +++ b/druid/src/widget/tabs.rs @@ -1,16 +1,5 @@ -// Copyright 2020 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2020 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! A widget that can switch between one of many views, hiding the inactive ones. diff --git a/druid/src/widget/textbox.rs b/druid/src/widget/textbox.rs index bbd973b997..bab6e66c1e 100644 --- a/druid/src/widget/textbox.rs +++ b/druid/src/widget/textbox.rs @@ -1,16 +1,5 @@ -// Copyright 2018 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2018 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! A textbox widget. diff --git a/druid/src/widget/value_textbox.rs b/druid/src/widget/value_textbox.rs index 3c93392856..cd4680e69e 100644 --- a/druid/src/widget/value_textbox.rs +++ b/druid/src/widget/value_textbox.rs @@ -1,16 +1,5 @@ -// Copyright 2021 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2021 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! A textbox that that parses and validates data. diff --git a/druid/src/widget/view_switcher.rs b/druid/src/widget/view_switcher.rs index 347ece397d..435185e88c 100644 --- a/druid/src/widget/view_switcher.rs +++ b/druid/src/widget/view_switcher.rs @@ -1,16 +1,5 @@ -// Copyright 2020 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2020 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! A widget that can dynamically switch between one of many views. diff --git a/druid/src/widget/widget.rs b/druid/src/widget/widget.rs index 58e62991b2..9abefab365 100644 --- a/druid/src/widget/widget.rs +++ b/druid/src/widget/widget.rs @@ -1,16 +1,5 @@ -// Copyright 2018 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2018 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 use std::num::NonZeroU64; use std::ops::{Deref, DerefMut}; diff --git a/druid/src/widget/widget_ext.rs b/druid/src/widget/widget_ext.rs index ba0e61021b..2e0a3a0437 100644 --- a/druid/src/widget/widget_ext.rs +++ b/druid/src/widget/widget_ext.rs @@ -1,16 +1,5 @@ -// Copyright 2019 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2019 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! Convenience methods for widgets. diff --git a/druid/src/widget/widget_wrapper.rs b/druid/src/widget/widget_wrapper.rs index 4349e178f1..ae6a2e86ce 100644 --- a/druid/src/widget/widget_wrapper.rs +++ b/druid/src/widget/widget_wrapper.rs @@ -1,16 +1,5 @@ -// Copyright 2021 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2021 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 /// A trait for widgets that wrap a single child to expose that child for access and mutation pub trait WidgetWrapper { diff --git a/druid/src/widget/z_stack.rs b/druid/src/widget/z_stack.rs index a689f49762..23cb70e1b6 100644 --- a/druid/src/widget/z_stack.rs +++ b/druid/src/widget/z_stack.rs @@ -1,16 +1,5 @@ -// Copyright 2022 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2022 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! A ZStack widget. diff --git a/druid/src/win_handler.rs b/druid/src/win_handler.rs index fb7a43544c..4250c15077 100644 --- a/druid/src/win_handler.rs +++ b/druid/src/win_handler.rs @@ -1,16 +1,5 @@ -// Copyright 2019 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2019 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! The implementation of the `WinHandler` trait (`druid-shell` integration). diff --git a/druid/src/window.rs b/druid/src/window.rs index 5bf7bbbf40..ad5705c604 100644 --- a/druid/src/window.rs +++ b/druid/src/window.rs @@ -1,16 +1,5 @@ -// Copyright 2019 The Druid Authors. -// -// 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 -// -// http://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. +// Copyright 2019 the Druid Authors +// SPDX-License-Identifier: Apache-2.0 //! Management of multiple windows.