# Class TCefScrollViewRef

Description
Hierarchy
Methods

## Unit

uCEFScrollView

## Declaration

`type TCefScrollViewRef = class(TCefViewRef, ICefScrollView)`

## Description

A ScrollView will show horizontal and/or vertical scrollbars when necessary based on the size of the attached content view. Methods must be called on the browser process UI thread unless otherwise indicated.

<see href="https://bitbucket.org/chromiumembedded/cef/src/master/include/capi/views/cef_scroll_view_capi.h">CEF source file: /include/capi/views/cef_scroll_view_capi.h (cef_scroll_view_t))

## Hierarchy

- TInterfacedObject
- TCefBaseRefCountedRef
- TCefViewRef
- TCefScrollViewRef

## Overview

### Methods

Protected | `procedure SetContentView(const view: ICefView);`
Protected | `function GetContentView: ICefView;`
Protected | `function GetVisibleContentRect: TCefRect;`
Protected | `function HasHorizontalScrollbar: boolean;`
Protected | `function GetHorizontalScrollbarHeight: Integer;`
Protected | `function HasVerticalScrollbar: boolean;`
Protected | `function GetVerticalScrollbarWidth: Integer;`
Public | `class function UnWrap(data: Pointer): ICefScrollView;`
Public | `class function CreateScrollView(const delegate: ICefViewDelegate): ICefScrollView;`

## Description

### Methods

Protected | `procedure SetContentView(const view: ICefView);`
Set the content View. The content View must have a specified size (e.g. via ICefView.SetBounds or ICefViewDelegate.GetPreferredSize).

Protected | `function GetContentView: ICefView;`
Returns the content View.

Protected | `function GetVisibleContentRect: TCefRect;`
Returns the visible region of the content View.

Protected | `function HasHorizontalScrollbar: boolean;`
Returns true (1) if the horizontal scrollbar is currently showing.

Protected | `function GetHorizontalScrollbarHeight: Integer;`
Returns the height of the horizontal scrollbar.

Protected | `function HasVerticalScrollbar: boolean;`
Returns true (1) if the vertical scrollbar is currently showing.

Protected | `function GetVerticalScrollbarWidth: Integer;`
Returns the width of the vertical scrollbar.

Public | `class function UnWrap(data: Pointer): ICefScrollView;`
Returns a ICefScrollView instance using a PCefScrollView data pointer.

Public | `class function CreateScrollView(const delegate: ICefViewDelegate): ICefScrollView;`
Create a new ScrollView.

Generated by PasDoc 1.0.4.