比例组件 (Scale)
Gtk::Scale 组件 (或者说“滑块”) 可以让用户在指定范围内直观地调节它的值。例如,你可以用它来调节一副预览图片的放大率、或者控制颜色的亮度,或者指定多少分钟后执行屏幕保护。
As with Scrollbars, the orientation can be either horizontal or vertical. The default constructor creates an Adjustment with all of its values set to 0.0. This isn't useful so you will need to set some Adjustment details to get meaningful behaviour.
- 6.2.1. 一些有用的方法