Base slate class for widgets that can display some render resource.
More...
#include <SVisualImageBase.h>
template<class DerivedT>
class SVisualImageBase< DerivedT >
Base slate class for widgets that can display some render resource.
Utilizes CRTP with double dispatch for derived classes, template function is SVisualImageBase::ConvertToBrush.
- Parameters
-
- See also
- UVisualImageBase
◆ ConvertToBrush()
template<class DerivedT >
|
inlinefinalprotectedvirtual |
◆ GetFinalColorAndOpacity()
template<class DerivedT >
const FLinearColor SVisualImageBase< DerivedT >::GetFinalColorAndOpacity |
( |
const FWidgetStyle & | InWidgetStyle | ) |
const |
|
inlineprotected |
- Parameters
-
InWidgetStyle | base widget style |
- Returns
- color and opacity to be applied to the resource
◆ GetFinalResource()
template<class DerivedT >
Resource to be displayed by the widget.
- Returns
- render resource
◆ GetImageSize()
template<class DerivedT >
- Returns
- slate size of the resource
◆ IsResourceValid()
template<class DerivedT >
Used during resource-to-brush conversion to stop it early when resource is invalid.
- Returns
- validity of the supplied resource
◆ MakeCustomGeometry()
template<class DerivedT >
FGeometry SVisualImageBase< DerivedT >::MakeCustomGeometry |
( |
const FGeometry & | AllotedGeometry | ) |
const |
|
inlineprotected |
- Parameters
-
AllotedGeometry | base geometry for this widget |
- Returns
- geometry of this widget
◆ OnPaint()
template<class DerivedT >
int32 SVisualImageBase< DerivedT >::OnPaint |
( |
const FPaintArgs & | Args, |
|
|
const FGeometry & | AllottedGeometry, |
|
|
const FSlateRect & | MyCullingRect, |
|
|
FSlateWindowElementList & | OutDrawElements, |
|
|
int32 | LayerId, |
|
|
const FWidgetStyle & | InWidgetStyle, |
|
|
bool | bParentEnabled ) const |
|
inlinefinaloverrideprotectedvirtual |
Paints render resource as a brush after applying all modifiers.
- Parameters
-
Args | contains information about paint of this widget |
AllottedGeometry | base geometry for this widget |
MyCullingRect | culling bounds of this widget |
OutDrawElements | elements to draw in the slate window |
LayerId | layer on which elements should be drawn |
InWidgetStyle | base widget appearance info |
bParentEnabled | is parent widget enabled |
◆ PostSlateDrawElementExtension()
template<class DerivedT >
◆ PreSlateDrawElementExtension()
template<class DerivedT >
The documentation for this class was generated from the following file: