Navigation
API > API/Plugins > API/Plugins/DMXPixelMappingEditorWidgets
Inheritance Hierarchy
- TSharedFromThis
- FDMXPixelMappingComponentWidget
References
| Module | DMXPixelMappingEditorWidgets |
| Header | /Engine/Plugins/VirtualProduction/DMX/DMXPixelMapping/Source/DMXPixelMappingEditorWidgets/Public/DMXPixelMappingComponentWidget.h |
| Include | #include "DMXPixelMappingComponentWidget.h" |
Syntax
class FDMXPixelMappingComponentWidget : public TSharedFromThis< FDMXPixelMappingComponentWidget >
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bLabelAbove | If true, the label is drawn above the box, else inside | |
| TSharedPtr< SDMXPixelMappingComponentBox > | ComponentBox | The component widget | |
| TSharedPtr< SDMXPixelMappingComponentLabel > | ComponentLabel | The label widget | |
| SConstraintCanvas::FSlot * | ComponentSlot | The canvas slot of the component widget | |
| SConstraintCanvas::FSlot * | LabelSlot | The canvas slot of the label widget | |
| TSharedPtr< SConstraintCanvas > | OuterCanvas | When added to a canvas, the canvas it was added to |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FDMXPixelMappingComponentWidget
(
TSharedPtr< SDMXPixelMappingComponentBox > InComponentBox, |
Constructs the class, optionally with custom widgets |
Destructors
| Type | Name | Description | |
|---|---|---|---|
| Destructor |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AddToCanvas
(
const TSharedRef< SConstraintCanvas >& Canvas, |
Adds the widgets to a canvas. If it already resides in a canvas it is removed from that. | |
| FLinearColor | GetColor () |
Retuns the color of the widget | |
| const TSharedPtr< SDMXPixelMappingComponentBox > & | |||
| const TSharedPtr< SDMXPixelMappingComponentLabel > & | |||
| FVector2D | GetLocalSize () |
Sets the size of both widgets | |
| void | Adds the widgets to a canvas. Needs to be assigned to a canvas already. | ||
| void | SetColor
(
const FLinearColor& Color |
Sets the color of the widget | |
| void | SetIDVisibility
(
bool bVisible |
Sets if the ID text of is visible | |
| void | SetLabelText
(
const FText& Text |
Sets the label text | |
| void | SetPosition
(
const FVector2D& LocalPosition |
Sets the position in the canvas it was added to. | |
| void | SetSize
(
const FVector2D& LocalSize |
Sets the size on both widgets | |
| void | SetVisibility
(
EVisibility Visibility |
Sets the visibility of the widget | |
| void | SetZOrder
(
float ZOrder |
Sets the position in a canvas. Needs to be assigned to a canvas already. |