GUIPagingHelper

A helper class to control paging of n number of elements in various situations.

namespace Sirenix.Utilities.Editor
{
public class GUIPagingHelper
}

Requirements

Namespace: Sirenix.Utilities.Editor
Assembly: Sirenix.OdinInspector
Version: 2.0.0.0

Fields

Return Type Definition Description
bool IsExpanded Disables the paging, and show all elements.

Constructors

Definition Description
GUIPagingHelper() Initializes a new instance of the GUIPagingHelper class.

Properties

Return Type Definition Description
int CurrentPage Gets or sets the current page.
int ElementCount Gets the total number of elements. Use Update(int) to change the value.
int EndIndex Gets the end index.
bool IsEnabled Gets or sets a value indicating whether this instance is enabled.
bool IsOnFirstPage Gets a value indicating whether this instance is on the frist page.
bool IsOnLastPage Gets a value indicating whether this instance is on the last page.
int NumberOfItemsPerPage Gets or sets the number of items per page.
int PageCount Gets or sets the page count.
int StartIndex Gets the start index.

Methods

Return Type Definition Description
void DrawToolbarPagingButtons(ref Rect, bool, bool, int) Draws right-aligned toolbar paging buttons.
void Update(int) Updates all values based on <paramref>(12748,8) and !:NumberOfItemsPrPage.