Keyboard shortcuts

Press or to navigate between chapters

Press ? to show this help

Press Esc to hide this help

Examples Gallery

Kael ships with 40+ runnable examples. Clone the repo and run any example:

git clone https://github.com/Augani/kael.git
cd kael
cargo run -p kael --example <name>

Getting started

ExampleCommandWhat it shows
Hello Worldcargo run -p kael --example hello_worldMinimal window with styled text and colored boxes
Form Controlscargo run -p kael --example form_controlsEvery form widget: text input, checkbox, toggle, slider, radio, select, date picker, modal
Inputcargo run -p kael --example inputText input with custom rendering

Layout & styling

ExampleCommandWhat it shows
Grid Layoutcargo run -p kael --example grid_layoutCSS Grid-style layouts
Gradientcargo run -p kael --example gradientLinear and radial gradients
Shadowcargo run -p kael --example shadowBox shadow effects
Opacitycargo run -p kael --example opacityTransparency and blending
Patterncargo run -p kael --example patternRepeating pattern fills
Windowcargo run -p kael --example windowWindow options and configuration
Window Positioningcargo run -p kael --example window_positioningMulti-display window placement

Lists & data

ExampleCommandWhat it shows
Data Tablecargo run -p kael --example data_tableVirtual data table with sorting and selection
Uniform Listcargo run -p kael --example uniform_listHigh-performance uniform-height list
Recycling Listcargo run -p kael --example recycling_listVariable-height virtualized list
Treecargo run -p kael --example treeExpandable tree view
Scrollablecargo run -p kael --example scrollableScroll containers with elastic scrolling
Elastic Scrollingcargo run -p kael --example elastic_scrollingMomentum and bounce scrolling

Text & rendering

ExampleCommandWhat it shows
Textcargo run -p kael --example textText rendering and font features
Text Layoutcargo run -p kael --example text_layoutText measurement and line breaking
Text Wrappercargo run -p kael --example text_wrapperWord wrap and text overflow
Paintingcargo run -p kael --example paintingCustom GPU painting
SVGcargo run -p kael --example svgSVG rendering
Crispness Showcasecargo run -p kael --example crispness_showcasePixel snapping, hairline strokes, sRGB gradients, corner shapes
Native Comparisoncargo run -p kael --example native_comparisonSide-by-side comparison with native AppKit rendering

Media & animation

ExampleCommandWhat it shows
Animationcargo run -p kael --example animationKeyframe and spring animations
GIF Viewercargo run -p kael --example gif_viewerAnimated GIF playback
Imagecargo run -p kael --example imageImage loading and display
Image Gallerycargo run -p kael --example image_galleryGallery with lazy loading
Image Loadingcargo run -p kael --example image_loadingAsync image loading patterns

Platform integration

ExampleCommandWhat it shows
Set Menuscargo run -p kael --example set_menusNative application menus
Tray Testcargo run -p kael --example tray_testSystem tray icon with menu
Platform Featurescargo run -p kael --example platform_featuresPlatform capability detection
Print Democargo run -p kael --example print_demoNative printing
WebView Democargo run -p kael --example webview_demoEmbedded web content
Capture Democargo run -p kael --example capture_demoScreen/media capture
Drag & Dropcargo run -p kael --example drag_dropFile drag-and-drop

Advanced

ExampleCommandWhat it shows
Plugin Hostcargo run -p kael --example plugin_hostExtension loading and management
Daemon Appcargo run -p kael --example daemon_appBackground daemon with tray
Tab Stopcargo run -p kael --example tab_stopKeyboard focus navigation
Window Shadowcargo run -p kael --example window_shadowCustom window chrome
On Window Close Quitcargo run -p kael --example on_window_close_quitWindow lifecycle handling

Benchmarks

ExampleCommandWhat it shows
Perf Benchcargo run -p kael --example perf_bench --releaseRendering performance measurement
Paths Benchcargo run -p kael --example paths_bench --releasePath rendering performance