Skip to content

XUIInspectorFullWidthButtonItem

Implements XUIInspectorItem

Description

Used to display a full width button in the inspector.

Properties

Name Type Read-Only
Caption String
mBounds Rect
mButtonBounds Rect
mCaption String
mID String
mMouseIsOver Boolean
mOwner WeakRef
mSection WeakRef

Methods

Name Parameters Returns
Bounds Rect
Bounds Assigns b As Rect
CanAcceptTabFocus Boolean
Constructor id As String, buttonCaption As String
DidReceiveTabFocus
Height style As XUIInspectorStyle Double
ID String
LostFocus
MouseDown x As Integer, y As Integer, clickType As XUI.ClickTypes XUIInspectorMouseDownData
MouseExit Boolean
MouseMoved x As Double, y As Double XUIInspectorMouseMoveData
MouseUp x As Integer, y As Integer, clickType As XUI.ClickTypes XUIInspectorMouseUpData
Owner XUIInspector
Owner Assigns inspector As XUIInspector
PopupDismissed
PopupItemSelected index As Integer
Render g As Graphics, x As Double, y As Double, width As Double, style As XUIInspectorStyle Double
Section XUIInspectorSection
Section Assigns section As XUIInspectorSection

Constants

Name Type
BUTTON_HEIGHT Double
HPADDING Double
VPADDING Double

BUTTON_HEIGHT As Double The height of the button.


HPADDING As Double The number of pixels to pad the button to the left and right.


VPADDING As Double The number of pixels to pad the button above and below.


Property Descriptions

Caption As String

The caption to display in the button.


mBounds As Rect

The bounds of this item.


mButtonBounds As Rect

The bounds of the button. Computed in Render().


mCaption As String

The caption to display in the button.


mID As String

Used to identify this item in notifications. You should ensure it is unique within the inspector.


mMouseIsOver As Boolean

True if the mouse is over the button.


mOwner As WeakRef

A weak reference to the inspector this item belongs to.


mSection As WeakRef

A weak reference to the inspector section this item is within. May be Nil.


Method Descriptions

Bounds() As Rect

The bounds of this item within the inspector.

Part of the XUIInspectorItem interface.


Bounds(Assigns b As Rect)

Sets the bounds of this item in the inspector.

Part of the XUIInspectorItem interface.


CanAcceptTabFocus() As Boolean

Returns True if this item is able to accept the focus via the tab key.


Constructor(id As String, buttonCaption As String)

Constructs a new item containing a full width button.


DidReceiveTabFocus()

This item has just received the focus via the tab key.


Height(style As XUIInspectorStyle) As Double

The height of this item given the desired style.

Part of the XUIInspectorItem interface.


ID() As String

Used to identify this item in notifications. You should ensure it is unique within the inspector.

Part of the XUIInspectorItem interface.


LostFocus()

This item just lost the focus.

Part of the XUIInspectorItem interface.


MouseDown(x As Integer, y As Integer, clickType As XUI.ClickTypes) As XUIInspectorMouseDownData

Tells the item that a mouse down event has occurred within its bounds. x, y are the absolute coordinates relative to the inspector (adjusted for scrolling). Returns a MouseDownData instance instructing the inspector how to handle the event or Nil if the click didn't happen in this item.


MouseExit() As Boolean

Used to tell this item that the mouse has just exited it. Returns True if the inspector should redraw.

Part of the XUIInspectorItem interface.


MouseMoved(x As Double, y As Double) As XUIInspectorMouseMoveData

The mouse has just moved over this item. Returns data to inform the inspector how to handle the movement. May return Nil.

Part of the XUIInspectorItem interface.


MouseUp(x As Integer, y As Integer, clickType As XUI.ClickTypes) As XUIInspectorMouseUpData

Tells the item that a mouse up event has occurred within its bounds. x, y are the absolute coordinates relative to the inspector (adjusted for scrolling). Returns a MouseUpData instance instructing the inspector how to handle the event or Nil if the click didn't happen in this item.


Owner() As XUIInspector

A weak reference to the inspector this item belongs to.

Part of the XUIInspectorItem interface.


Owner(Assigns inspector As XUIInspector)

The inspector this item belongs to. A weak reference will be created.

Part of the XUIInspectorItem interface.


PopupDismissed()

Tells this item that any popup it thinks it has displayed has been dismissed with no action.

Part of the XUIInspectorItem interface.


PopupItemSelected(index As Integer)

The entry at index has been selected in this item's popup menu.

Part of the XUIInspectorItem interface.


Render(g As Graphics, x As Double, y As Double, width As Double, style As XUIInspectorStyle) As Double

The item should render itself to the passed graphics context at the specified location. Returns the position of the item's bottom edge.

Part of the XUIInspectorItem interface.


Section() As XUIInspectorSection

A weak reference to the section this item is in.


Section(Assigns section As XUIInspectorSection)

The section this item is within to. A weak reference will be created.