On this page

chrome.h

The kit title bar, drawn alone or around the native window buttons, and the window actions it reports, reached through isolenui/kit/kit.h.

#include "isolenui/kit/chrome.h". The guide starts at Title bar.

Title bar

Explained in Title bar.

ui::chromeui::title_barui::title_bar_height

Native chrome

Explained in Window chrome.

ui::chrome_modeui::chrome_drawnui::chrome_os_buttonsui::chrome_kit_buttonsui::chrome_buttonui::chrome_button_noneui::chrome_button_minui::chrome_button_maxui::chrome_button_closeui::chrome_frameui::chrome::drag_boxui::chrome::min_boxui::chrome::max_boxui::chrome::close_box

Example

widgets_titlebar.cpp
#include "isolenui/ui/ui.h"
#include "isolenui/kit/kit.h"

// isolen_app_desc::chrome true, the default, already makes the engine call
// title_bar itself once per frame, so a view under isolen_run never calls
// this. it is here for a host that drives ui::begin and ui::end on its own,
// outside isolen_app entirely, and wants the same title bar
static void host_frame_chrome(ui::ctx* u, bool* quit, gfx_svg minimise_icon,
                               gfx_svg maximise_icon, gfx_svg close_icon)
{
    const ui::chrome c = ui::title_bar(u, "isolen ui", "vulkan, 60 fps",
                                        minimise_icon, maximise_icon,
                                        close_icon);
    if (c.close) {
        *quit = true;
    }
}

Last updated 23 October 2026