QrCodePanel

class AnchorLinkTransportSharp::Src::Transports::UiToolkit::Ui::QrCodePanel
  : public PanelBase

Summary

MembersDescriptions

private readonly Vector3 _qrCurrentSize= new Vector3(1, 1)

private SigningRequest _request

private Button _launchAnchorButton

private VisualElement _qrCodeBox

private VisualElement _readyToCopy

private VisualElement _alreadyCopied

private VisualElement _anchorFootnote

private VisualElement _anchorLinkCopy

private Label _subtitleLabel

private Label _copyLabel

private Label _downloadNowLabel

private Label _linkedCopiedLabel

private Label _loginTitleLabel

private void Start()

private void BindButtons()

private IEnumerator SetText(float counterDuration)

private Texture2D StringToQrCodeTexture2D(string textForEncoding, int textureWidth, int textureHeight, Color32 baseColor, Color32 pixelColor)

Call this to generate a QR code based on the parameters passed.

private Color32[] StringEncoder(string textForEncoding, int width, int height, Color32 baseColor, Color32 pixelColor)

private void CopyToClipboard(string targetString)

Puts the passed string into the clipboard buffer to be pasted elsewhere.

Members

private readonly Vector3 _qrCurrentSize= new Vector3(1, 1)

private SigningRequest _request

private Button _launchAnchorButton

private VisualElement _qrCodeBox

private VisualElement _readyToCopy

private VisualElement _alreadyCopied

private VisualElement _anchorFootnote

private VisualElement _anchorLinkCopy

private Label _subtitleLabel

private Label _copyLabel

private Label _downloadNowLabel

private Label _linkedCopiedLabel

private Label _loginTitleLabel

private void Start()

private void BindButtons()

private IEnumerator SetText(float counterDuration)

private Texture2D StringToQrCodeTexture2D(string textForEncoding, int textureWidth, int textureHeight, Color32 baseColor, Color32 pixelColor)

Call this to generate a QR code based on the parameters passed.

Parameters

  • textForEncoding The actual texture that will be encoded into a QRCode

  • textureWidth How wide the new texture should be

  • textureHeight How high the new texture should be

Returns

private Color32[] StringEncoder(string textForEncoding, int width, int height, Color32 baseColor, Color32 pixelColor)

private void CopyToClipboard(string targetString)

Puts the passed string into the clipboard buffer to be pasted elsewhere.

Parameters

  • targetString Text to be copied to the buffer

Last updated