VTK  9.2.6
TextPropertyKey< StringType > Struct Template Reference

#include <vtkOpenGLContextDevice2DPrivate.h>

Inheritance diagram for TextPropertyKey< StringType >:
[legend]
Collaboration diagram for TextPropertyKey< StringType >:
[legend]

Public Member Functions

bool operator== (const TextPropertyKey &other) const
 Compares two TextPropertyKeys with each other.
 
 TextPropertyKey (vtkTextProperty *textProperty, const StringType &text, int dpi)
 Creates a TextPropertyKey.
 

Static Public Member Functions

static vtkTypeUInt32 GetIdFromTextProperty (vtkTextProperty *tprop)
 Transform a text property into an unsigned long.
 

Public Attributes

unsigned short FontSize
 
vtkColor4ub Color
 
vtkTypeUInt32 TextPropertyId
 
StringType Text
 
int DPI
 

Detailed Description

template<class StringType>
struct TextPropertyKey< StringType >

Definition at line 193 of file vtkOpenGLContextDevice2DPrivate.h.

Constructor & Destructor Documentation

◆ TextPropertyKey()

template<class StringType>
TextPropertyKey< StringType >::TextPropertyKey ( vtkTextProperty * textProperty,
const StringType & text,
int dpi )
inline

Creates a TextPropertyKey.

Definition at line 240 of file vtkOpenGLContextDevice2DPrivate.h.

Member Function Documentation

◆ GetIdFromTextProperty()

template<class StringType>
static vtkTypeUInt32 TextPropertyKey< StringType >::GetIdFromTextProperty ( vtkTextProperty * tprop)
inlinestatic

Transform a text property into an unsigned long.

Definition at line 199 of file vtkOpenGLContextDevice2DPrivate.h.

◆ operator==()

template<class StringType>
bool TextPropertyKey< StringType >::operator== ( const TextPropertyKey< StringType > & other) const
inline

Compares two TextPropertyKeys with each other.

Returns true if they are identical: same text and text property

Definition at line 258 of file vtkOpenGLContextDevice2DPrivate.h.

Member Data Documentation

◆ FontSize

template<class StringType>
unsigned short TextPropertyKey< StringType >::FontSize

Definition at line 266 of file vtkOpenGLContextDevice2DPrivate.h.

◆ Color

template<class StringType>
vtkColor4ub TextPropertyKey< StringType >::Color

Definition at line 267 of file vtkOpenGLContextDevice2DPrivate.h.

◆ TextPropertyId

template<class StringType>
vtkTypeUInt32 TextPropertyKey< StringType >::TextPropertyId

Definition at line 269 of file vtkOpenGLContextDevice2DPrivate.h.

◆ Text

template<class StringType>
StringType TextPropertyKey< StringType >::Text

Definition at line 270 of file vtkOpenGLContextDevice2DPrivate.h.

◆ DPI

template<class StringType>
int TextPropertyKey< StringType >::DPI

Definition at line 271 of file vtkOpenGLContextDevice2DPrivate.h.


The documentation for this struct was generated from the following file: