FRectangle
目标区域相对于整个屏幕或窗口的位置,如不填,则表示整个屏幕或窗口。
C++
USTRUCT(BlueprintType)
struct FRectangle
{
GENERATED_BODY()
public:
UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|Rectangle")
int x = 0;
UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|Rectangle")
int y = 0;
UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|Rectangle")
int width = 0;
UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|Rectangle")
int height = 0;
FRectangle(){}
FRectangle(const agora::rtc::Rectangle & AgoraData){
x = AgoraData.x;
y = AgoraData.y;
width = AgoraData.width;
height = AgoraData.height;
}
agora::rtc::Rectangle CreateAgoraData() const {
agora::rtc::Rectangle AgoraData;
AgoraData.x = x;
AgoraData.y = y;
AgoraData.width = width;
AgoraData.height = height;
return AgoraData;
}
void FreeAgoraData(agora::rtc::Rectangle& AgoraData) const {
}
};
x
左上角的横向偏移。
y
左上角的纵向偏移。
width
目标区域的宽度。
height
目标区域的高度。