Go to the documentation of this file.
105 bool isUnderline =
false,
106 QColor fgColor = QColor()) :
133 static constexpr std::array<const uint,4> alpha = { 0xff, 0xff, 0x7f, 0x00, };
140 static constexpr std::array<const uint,4> alpha = { 0xff, 0xff, 0x7f, 0x00, };
146 {
return !(*
this == other); }
155 int offset,
int text_tag,
int font_tag,
156 int edge_type,
int underline,
int italics)
199 void DefineWindow(
int priority,
bool visible,
200 int anchor_point,
int relative_pos,
201 int anchor_vertical,
int anchor_horizontal,
202 int row_count,
int column_count,
203 int row_lock,
int column_lock,
204 int pen_style,
int window_style);
205 void Resize(
uint new_rows,
uint new_columns);
207 void SetWindowStyle(
uint style);
209 void AddChar(QChar ch);
210 void IncrPenLocation(
void);
211 void DecrPenLocation(
void);
212 void SetPenLocation(
uint row,
uint column);
213 void LimitPenLocation(
void);
217 return ((m_pen.m_row < m_true_row_count) &&
218 (m_pen.m_column < m_true_column_count));
221 std::vector<CC708String*> GetStrings(
void)
const;
222 static void DisposeStrings(std::vector<CC708String*> &strings);
226 fill.setAlpha(GetFillAlpha());
232 static constexpr std::array<const uint,4> alpha = { 0xff, 0xff, 0x7f, 0x00, };
233 return alpha[m_fill_opacity & 0x3];
237 void Scroll(
int row,
int col);
242 bool m_visible {
false};
282 bool m_exists {
false};
283 bool m_changed {
true};
291 if (m_exists != value)
297 if (m_visible != value)
309 mutable QMutex m_lock {QMutex::Recursive};
322 #endif // CC708_WINDOW_H
const uint k708JustifyCenter
const uint k708AttrEdgeDepressed
CC708CharacterAttribute m_attr
const uint k708AttrSizeStandard
const uint k708AttrOffsetSubscript
QColor GetEdgeColor(void) const
const uint k708AttrOpacityFlash
const uint k708BorderDepressed
bool operator==(const CC708CharacterAttribute &other) const
void SetAttributes(int pen_size, int offset, int text_tag, int font_tag, int edge_type, int underline, int italics)
std::array< CC708Window, k708MaxWindows > m_windows
const uint k708EffectFade
CC708CharacterAttribute(bool isItalic=false, bool isBold=false, bool isUnderline=false, QColor fgColor=QColor())
const uint k708AttrOpacityTranslucent
const uint k708DirBottomToTop
const uint k708AttrEdgeLeftDropShadow
const uint k708DirRightToLeft
const uint k708JustifyFull
const uint k708AttrOffsetNormal
const uint k708AttrFontCursive
const uint k708AttrEdgeRaised
const uint k708AttrOffsetSuperscript
const uint k708EffectWipe
const uint k708AttrFontSmallCaps
const uint k708AttrEdgeUniform
bool GetVisible(void) const
const uint k708BorderNone
CC708CharacterAttribute m_attr
QColor GetFGColor(void) const
const uint k708AttrOpacityTransparent
const uint k708BorderRaised
uint GetFGAlpha(void) const
static QColor ConvertToQColor(uint eia708color)
const uint k708AttrEdgeRightDropShadow
const uint k708JustifyLeft
void SetExists(bool value)
const uint k708BorderShadowLeft
const uint k708AttrFontProportionalSansSerif
const uint k708AttrFontMonospacedSerif
const uint k708AttrFontProportionalSerif
QColor GetBGColor(void) const
uint GetBGAlpha(void) const
const uint k708AttrFontMonospacedSansSerif
const uint k708AttrOpacitySolid
const uint k708AttrColorWhite
bool GetChanged(void) const
void SetPenStyle(uint style)
const uint k708AttrEdgeNone
const uint k708EffectSnap
const uint k708AttrColorBlack
const uint k708DirTopToBottom
const uint k708AttrFontCasual
uint GetFillAlpha(void) const
const uint k708DirLeftToRight
const uint k708BorderUniform
const uint k708AttrSizeSmall
CC708CharacterAttribute m_attr
QColor GetFillColor(void) const
void SetVisible(bool value)
const uint k708BorderShadowRight
const uint k708JustifyRight
const uint k708AttrFontDefault
bool IsPenValid(void) const
bool GetExists(void) const
bool operator!=(const CC708CharacterAttribute &other) const
const uint k708AttrSizeLarge