focus: Does widget have focus

Description Usage Arguments

View source: R/methods.R

Description

a widget has focus if it will receive input events

For some widgets, this sets user focus (e.g. gedit gets focus for typing). For others, settig the focus calls the raise methods. (for gwindow, it will raise the window)

Usage

1
2
3
4
5
6
7
8
focus(obj)

## Default S3 method:
focus(obj)

focus(obj) <- value

focus(obj) <- value

Arguments

obj

object

value

logical. Set focus state.


gWidgets2 documentation built on Jan. 11, 2022, 1:07 a.m.