Go to the documentation of this file.
13 #if QT_VERSION < QT_VERSION_CHECK(5,14,0)
16 #include <QRecursiveMutex>
109 bool isUnderline =
false,
110 QColor fgColor = QColor()) :
138 static constexpr std::array<const uint,4> alpha = { 0xff, 0xff, 0x7f, 0x00, };
145 static constexpr std::array<const uint,4> alpha = { 0xff, 0xff, 0x7f, 0x00, };
151 {
return !(*
this == other); }
160 int offset,
int text_tag,
int font_tag,
161 int edge_type,
int underline,
int italics)
204 void DefineWindow(
int priority,
bool visible,
205 int anchor_point,
int relative_pos,
206 int anchor_vertical,
int anchor_horizontal,
207 int row_count,
int column_count,
208 int row_lock,
int column_lock,
209 int pen_style,
int window_style);
210 void Resize(
uint new_rows,
uint new_columns);
212 void SetWindowStyle(
uint style);
214 void AddChar(QChar ch);
215 void IncrPenLocation(
void);
216 void DecrPenLocation(
void);
217 void SetPenLocation(
uint row,
uint column);
218 void LimitPenLocation(
void);
222 return ((m_pen.m_row < m_true_row_count) &&
223 (m_pen.m_column < m_true_column_count));
226 std::vector<CC708String*> GetStrings(
void)
const;
227 static void DisposeStrings(std::vector<CC708String*> &strings);
231 fill.setAlpha(GetFillAlpha());
237 static constexpr std::array<const uint,4> alpha = { 0xff, 0xff, 0x7f, 0x00, };
238 return alpha[m_fill_opacity & 0x3];
242 void Scroll(
int row,
int col);
247 bool m_visible {
false};
287 bool m_exists {
false};
288 bool m_changed {
true};
296 if (m_exists != value)
302 if (m_visible != value)
314 #if QT_VERSION < QT_VERSION_CHECK(5,14,0)
315 mutable QMutex m_lock {QMutex::Recursive};
331 #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