diff --git a/src/listview/row/mod.rs b/src/listview/row/mod.rs index 3bf43ba..c9471ff 100644 --- a/src/listview/row/mod.rs +++ b/src/listview/row/mod.rs @@ -7,7 +7,7 @@ //! Views implement Autolayout, which enable you to specify how things should appear on the screen. //! //! ```rust,compile_fail -//! use cacao::color::rgb; +//! use cacao::color::Color; //! use cacao::layout::{Layout, LayoutConstraint}; //! use cacao::view::View; //! use cacao::window::{Window, WindowDelegate}; @@ -25,7 +25,7 @@ //! window.set_minimum_content_size(300., 300.); //! self.window = window; //! -//! self.red.set_background_color(rgb(224, 82, 99)); +//! self.red.set_background_color(Color::rgb(224, 82, 99)); //! self.content.add_subview(&self.red); //! //! self.window.set_content_view(&self.content); diff --git a/src/progress/mod.rs b/src/progress/mod.rs index fe2eeea..90ef3a0 100644 --- a/src/progress/mod.rs +++ b/src/progress/mod.rs @@ -5,9 +5,13 @@ //! (where you have a fixed start and end) and indeterminate (infinite; it will go and go until you //! tell it to stop). //! -//! ```rust,compile_fail +//! ```rust,no_run +//! use cacao::progress::ProgressIndicator; +//! use cacao::view::View; +//! use crate::cacao::layout::Layout; //! let indicator = ProgressIndicator::new(); //! indicator.set_indeterminate(true); +//! let my_view : View<()> = todo!(); //! my_view.add_subview(&indicator); //! ```