Cogito, ergo sum
UE3:UIList native functions (UT3)
Object >> UIRoot >> UIScreenObject >> UIObject >> UIList (native functions) |
Contents
- 1 Native functions
- 1.1 CalculateIndexFromCursorLocation
- 1.2 CanSelectElement
- 1.3 ClearBoundDataStores
- 1.4 FindItemIndex
- 1.5 GetBoundDataStores
- 1.6 GetClientRegion
- 1.7 GetColumnWidth
- 1.8 GetCurrentItem
- 1.9 GetDataStoreBinding
- 1.10 GetElementValue
- 1.11 GetItemCount
- 1.12 GetMaxNumVisibleColumns
- 1.13 GetMaxNumVisibleRows
- 1.14 GetMaxVisibleElementCount
- 1.15 GetResizeColumn
- 1.16 GetRowHeight
- 1.17 GetSelectedItems
- 1.18 GetTotalColumnCount
- 1.19 GetTotalRowCount
- 1.20 IsElementAutoSizingEnabled
- 1.21 IsElementEnabled
- 1.22 IsHotTrackingEnabled
- 1.23 NotifyDataStoreValueUpdated
- 1.24 RefreshSubscriberValue
- 1.25 RemoveElement
- 1.26 SaveSubscriberValue
- 1.27 ScrollVertical
- 1.28 SetColumnCount
- 1.29 SetDataStoreBinding
- 1.30 SetHotTracking
- 1.31 SetIndex
- 1.32 SetRowCount
- 1.33 SetTopIndex
- UIList native functions in other games:
- UDK
This is an auto-generated page and may need human attention. Please remove the {{autogenerated}} tag if the page seems reasonably complete or replace it with the {{expand}} tag if the page is not yet complete. |
Native functions[edit]
CalculateIndexFromCursorLocation[edit]
Calculates the index of the element under the mouse or joystick cursor
Parameters:
- bRequireValidIndex - specify FALSE to return the calculated index, regardless of whether the index is valid or not. Useful for e.g. drag-n-drop operations where you want to drop at the end of the list.
Returns:
- the index [into the Items array] for the element under the mouse/joystick cursor, or INDEX_NONE if the mouse is not over a valid element.
CanSelectElement[edit]
Determines whether the specified list element can be selected.
Parameters:
- ElementIndex - the index into the Items array for the element to query
Returns:
- true if the specified element can enter the ELEMENT_Selected state. FALSE if the index specified is invalid or cannot be selected.
ClearBoundDataStores[edit]
Specified by: UIDataStoreSubscriber.ClearBoundDataStores
Notifies this subscriber to unbind itself from all bound data stores
FindItemIndex[edit]
Finds the index for the element with the specified text.
Parameters:
- StringValue - the value to find
- CellIndex - for lists which have linked columns or rows, indicates which column/row to check
Returns:
- the index [into the Items array] for the element with the specified value, or INDEX_NONE if not found.
GetBoundDataStores[edit]
Specified by: UIDataStoreSubscriber.GetBoundDataStores
Retrieves the list of data stores bound by this subscriber.
Parameters:
- out_BoundDataStores - receives the array of data stores that subscriber is bound to.
GetClientRegion[edit]
Returns the width and height of the bounding region for rendering the cells, taking into account whether the scrollbar and column header are displayed.
GetColumnWidth[edit]
Returns the width of the specified column.
Parameters:
- ColumnIndex - the index for the column to get the width for. If the index is invalid, the list's configured CellWidth is returned instead.
- bColHeader - specify TRUE to apply HeaderCellPadding instead of CellPadding.
- bReturnUnformattedValue - specify TRUE to return a value determined by the size of a typical character from the font applied to the cell; otherwise, uses the cell string's calculated StringExtent, which will include any scaling that has been applied.
GetCurrentItem[edit]
Returns the value of the element associated with the current list index
Returns:
- the value of the element at Index; this is not necessarily an index into the UIList.Items array; rather, it is the value of the UIList.Items element located at Index
GetDataStoreBinding[edit]
Specified by: UIDataStoreSubscriber.GetDataStoreBinding
Retrieves the markup string corresponding to the data store that this object is bound to.
Parameters:
- BindingIndex - optional parameter for indicating which data store binding is being requested for those objects which have multiple data store bindings. How this parameter is used is up to the class which implements this interface, but typically the "primary" data store will be index 0.
Returns:
- a datastore markup string which resolves to the datastore field that this object is bound to, in the format: <DataStoreTag:DataFieldTag>
GetElementValue[edit]
Returns the text value for the specified element. (temporary)
Parameters:
- ElementIndex - index [into the Items array] for the value to return.
- CellIndex - for lists which have linked columns or rows, indicates which column/row to retrieve.
Returns:
- the value of the specified element, or an empty string if that element doesn't have a text value.
GetItemCount[edit]
Returns the number of elements in the list.
Returns:
- the number of elements in the list
GetMaxNumVisibleColumns[edit]
Returns the maximum number of columns that can be displayed in the list, given its current size and configuration.
GetMaxNumVisibleRows[edit]
Returns the maximum number of rows that can be displayed in the list, given its current size and configuration.
GetMaxVisibleElementCount[edit]
Returns the maximum number of elements that can be displayed by the list given its current size and configuration.
GetResizeColumn[edit]
If the mouse is over a column boundary, returns the index of the column that would be resized, or INDEX_NONE if the mouse is not hovering over a column boundary.
Parameters:
- ClickedCell - will be filled with information about which cells the cursor is currently over
Returns:
- if the cursor is within ResizeBufferPixels of a column boundary, the index of the column the left of the cursor; INDEX_NONE otherwise.
Note: noexport to allow the C++ version of this function to have a slightly different signature.
GetRowHeight[edit]
Returns the width of the specified row.
Parameters:
- RowIndex - the index for the row to get the width for. If the index is invalid, the list's configured RowHeight is returned instead.
- bColHeader - specify TRUE to apply HeaderCellPadding instead of CellPadding.
- bReturnUnformattedValue - specify TRUE to return a value determined by the size of a typical character from the font applied to the cell; otherwise, uses the cell string's calculated StringExtent, which will include any scaling that has been applied.
GetSelectedItems[edit]
Returns the items that are currently selected.
Returns:
- an array of values that represent indexes into the data source's data array for the list elements that are selected. these indexes are NOT indexes into the UIList.Items array; rather, they are the values of the UIList.Items elements which correspond to the selected items
GetTotalColumnCount[edit]
Returns the total number of columns in this list.
GetTotalRowCount[edit]
Returns the total number of rows in this list.
IsElementAutoSizingEnabled[edit]
Returns whether element size is determined by the elements themselves. For lists with linked columns, returns whether the item height is autosized; for lists with linked rows, returns whether item width is autosized.
IsElementEnabled[edit]
Determines whether the specified list element is disabled by the data source bound to this list.
Parameters:
- ElementIndex - the index into the Items array for the element to retrieve the menu state for.
IsHotTrackingEnabled[edit]
Returns the value of bUpdateItemUnderCursor.
NotifyDataStoreValueUpdated[edit]
Specified by: UIDataStoreSubscriber.NotifyDataStoreValueUpdated
Handler for the UIDataStore.OnDataStoreValueUpdated delegate. Used by data stores to indicate that some data provided by the data has changed. Subscribers should use this function to refresh any data store values being displayed with the updated value. notify subscribers when they should refresh their values from this data store.
Parameters:
- SourceDataStore - the data store that generated the refresh notification; useful for subscribers with multiple data store bindings, to tell which data store sent the notification.
- PropertyTag - the tag associated with the data field that was updated; Subscribers can use this tag to determine whether there is any need to refresh their data values.
- SourceProvider - for data stores which contain nested providers, the provider that contains the data which changed.
- ArrayIndex - for collection fields, indicates which element was changed. value of INDEX_NONE indicates not an array or that the entire array was updated.
RefreshSubscriberValue[edit]
Specified by: UIDataStoreSubscriber.RefreshSubscriberValue
Resolves this subscriber's data store binding and updates the subscriber with the current value from the data store.
Returns:
- TRUE if this subscriber successfully resolved and applied the updated value.
RemoveElement[edit]
Removes the specified element from the list.
Parameters:
- ElementToRemove - the element to remove from the list
Returns:
- the index [into the Items array] for the element that was removed, or INDEX_NONE if the element wasn't part of the list.
SaveSubscriberValue[edit]
Specified by: UIDataStorePublisher.SaveSubscriberValue
Resolves this subscriber's data store binding and publishes this subscriber's value to the appropriate data store.
Parameters:
- out_BoundDataStores - contains the array of data stores that widgets have saved values to. Each widget that implements this method should add its resolved data store to this array after data values have been published. Once SaveSubscriberValue has been called on all widgets in a scene, OnCommit will be called on all data stores in this array.
- BindingIndex - optional parameter for indicating which data store binding is being requested for those objects which have multiple data store bindings. How this parameter is used is up to the class which implements this interface, but typically the "primary" data store will be index 0.
Returns:
- TRUE if the value was successfully published to the data store.
ScrollVertical[edit]
Handler for vertical scrolling activity PositionChange should be a number of nudge values by which the slider was moved The nudge value in the UIList slider is equal to one list Item.
Parameters:
- Sender - the scrollbar that generated the event.
- PositionChange - indicates how many items to scroll the list by
- bPositionMaxed - indicates that the scrollbar's marker has reached its farthest available position, unused in this function
SetColumnCount[edit]
Changes the list's ColumnCount to the value specified.
SetDataStoreBinding[edit]
Specified by: UIDataStoreSubscriber.SetDataStoreBinding
Sets the data store binding for this object to the text specified.
Parameters:
- MarkupText - a markup string which resolves to data exposed by a data store. The expected format is: <DataStoreTag:DataFieldTag>
- BindingIndex - optional parameter for indicating which data store binding is being requested for those objects which have multiple data store bindings. How this parameter is used is up to the class which implements this interface, but typically the "primary" data store will be index 0.
SetHotTracking[edit]
Change the value of bUpdateItemUnderCursor to the specified value.
SetIndex[edit]
Sets the list's index to the value specified and activates the appropriate notification events.
Parameters:
- NewIndex - An index into the Items array that should become the new Index for the list.
- bClampValue - if TRUE, NewIndex will be clamped to a valid value in the range of 0 -> ItemCount - 1
- bSkipNotification - if TRUE, no events are generated as a result of updating the list's index.
Returns:
- TRUE if the list's Index was successfully changed.
SetRowCount[edit]
Changes the list's RowCount to the value specified.
SetTopIndex[edit]
Changes the list's first visible item to the element at the index specified.
Parameters:
- NewTopIndex - an index into the Items array that should become the new first visible item.
- bClampValue - if TRUE, NewTopIndex will be clamped to a valid value in the range of 0 - ItemCount - 1
Returns:
- TRUE if the list's TopIndex was successfully changed.