mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-20 09:03:28 +00:00
note for stash method, a few other updates
This commit is contained in:
parent
e8f165000c
commit
9e888252c1
1 changed files with 4 additions and 9 deletions
|
|
@ -593,6 +593,8 @@ impl Gfx {
|
||||||
/// If `blocking` is `true`, the function will wait until the graphics server confirms that the state
|
/// If `blocking` is `true`, the function will wait until the graphics server confirms that the state
|
||||||
/// has been stashed, otherwise it will return immediately without waiting for confirmation.
|
/// has been stashed, otherwise it will return immediately without waiting for confirmation.
|
||||||
///
|
///
|
||||||
|
/// NOTE: the top 34 lines will not be stashed, as this is the area where the status bar is drawn.
|
||||||
|
///
|
||||||
/// # Example
|
/// # Example
|
||||||
/// ```
|
/// ```
|
||||||
/// use graphics_server::Gfx;
|
/// use graphics_server::Gfx;
|
||||||
|
|
@ -620,13 +622,6 @@ impl Gfx {
|
||||||
/// The stashed state can be restored using this function after it has been saved using the `stash`
|
/// The stashed state can be restored using this function after it has been saved using the `stash`
|
||||||
/// function. This is useful for reverting to a previous state after making temporary changes.
|
/// function. This is useful for reverting to a previous state after making temporary changes.
|
||||||
///
|
///
|
||||||
/// <details>
|
|
||||||
/// <summary>Example Image</summary>
|
|
||||||
///
|
|
||||||
/// 
|
|
||||||
///
|
|
||||||
/// </details>
|
|
||||||
///
|
|
||||||
/// # Example
|
/// # Example
|
||||||
/// ```
|
/// ```
|
||||||
/// use graphics_server::{DrawStyle, Gfx, Line, PixelColor, Point, Rectangle};
|
/// use graphics_server::{DrawStyle, Gfx, Line, PixelColor, Point, Rectangle};
|
||||||
|
|
@ -647,10 +642,10 @@ impl Gfx {
|
||||||
///
|
///
|
||||||
/// // Clear the screen
|
/// // Clear the screen
|
||||||
/// let screensize = gfx.screen_size().expect("Couldn't get screen size");
|
/// let screensize = gfx.screen_size().expect("Couldn't get screen size");
|
||||||
/// let blackout = Rectangle::new_with_style(
|
/// let whiteout = Rectangle::new_with_style(
|
||||||
/// Point::new(0, 0),
|
/// Point::new(0, 0),
|
||||||
/// screensize,
|
/// screensize,
|
||||||
/// DrawStyle::new(PixelColor::Dark, PixelColor::Dark, 1),
|
/// DrawStyle::new(PixelColor::Light, PixelColor::Light, 1),
|
||||||
/// );
|
/// );
|
||||||
/// gfx.draw_rectangle(blackout).unwrap();
|
/// gfx.draw_rectangle(blackout).unwrap();
|
||||||
/// gfx.flush().unwrap();
|
/// gfx.flush().unwrap();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue