Skip to content

Commit

Permalink
Merge pull request #16 from thingsiplay/patch-1
Browse files Browse the repository at this point in the history
Layouts.md: forgotten group and unneeded mut
  • Loading branch information
MoAlyousef authored Feb 29, 2024
2 parents 6d42fe8 + cc6ec1c commit 683efb4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Layouts.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ use fltk::{prelude::*, *};
fn main() {
let a = app::App::default().with_scheme(app::Scheme::Gtk);
let mut win = window::Window::default().with_size(400, 300);
let mut flex = Flex::new(0, 0, 400, 300, None);
let mut flex = group::Flex::new(0, 0, 400, 300, None);
flex.set_type(group::FlexType::Column);
let expanding = button::Button::default().with_label("Expanding");
let mut normal = button::Button::default().with_label("Normal");
flex.fixed(&mut normal, 30);
let normal = button::Button::default().with_label("Normal");
flex.fixed(&normal, 30);
flex.end();
win.end();
win.show();
Expand Down Expand Up @@ -150,4 +150,4 @@ These methods are namely:
- `center_x(&widget)`: places the widget at the center (x-axis) of the passed widget.
- `center_y(&widget)`: places the widget at the center (y-axis) of the passed widget.
- `size_of(&widget)`: constructs the widget with the same size of the passed widget.
- `size_of_parent()`: constructs the widget with the same size of its parent.
- `size_of_parent()`: constructs the widget with the same size of its parent.

0 comments on commit 683efb4

Please sign in to comment.