fix formatting
This commit is contained in:
parent
9c070ecb8e
commit
8accde6478
|
@ -1,14 +1,15 @@
|
|||
//! This example showcases how to do custom drawing on an ImageView
|
||||
//! with CoreGraphics. Feel free to modify it and play around!
|
||||
|
||||
use cacao::appkit::menu::{Menu, MenuItem};
|
||||
use cacao::appkit::window::Window;
|
||||
use cacao::appkit::{App, AppDelegate};
|
||||
|
||||
use cacao::color::Color;
|
||||
use cacao::layout::{Layout, LayoutConstraint};
|
||||
use cacao::view::View;
|
||||
|
||||
use cacao::image::{DrawConfig, Image, ImageView};
|
||||
use cacao::appkit::menu::{Menu, MenuItem};
|
||||
use cacao::appkit::window::Window;
|
||||
use cacao::appkit::{App, AppDelegate};
|
||||
|
||||
struct BasicApp {
|
||||
window: Window,
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
//! This example showcases setting up a basic application and window, setting up some views to
|
||||
//! work with autolayout, and some basic ways to handle colors.
|
||||
|
||||
use cacao::webview::{WebView, WebViewConfig, WebViewDelegate};
|
||||
|
||||
use cacao::appkit::menu::{Menu, MenuItem};
|
||||
use cacao::appkit::toolbar::Toolbar;
|
||||
use cacao::appkit::window::{Window, WindowConfig, WindowDelegate, WindowToolbarStyle};
|
||||
use cacao::appkit::{App, AppDelegate};
|
||||
|
||||
use cacao::webview::{WebView, WebViewConfig, WebViewDelegate};
|
||||
|
||||
struct BasicApp {
|
||||
window: Window<AppWindow>
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue