WOWCube Docs logo
WOWCube Docs
Mission Control
Section Shortcuts
APIExamplesSourceWOWConnectChangelog
Filters
SDK and language defaults persist in cookies.
SDK version
Navigation Tree
Collapsed by default, focused on the active path.
Made byMcKay Seamons
GitHub
  1. Home
  2. Docs
  3. API
  4. Cubios::Gfx::QRCode
Mission NodeSDK 6.3C++gfx engine

Cubios::Gfx::QRCode

Cubios::Gfx::QRCode Constructors QRCode Summary Constructs an object for rendering QR Code Arguments data QR code data payload t Transform object that holds ...

API / SDK 6.3 / C++ / gfx engine

Cubios::Gfx::QRCode

Constructors

QRCode

Summary

Constructs an object for rendering QR Code

Arguments

  • data - QR code data payload
  • t - Transform object that holds initial screen position, rotation and mirroring mode of the QR code image

Synopsis

Cubios::Gfx::QRCode
CPP
1QRCode(std::string data, const Cubios::Math::Transform& t)
2
Wrapped for easier reading. Turn wrap off to inspect exact line lengths.

Arguments

  • data - QR code data payload
  • x - x screen coordinate of initial postion of the QR code image
  • y - y screen coordinate of initial postion of the QR code image

Synopsis

Cubios::Gfx::QRCode
CPP
1QRCode(std::string data, float x, float y)
2
Wrapped for easier reading. Turn wrap off to inspect exact line lengths.

Arguments

  • data - QR code data payload
  • t - Transform object that holds initial screen position, rotation and mirroring mode of the QR code image
  • size - size of the QR code element that represents one bit of encoded data

Synopsis

Cubios::Gfx::QRCode
CPP
1QRCode(std::string data, const Cubios::Math::Transform& t, u32_t size)
2
Wrapped for easier reading. Turn wrap off to inspect exact line lengths.

Arguments

  • data - QR code data payload
  • x - x screen coordinate of initial postion of the QR code image
  • y - y screen coordinate of initial postion of the QR code image
  • size - size of the QR code element that represents one bit of encoded data

Synopsis

Cubios::Gfx::QRCode
CPP
1QRCode(std::string data, float x, float y, u32_t size)
2
Wrapped for easier reading. Turn wrap off to inspect exact line lengths.

Arguments

  • qr - QR code object which parameters will be used to initialize the new QR code object

Synopsis

Cubios::Gfx::QRCode
CPP
1QRCode(const QRCode& qr)
2
Wrapped for easier reading. Turn wrap off to inspect exact line lengths.

Public Methods

SetSize

Summary

Sets the size of a QR code element that represents one bit of encoded data

Arguments

  • size - size of an element

Output

Returns a pointer to the object to which the change was applied

Synopsis

Cubios::Gfx::QRCode
CPP
1Cubios::SceneObject* SetSize(u32_t size)
2
Wrapped for easier reading. Turn wrap off to inspect exact line lengths.

SetColor

Summary

Sets the foreground color of the QR code

Arguments

  • color - foreground color

Output

Returns a pointer to the object to which the change was applied

Synopsis

Cubios::Gfx::QRCode
CPP
1Cubios::SceneObject* SetColor(const Math::Color& color)
2
Wrapped for easier reading. Turn wrap off to inspect exact line lengths.

SetBackgroundColor

Summary

Sets the background color of the QR code

Arguments

  • color - background color

Output

Returns a pointer to the object to which the change was applied

Synopsis

Cubios::Gfx::QRCode
CPP
1Cubios::SceneObject* SetBackgroundColor(const Math::Color& color)
2
Wrapped for easier reading. Turn wrap off to inspect exact line lengths.

SetData

Summary

Sets the data that will be encoded in the QR code

Arguments

  • data - string data to encode, 256 characters max

Output

Returns a pointer to the object to which the change was applied

Synopsis

Cubios::Gfx::QRCode
CPP
1Cubios::SceneObject* SetData(std::string data)
2
Wrapped for easier reading. Turn wrap off to inspect exact line lengths.

Public Members

ColorZeros

Summary

Current background color

Synopsis

Cubios::Gfx::QRCode
CPP
1Math::Color ColorZeros
2
Wrapped for easier reading. Turn wrap off to inspect exact line lengths.

ColorOnes

Summary

Current foreground color

Synopsis

Cubios::Gfx::QRCode
CPP
1Math::Color ColorOnes
2
Wrapped for easier reading. Turn wrap off to inspect exact line lengths.

Size

Summary

Current element size

Synopsis

Cubios::Gfx::QRCode
CPP
1Math::Color Size
2
Wrapped for easier reading. Turn wrap off to inspect exact line lengths.

Jump Grid

On This Page

ConstructorsQRCodePublic MethodsSetSizeSetColorSetBackgroundColorSetDataPublic MembersColorZerosColorOnesSize
Context Rail

Related nodes

Cubios::Math
API / SDK 6.3 / C++ / gfx engine
Cubios::Math::Vec2
API / SDK 6.3 / C++ / gfx engine
Cubios::Math::Transform
API / SDK 6.3 / C++ / gfx engine
Cubios::Math::Color
API / SDK 6.3 / C++ / gfx engine
Previous Node
Cubios::SaveMessage
API / SDK 6.3 / C++ / gfx engine
Next Node
Cubios::Scramble
API / SDK 6.3 / C++ / gfx engine