Wrappers.Roottype t = [ `root ] Gobject.objval from_gobject : 'a Gobject.obj -> tval set_focus :
t ->
[ `widget | `initially_unowned | `object_ ] Gobject.obj option ->
unitIf @focus is not the current focus widget, and is focusable, sets it as the focus widget for the root.
If @focus is %NULL, unsets the focus widget for the root.
To set the focus to a particular widget in the root, it is usually more convenient to use method@Gtk.Widget.grab_focus instead of this function.
val get_focus :
t ->
[ `widget | `initially_unowned | `object_ ] Gobject.obj optionRetrieves the current focused widget within the root.
Note that this is the widget that would have the focus if the root is active; if the root is not focused then `gtk_widget_has_focus (widget)` will be %FALSE for the widget.
val get_display : t -> Ocgtk_gdk.Gdk.Wrappers.Display.tReturns the display that this `GtkRoot` is on.