#![allow(unused_imports, dead_code)]
mod glob_is_gpui {
use gpui_kit::*;
type Element = Div;
type Window_ = Window;
type App_ = App;
type Geometry = Size<Pixels>;
actions!(exports, [Quit]);
#[derive(Action, Clone, PartialEq)]
struct DerivedAction;
#[derive(Render)]
struct DerivedRender;
#[derive(IntoElement)]
struct DerivedElement;
impl RenderOnce for DerivedElement {
fn render(self, _: &mut Window, _: &mut App) -> impl IntoElement {
div()
}
}
fn build() -> impl IntoElement {
div().child("hello").bg(red())
}
fn startup(cx: &mut App) {
gpui_kit::init(cx);
let _ = gpui_kit::application;
}
}
mod selective_actions_import {
use gpui_kit::actions;
actions!(exports, [SelectivelyImportedAction]);
fn assert_action<T: gpui_kit::Action>() {}
fn action_is_from_the_facade() {
assert_action::<SelectivelyImportedAction>();
}
}
mod gpui_by_name {
use gpui_kit::*;
type Through = gpui::Window;
type Spelled = gpui_kit::gpui::Window;
}
mod always {
type Base = gpui_kit::base::Button;
const _APPLICATION: fn() -> gpui_kit::Application = gpui_kit::application;
const _PLATFORM_APPLICATION: fn() -> gpui_kit::Application = gpui_kit::platform::application;
const _INIT: fn(&mut gpui_kit::App) = gpui_kit::init;
}
#[cfg(feature = "component")]
mod component {
use gpui_kit::component::button::*;
use gpui_kit::component::plot::{IntoPlot, Plot};
use gpui_kit::component::{ActiveTheme, Root, Size};
use gpui_kit::*;
type Sizing = Size;
#[derive(IntoPlot)]
struct DerivedPlot;
impl Plot for DerivedPlot {
fn paint(&mut self, _: Bounds<Pixels>, _: &mut Window, _: &mut App) {}
}
fn theme(cx: &App) -> Hsla {
cx.theme().background
}
fn button() -> Button {
Button::new("ok").primary()
}
const _INIT: fn(&mut App) = gpui_kit::component::init;
}
#[cfg(feature = "assets")]
mod assets {
type Assets = gpui_kit::assets::Assets;
}