Add clipboard argument to Application::update
This commit is contained in:
parent
7eb5127748
commit
ae517b9fa0
18 changed files with 117 additions and 49 deletions
|
|
@ -10,8 +10,8 @@ use iced::pick_list::{self, PickList};
|
|||
use iced::slider::{self, Slider};
|
||||
use iced::time;
|
||||
use iced::{
|
||||
Align, Application, Checkbox, Column, Command, Container, Element, Length,
|
||||
Row, Settings, Subscription, Text,
|
||||
Align, Application, Checkbox, Clipboard, Column, Command, Container,
|
||||
Element, Length, Row, Settings, Subscription, Text,
|
||||
};
|
||||
use preset::Preset;
|
||||
use std::time::{Duration, Instant};
|
||||
|
|
@ -65,7 +65,11 @@ impl Application for GameOfLife {
|
|||
String::from("Game of Life - Iced")
|
||||
}
|
||||
|
||||
fn update(&mut self, message: Message) -> Command<Message> {
|
||||
fn update(
|
||||
&mut self,
|
||||
message: Message,
|
||||
_clipboard: &mut Clipboard,
|
||||
) -> Command<Message> {
|
||||
match message {
|
||||
Message::Grid(message, version) => {
|
||||
if version == self.version {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue