Rule-class: Rule widget

RuleR Documentation

Rule widget

Description

See rule().

Super class

Widget -> Rule

Public fields

orientation

"horizontal" or "vertical".

title

Optional title in the middle of a horizontal rule.

Methods

Public methods

Inherited methods

Rule$new()

Create a rule. See rule().

Usage
Rule$new(
  orientation = "horizontal",
  title = NULL,
  id = NULL,
  classes = NULL,
  style = NULL
)
Arguments
orientation

Orientation.

title

Title.

id, classes, style

See Widget.


Rule$default_style()

The built-in style.

Usage
Rule$default_style()

Rule$paint()

Paint the line.

Usage
Rule$paint(buffer, area, st)
Arguments
buffer

A ScreenBuffer.

area

Visible part of the region.

st

Computed style.


Rule$clone()

The objects of this class are cloneable with this method.

Usage
Rule$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.


termr documentation built on Oct. 21, 2026, 5:13 p.m.