Stream Chat Unreal SDK
Loading...
Searching...
No Matches
AttachmentLayout.h
1// Copyright 2026 Stream.IO, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "CoreMinimal.h"
6
8namespace AttachmentLayout
9{
22FVector2D FitToBudget(FIntPoint Source, float BudgetWidth, float MaxAspect, float DpiScale);
23
34FString WithResizeQuery(const FString& Url, FIntPoint MaxPixels);
35
36} // namespace AttachmentLayout
Working out how much room an inline image gets, kept apart from the widget so it can be tested.
Definition AttachmentLayout.cpp:6
FString WithResizeQuery(const FString &Url, const FIntPoint MaxPixels)
Ask Stream's CDN for an image no bigger than it is about to be drawn.
Definition AttachmentLayout.cpp:32
FVector2D FitToBudget(const FIntPoint Source, const float BudgetWidth, const float MaxAspect, const float DpiScale)
The size, in slate units, to draw an image of the given pixel dimensions at.
Definition AttachmentLayout.cpp:7