开发者

In Gtk2, what's the difference between "active" and "focus"?

开发者 https://www.devze.com 2023-02-06 09:34 出处:网络
Spec开发者_如何学Cifically I\'m interested in knowing what the difference is between a Gtk Window that has focus and one that is active.\"Active\" is a state (see the GtkStateType enumeration). A widg

Spec开发者_如何学Cifically I'm interested in knowing what the difference is between a Gtk Window that has focus and one that is active.


"Active" is a state (see the GtkStateType enumeration). A widget is always in exactly one state.

Having the focus means that the widget receives keyboard input, if any. Only one widget per top-level window can have the focus. Only widgets that actually can receive keyboard input are focusable, see the text for the gtk_widget_grab_focus(). I don't think that the actual window can have the focus.

0

精彩评论

暂无评论...
验证码 换一张
取 消