Added methods to font object to get if font has underline and strikeout.

This commit is contained in:
PeterAddy960 2016-08-31 20:29:34 -05:00
parent cf99551924
commit eeaaf07f4c

View File

@ -156,6 +156,18 @@ namespace paint
return (impl_->font_ptr->italic);
}
bool font::underline() const
{
if(empty()) return false;
return (impl_->font_ptr->underline);
}
bool font::strikeout() const
{
if(empty()) return false;
return (impl_->font_ptr->strikeout);
}
native_font_type font::handle() const
{
if(empty()) return nullptr;