Updated docs for update calles

This commit is contained in:
Daniel Collin 2022-03-27 09:55:46 +02:00
parent abbe3db980
commit 48a41a9f6e

View file

@ -306,7 +306,8 @@ impl Window {
/// The upper 8-bits are ignored, the next 8-bits are for the red channel, the next 8-bits /// The upper 8-bits are ignored, the next 8-bits are for the red channel, the next 8-bits
/// afterwards for the green channel, and the lower 8-bits for the blue channel. /// afterwards for the green channel, and the lower 8-bits for the blue channel.
/// ///
/// Notice that the buffer needs to be at least the size of the created window. /// Notice that the buffer needs to be at least the size of the created window. Also only one of
/// `update_with_buffer` or `update` should be called for updating a single window.
/// ///
/// # Examples /// # Examples
/// ///
@ -365,6 +366,10 @@ impl Window {
/// pressing the close button on the window) It's up to the user to make sure that this is /// pressing the close button on the window) It's up to the user to make sure that this is
/// being checked and take action depending on the state. /// being checked and take action depending on the state.
/// ///
/// Notice that when using this function then `update_with_buffer` should not be called for the same window.
/// Only one of the functions should be used.
///
///
/// # Examples /// # Examples
/// ///
/// ```no_run /// ```no_run