let mut main_win = window::DoubleWindow::default()
.with_size(400, 300)
.with_label("MainWin");
let mut btn = button::Button::default()
.with_size(300, 200)
.center_of_parent()
.with_label("FLTKRSFLTKRSFLTKRSFLTKRS");
main_win.end();
btn.set_align(enums::Align::Left);
btn.set_align(enums::Align::Inside | enums::Align::Left);
Bottom
BottomLeft
BottomRight
Center
Clip
ImageBackdrop
ImageMask
ImageNextToText
Inside
Left
LeftBottom
LeftTop
PositionMask
Right
RightBottom
RightTop
TextNextToImage
TextOverImage
Top
TopLeft
TopRight
Wrap
标签:enums,fltk,rs,win,Align,set,btn,Left
From: https://www.cnblogs.com/dgmv/p/17779507.html