wisget 想知道GTK中的窗口小部件(使用GTKMM)可以用来实现可移动的按钮外观图片中的东西。还有虚线。
虚线
编辑:小部件应该能够沿时间轨道向左和向右移动,以便设置播放界限。这是一个视频,展示了它的外观。从sescond 37中,它应该是它的行为。 https://wwwww.youtube.com/watch?v=qxxxxevteeumg
看起来不是可以简化这一点的特定小部件。但是,可以使用一个常规按钮,然后使用与GTK按钮相关的各种信号处理程序实现其Drage的方法
wisgetwas wondering what widget in gtk (using gtkmm) could be used to implemented the movable button looking thing in the picture. and also the dotted line.
dotted line
edit: the widget is supposed to be able to move left and right along the time-track to be able to set the play bounds. Here is a video showing how it looks like in after effects. From sescond 37 is how the behaviour for it supposed to be. https://www.youtube.com/watch?v=QxXevteeumg
edit: from what it looks like there isnt a specific widget which could simplify this. However a regular button can be used and then implementing a method for its drage using the various signal handlers associated with a Gtk button
发布评论
评论(1)
没有小部件可以执行此操作(请参阅 widget Gallery )。
但是,您可以使用开罗。在官方的GTKMM书中,有一个示例创建一个自定义时钟使用 。
gtk :: drawdarea
提供了许多您可以连接到的信号。过去,我已经创建了自己的小部件,它效果很好。但是,这是很多工作,因为:
There is no widget that does this (see the widget gallery).
You can, however, add custom widgets using Cairo. In the official Gtkmm book, there is an example for creating a custom clock widget using the
Gtk::DrawingArea
. TheGtk::DrawingArea
offers a lot of signals which you can connect to.I have created my own widgets in the past using this and it worked just fine. However, it was a lot of work because: