use crate::{
App, Button, Color, ComboBox, CompOp, Container, FlexColumn, FlexRow, Framebuffer, GfxCtx, Key,
Modifiers, MouseButton, ScrollBarColor, ScrollBarKind, ScrollBarStyle, ScrollView, Size,
SizedBox, Splitter, TabView, TextField, ToggleSwitch, Widget,
};
fn sample(fb: &Framebuffer, x: u32, y: u32) -> [u8; 4] {
let idx = ((y * fb.width() + x) * 4) as usize;
let p = fb.pixels();
[p[idx], p[idx + 1], p[idx + 2], p[idx + 3]]
}
fn is_white(pixel: [u8; 4]) -> bool {
pixel[0] > 200 && pixel[1] > 200 && pixel[2] > 200
}
fn is_red(pixel: [u8; 4]) -> bool {
pixel[0] > 200 && pixel[1] < 50 && pixel[2] < 50
}
fn is_dark(pixel: [u8; 4]) -> bool {
pixel[0] < 50 && pixel[1] < 50 && pixel[2] < 50
}
const TEST_FONT: &[u8] = include_bytes!("../../demo/assets/CascadiaCode.ttf");
mod backbuffer_scale;
mod color_wheel_picker;
mod drawing;
mod flex_gap;
mod focus;
mod keyboard_lift;
mod reserve_inset;
mod inspector_hover;
mod inspector_tree;
mod label_theme;
mod layer_compositing;
mod layout_lcd;
mod menu_hidpi_scale;
mod on_screen_keyboard;
#[cfg(feature = "reflect")]
mod reflect_roundtrip;
mod retained_layers;
mod scroll_view;
mod stack_aligned;
mod touch_scroll;
mod tree_view;
mod widgets;
mod window_layout;
mod window_maximize;
mod windowing;