Skip to content

XUITabBarRenderer

Description

Tab bars look different on different operating systems and even between different applications on the same operating system. To handle this, XUITabBar outsources its appearance to a Renderer. Renderers are classes that implement this interface. They expose methods to XUITabBar to alter its appearance. Several example renderers are included with XUI.

Methods

Name Parameters Returns
BufferWidth Integer
Constructor owner As XUITabBar
LeftMenuButtonWidth Double
Name String
Owner XUITabBar
Render ownerGraphics As Graphics, scrollPosX As Integer, needsFullRedraw As Boolean
RightMenuButtonWidth Double
SupportsLeftMenuButton Boolean
SupportsRightMenuButton Boolean
TabBarHeight Integer

Method Descriptions

BufferWidth() As Integer The current width of the buffer in points.


Constructor(owner As XUITabBar) owner is the XUITabBar that owns this renderer.


LeftMenuButtonWidth() As Double The width of the left menu button (if supported by this renderer).


Name() As String The name of this renderer.


Owner() As XUITabBar The tab bar this renderer operates on.


Render(ownerGraphics As Graphics, scrollPosX As Integer, needsFullRedraw As Boolean) Returns the image to be drawn to the tab bar's graphics context in its Paint event.


RightMenuButtonWidth() As Double The width of the right menu button (if supported by this renderer).


SupportsLeftMenuButton() As Boolean True if this renderer supports the concept of a left menu button.


SupportsRightMenuButton() As Boolean True if this renderer supports the concept of a right menu button.


TabBarHeight() As Integer Returns the height the tab bar will be rendered at.