khora_editor/widgets/mod.rs
1// Copyright 2025 eraflo
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15//! Editor widget library — composite widgets used by panels.
16//!
17//! Each widget is a free function that takes `&mut dyn UiBuilder` plus
18//! whatever parameters it needs (theme, data, callbacks). Widgets paint to
19//! absolute screen coordinates via the new [`UiBuilder`] primitives —
20//! `paint_*`, `interact_rect`, etc. — so they compose cleanly without
21//! relying on egui's auto-layout.
22
23pub mod brand;
24pub mod chrome;
25pub mod controls;
26pub mod enum_variants;
27pub mod inspector;
28pub mod paint;
29pub mod tile;