.rk.with.window.hints {rkward}R Documentation

Control window placement and style

Description

.rk.with.window.hints can be used to make windows appear in a specific location: attached, detached, or in a named position where a previous window is found. (The latter used for preview windows, importantly). It can also be used to pass "style" hints, importantly indicating that the window is a preview window. All specifications affect newly created windows, only, not existing ones.

Usage

.rk.with.window.hints(expr, placement = "", name = "", style = "")

Arguments

expr

Expression to evaluate, unsually an expression that is expected to create exactly one new window.

placement

a character string specifying either "attached" or "detached" placement, or (if left empty) the default placement for the type of window created.

name

character string specifing a named position. If a name is given, and this position is not yet known, the placement hint (see above) will be followed. If later a second window is created with the same given name, it will replace the first window.

style

character string specifing a style hint. Currently, this can either be "preview" or "" (default), with most types of window not implementing any special behavior for "preview".

Details

NOTE: This function is still somewhat experimental, and it is not guaranteed that it will remain in place, with compatible parameters.

Value

NULL, invisibly.

Author(s)

Thomas Friedrichsmeier rkward-devel@kde.org

Examples


## Not run
.rk.with.window.hints ({
   RK ()
   plot (1, 1)
}, "attached")
## End not run


[Package rkward version 0.6.5 Index]