2018-04-22 00:33:20 +08:00
|
|
|
#include "..\e2dnode.h"
|
|
|
|
|
|
|
|
|
|
e2d::TextStyle::TextStyle()
|
|
|
|
|
: fontFamily("")
|
|
|
|
|
, fontSize(22)
|
|
|
|
|
, color(Color::WHITE)
|
2018-04-22 13:15:57 +08:00
|
|
|
, fontWeight(FontWeight::NORMAL)
|
2018-04-22 00:33:20 +08:00
|
|
|
, italic(false)
|
|
|
|
|
, underline(false)
|
|
|
|
|
, strikethrough(false)
|
|
|
|
|
, showOutline(true)
|
|
|
|
|
, outlineColor(Color::BLACK)
|
|
|
|
|
, outlineWidth(1.0)
|
|
|
|
|
, outlineJoin(LineJoin::ROUND)
|
|
|
|
|
{}
|
|
|
|
|
|
|
|
|
|
e2d::TextStyle::TextStyle(
|
|
|
|
|
String fontFamily,
|
|
|
|
|
double fontSize,
|
2018-04-22 13:15:57 +08:00
|
|
|
Color color,
|
|
|
|
|
UINT32 fontWeight,
|
2018-04-22 00:33:20 +08:00
|
|
|
bool italic,
|
|
|
|
|
bool hasUnderline,
|
|
|
|
|
bool hasStrikethrough,
|
|
|
|
|
bool showOutline,
|
2018-04-22 13:15:57 +08:00
|
|
|
Color outlineColor,
|
|
|
|
|
double outlineWidth,
|
2018-04-22 00:33:20 +08:00
|
|
|
int outlineJoin
|
|
|
|
|
)
|
|
|
|
|
: fontFamily(fontFamily)
|
|
|
|
|
, fontSize(fontSize)
|
|
|
|
|
, color(color)
|
2018-04-22 13:15:57 +08:00
|
|
|
, fontWeight(fontWeight)
|
2018-04-22 00:33:20 +08:00
|
|
|
, italic(italic)
|
|
|
|
|
, underline(hasUnderline)
|
|
|
|
|
, strikethrough(hasStrikethrough)
|
|
|
|
|
, showOutline(showOutline)
|
|
|
|
|
, outlineColor(outlineColor)
|
|
|
|
|
, outlineWidth(outlineWidth)
|
|
|
|
|
, outlineJoin(outlineJoin)
|
|
|
|
|
{}
|