AJA NTV2 SDK
17.1.3.1410
NTV2 SDK 17.1.3.1410
|
CEA-608 Character Attributes. More...
#include <ntv2caption608types.h>
Public Member Functions | |
NTV2Line21Attributes () | |
Constructs a default NTV2Line21Attributes instance, i.e., no flashing, no italics, no underline, white on black with an opaque background. More... | |
NTV2Line21Attributes (const NTV2Line21Color inFGColor, const NTV2Line21Color inBGColor=NTV2_CC608_Black, const NTV2Line21Opacity inOpacity=NTV2_CC608_Opaque, const bool inItalics=false, const bool inUnderline=false, const bool inFlash=false) | |
Constructs a NTV2Line21Attributes instance with the given settings. More... | |
NTV2Line21Attributes (const NTV2Line21Attributes &inRHS) | |
NTV2Line21Attributes & | operator= (const NTV2Line21Attributes &inRHS) |
bool | IsSet (void) const |
Returns true if I'm any different from the default, i.e., if IsFlashing(), IsItalicized(), IsUnderlined() return true, or if my foreground color is anything but white, or if my background color is anything but black, or if my opacity is anything but opaque. More... | |
NTV2Line21Color | GetColor (void) const |
Returns my foreground color. More... | |
NTV2Line21Color | GetBGColor (void) const |
Returns my background color. More... | |
NTV2Line21Opacity | GetOpacity (void) const |
Returns my background opacity. More... | |
bool | IsItalicized (void) const |
Returns true if I'm italicized; otherwise returns false. More... | |
bool | IsUnderlined (void) const |
Returns true if I'm underlined; otherwise returns false. More... | |
bool | IsFlashing (void) const |
Returns true if I'm flashing; otherwise returns false. More... | |
NTV2Line21Attributes & | AddItalics (void) |
Enables italics. More... | |
NTV2Line21Attributes & | RemoveItalics (void) |
Removes italics. More... | |
NTV2Line21Attributes & | SetItalics (const bool inItalics) |
Sets my italics setting. More... | |
NTV2Line21Attributes & | AddUnderline (void) |
Enables my underline attribute setting. More... | |
NTV2Line21Attributes & | RemoveUnderline (void) |
Disables my underline attribute setting. More... | |
NTV2Line21Attributes & | SetUnderline (const bool inUnderline) |
Sets my underline attribute setting. More... | |
NTV2Line21Attributes & | AddFlash (void) |
Enables my flashing attribute setting. More... | |
NTV2Line21Attributes & | RemoveFlash (void) |
Disables my flashing attribute setting. More... | |
NTV2Line21Attributes & | SetFlash (const bool inFlash) |
Sets my flashing attribute setting. More... | |
NTV2Line21Attributes & | SetColor (const NTV2Line21Color inFGColor) |
Sets my foreground color attribute. More... | |
NTV2Line21Attributes & | SetBGColor (const NTV2Line21Color inBGColor) |
Sets my background color attribute. More... | |
NTV2Line21Attributes & | SetOpacity (const NTV2Line21Opacity inOpacity) |
Sets my background opacity attribute. More... | |
void | Clear (void) |
Clears all of my attributes, returning me to a default state, i.e., no flashing, no italics, no underline, white on black with an opaque background. More... | |
bool | operator< (const NTV2Line21Attributes &inRHS) const |
Compares my attributes with those of another, and returns true if my magnitude is less than the right-hand operand's. More... | |
bool | operator== (const NTV2Line21Attributes &inRHS) const |
Compares my attributes with those of another, and returns true if they're identical. More... | |
bool | operator!= (const NTV2Line21Attributes &inRHS) const |
Compares my attributes with those of another, and returns false if any of them mismatch. More... | |
std::string | GetHexString (void) const |
For dumping the attributes backbuffer. More... | |
uint16_t | GetHashKey (void) const |
Returns my magnitude used to implement operator < for sorting or using a Line21 attribute as an index key. More... | |
CEA-608 Character Attributes.
Definition at line 357 of file ntv2caption608types.h.
|
explicit |
Constructs a default NTV2Line21Attributes instance, i.e., no flashing, no italics, no underline, white on black with an opaque background.
|
explicit |
Constructs a NTV2Line21Attributes instance with the given settings.
[in] | inFGColor | Specifies the foreground color (required). |
[in] | inBGColor | Optionally specifies the background color. Defaults to black. |
[in] | inOpacity | Optionally specifies the background opacity. Defaults to opaque. |
[in] | inItalics | Optionally specifies the italics setting. Defaults to normal (no italics). |
[in] | inUnderline | Optionally specifies the underline setting. Defaults to normal (no underline). |
[in] | inFlash | Optionally specifies the flash setting. Defaults to normal (no flashing). |
|
inline |
Definition at line 381 of file ntv2caption608types.h.
|
inline |
Enables my flashing attribute setting.
Definition at line 478 of file ntv2caption608types.h.
|
inline |
Enables italics.
Definition at line 438 of file ntv2caption608types.h.
|
inline |
Enables my underline attribute setting.
Definition at line 458 of file ntv2caption608types.h.
|
inline |
Clears all of my attributes, returning me to a default state, i.e., no flashing, no italics, no underline, white on black with an opaque background.
Definition at line 520 of file ntv2caption608types.h.
|
inline |
Returns my background color.
Definition at line 412 of file ntv2caption608types.h.
|
inline |
Returns my foreground color.
Definition at line 407 of file ntv2caption608types.h.
uint16_t NTV2Line21Attributes::GetHashKey | ( | void | ) | const |
Returns my magnitude used to implement operator < for sorting or using a Line21 attribute as an index key.
std::string NTV2Line21Attributes::GetHexString | ( | void | ) | const |
For dumping the attributes backbuffer.
|
inline |
Returns my background opacity.
Definition at line 417 of file ntv2caption608types.h.
|
inline |
Returns true if I'm flashing; otherwise returns false.
Definition at line 432 of file ntv2caption608types.h.
|
inline |
Returns true if I'm italicized; otherwise returns false.
Definition at line 422 of file ntv2caption608types.h.
|
inline |
Returns true if I'm any different from the default, i.e., if IsFlashing(), IsItalicized(), IsUnderlined() return true, or if my foreground color is anything but white, or if my background color is anything but black, or if my opacity is anything but opaque.
Definition at line 399 of file ntv2caption608types.h.
|
inline |
Returns true if I'm underlined; otherwise returns false.
Definition at line 427 of file ntv2caption608types.h.
|
inline |
Compares my attributes with those of another, and returns false if any of them mismatch.
[in] | inRHS | Specifies the other NTV2Line21Attributes instance to compare. |
Definition at line 544 of file ntv2caption608types.h.
|
inline |
Compares my attributes with those of another, and returns true if my magnitude is less than the right-hand operand's.
[in] | inRHS | Specifies the other NTV2Line21Attributes instance to compare. |
Definition at line 530 of file ntv2caption608types.h.
|
inline |
Definition at line 387 of file ntv2caption608types.h.
|
inline |
Compares my attributes with those of another, and returns true if they're identical.
[in] | inRHS | Specifies the other NTV2Line21Attributes instance to compare. |
Definition at line 537 of file ntv2caption608types.h.
|
inline |
Disables my flashing attribute setting.
Definition at line 484 of file ntv2caption608types.h.
|
inline |
Removes italics.
Definition at line 444 of file ntv2caption608types.h.
|
inline |
Disables my underline attribute setting.
Definition at line 464 of file ntv2caption608types.h.
|
inline |
Sets my background color attribute.
[in] | inBGColor | Specifies my new background color attribute. |
Definition at line 506 of file ntv2caption608types.h.
|
inline |
Sets my foreground color attribute.
[in] | inFGColor | Specifies my new foreground color attribute. |
Definition at line 499 of file ntv2caption608types.h.
|
inline |
Sets my flashing attribute setting.
[in] | inFlash | Specifies my new flashing attribute setting. |
Definition at line 491 of file ntv2caption608types.h.
|
inline |
Sets my italics setting.
[in] | inItalics | Specifies my new italics setting. |
Definition at line 451 of file ntv2caption608types.h.
|
inline |
Sets my background opacity attribute.
[in] | inOpacity | Specifies my new background opacity attribute. |
Definition at line 513 of file ntv2caption608types.h.
|
inline |
Sets my underline attribute setting.
[in] | inUnderline | Specifies my new underline setting. |
Definition at line 471 of file ntv2caption608types.h.