.. default-domain:: cpp .. highlight:: cpp .. namespace:: krpc::services::UI Scroll View =========== .. class:: ScrollView A view onto a panel that is larger than the space available for it, with scroll bars to move around it. Added to a :class:`Canvas` or a :class:`Panel`. .. note:: Add the elements to :func:`ScrollView::content`, not to the scroll view itself. Giving the content a layout and setting its size fitter to the preferred size is the simplest way to have it grow to hold what is put in it. | Base class: :class:`Object` .. container:: inherited-members .. rubric:: Inherited Members * From :class:`Object`: :func:`rect_transform `, :func:`layout_element `, :func:`visible `, :func:`set_visible `, :func:`remove ` .. function:: Panel content() The panel that is scrolled, which the elements to show are added to. .. function:: bool horizontal() .. function:: void set_horizontal(bool value) Whether the view can be scrolled from side to side. .. function:: bool vertical() .. function:: void set_vertical(bool value) Whether the view can be scrolled up and down.