Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
a 是否可以完全Gtk::Widget垂直Gtk::Button填充Gtk::HeaderBar?如果确实有可能,这是如何实现的?
Gtk::Widget
Gtk::Button
Gtk::HeaderBar
如上图所示,HeaderBar无论是否调用Button::set_vexpand(true)、或, 的顶端和底端之间似乎都有一个小空间。Button::set_margin(0)HeaderBar::set_margin(0)HeaderBar::set_spacing(0)
HeaderBar
Button::set_vexpand(true)
Button::set_margin(0)
HeaderBar::set_margin(0)
HeaderBar::set_spacing(0)