Removed some compile_fail parts
This commit is contained in:
parent
db8af85fed
commit
7c917ee0ea
|
@ -7,7 +7,7 @@
|
||||||
//! Views implement Autolayout, which enable you to specify how things should appear on the screen.
|
//! Views implement Autolayout, which enable you to specify how things should appear on the screen.
|
||||||
//!
|
//!
|
||||||
//! ```rust,compile_fail
|
//! ```rust,compile_fail
|
||||||
//! use cacao::color::rgb;
|
//! use cacao::color::Color;
|
||||||
//! use cacao::layout::{Layout, LayoutConstraint};
|
//! use cacao::layout::{Layout, LayoutConstraint};
|
||||||
//! use cacao::view::View;
|
//! use cacao::view::View;
|
||||||
//! use cacao::window::{Window, WindowDelegate};
|
//! use cacao::window::{Window, WindowDelegate};
|
||||||
|
@ -25,7 +25,7 @@
|
||||||
//! window.set_minimum_content_size(300., 300.);
|
//! window.set_minimum_content_size(300., 300.);
|
||||||
//! self.window = window;
|
//! 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.content.add_subview(&self.red);
|
||||||
//!
|
//!
|
||||||
//! self.window.set_content_view(&self.content);
|
//! self.window.set_content_view(&self.content);
|
||||||
|
|
|
@ -5,9 +5,13 @@
|
||||||
//! (where you have a fixed start and end) and indeterminate (infinite; it will go and go until you
|
//! (where you have a fixed start and end) and indeterminate (infinite; it will go and go until you
|
||||||
//! tell it to stop).
|
//! 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();
|
//! let indicator = ProgressIndicator::new();
|
||||||
//! indicator.set_indeterminate(true);
|
//! indicator.set_indeterminate(true);
|
||||||
|
//! let my_view : View<()> = todo!();
|
||||||
//! my_view.add_subview(&indicator);
|
//! my_view.add_subview(&indicator);
|
||||||
//! ```
|
//! ```
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue