Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QSGGeometry::ColoredPoint2D Class Reference

The QSGGeometry::ColoredPoint2D struct is a convenience struct for accessing 2D Points with a color. More...

#include <qsggeometry.h>

+ Collaboration diagram for QSGGeometry::ColoredPoint2D:

Public Member Functions

void set (float nx, float ny, uchar nr, uchar ng, uchar nb, uchar na)
 Sets the position of the vertex to x and y and the color to red, green, blue, and alpha.
 

Public Attributes

float x
 
float y
 
unsigned char r
 
unsigned char g
 
unsigned char b
 
unsigned char a
 

Detailed Description

The QSGGeometry::ColoredPoint2D struct is a convenience struct for accessing 2D Points with a color.

\inmodule QtQuick

Definition at line 92 of file qsggeometry.h.

Member Function Documentation

◆ set()

void QSGGeometry::ColoredPoint2D::set ( float nx,
float ny,
uchar nr,
uchar ng,
uchar nb,
uchar na )
inline

Sets the position of the vertex to x and y and the color to red, green, blue, and alpha.

Definition at line 95 of file qsggeometry.h.

Member Data Documentation

◆ a

unsigned char QSGGeometry::ColoredPoint2D::a

Definition at line 94 of file qsggeometry.h.

Referenced by QSGDefaultRectangleNode::setColor().

◆ b

unsigned char QSGGeometry::ColoredPoint2D::b

Definition at line 94 of file qsggeometry.h.

Referenced by QSGDefaultRectangleNode::setColor().

◆ g

unsigned char QSGGeometry::ColoredPoint2D::g

Definition at line 94 of file qsggeometry.h.

Referenced by QSGDefaultRectangleNode::setColor().

◆ r

unsigned char QSGGeometry::ColoredPoint2D::r

Definition at line 94 of file qsggeometry.h.

Referenced by QSGDefaultRectangleNode::setColor().

◆ x

float QSGGeometry::ColoredPoint2D::x

Definition at line 93 of file qsggeometry.h.

Referenced by QSGGeometry::updateColoredRectGeometry().

◆ y

float QSGGeometry::ColoredPoint2D::y

Definition at line 93 of file qsggeometry.h.


The documentation for this class was generated from the following files: