MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ make_scrollable()

MAYAFLUX_API Scrollable MayaFlux::Portal::Forma::make_scrollable ( FormaTarget  buf,
Surface &  surface,
Kinesis::AABB2D  viewport,
glm::vec3  background_color = glm::vec3(0.08F, 0.08F, 0.1F),
float  wheel_speed = 0.05F 
)

Construct a scrollable viewport.

Thin wrapper delegating to Scrollable::place(). Preserved as an escape hatch, matching make_collapsible.

Definition at line 171 of file Scrollable.cpp.

177{
178 return Scrollable {}
179 .background_color(background_color)
180 .wheel_speed(wheel_speed)
181 .place(std::move(buf), surface, viewport);
182}
MAYAFLUX_API Scrollable & place(FormaTarget in_buf, Surface &surface, Kinesis::AABB2D viewport)
Register the viewport element, wire wheel scrolling, and populate scroll, offset, buf,...
Scrollable & wheel_speed(float s)
Scrollable & background_color(glm::vec3 c)
A clipped, scroll-offset viewport over content taller than it.

References MayaFlux::Portal::Forma::Scrollable::background_color(), make_scrollable(), MayaFlux::Portal::Forma::Scrollable::place(), and MayaFlux::Portal::Forma::Scrollable::wheel_speed().

Referenced by make_scrollable().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: