mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-09 05:06:43 +01:00
rename Widget::layout to Widget::min_size
This commit is contained in:
parent
d652feb705
commit
f018988567
10 changed files with 100 additions and 98 deletions
|
|
@ -24,7 +24,7 @@ struct TestArea(u16, u16);
|
|||
|
||||
impl Widget for TestArea {
|
||||
type Engine = TestEngine;
|
||||
fn layout (&self, to: [u16;2]) -> Perhaps<[u16;2]> {
|
||||
fn min_size (&self, to: [u16;2]) -> Perhaps<[u16;2]> {
|
||||
Ok(Some([to[0], to[1], self.0, self.1]))
|
||||
}
|
||||
fn render (&self, to: &mut Self::Engine) -> Perhaps<[u16;4]> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue