第三方框架改为仓内子集并完善构建忽略规则
完整 NIM_Duilib_Framework 仓库移至父目录,third_party 仅保留实际使用的 base、duilib、bin/resources 与许可证;.gitignore 覆盖 MSBuild 与打包产物。
This commit is contained in:
1 parent
249e8548de
commit
e1e26acc49
391 files changed
+342850
No files matched your search
@@ -0,0 +1,89 @@
|
||||
#include "StdAfx.h"
|
||||
|
||||
namespace ui {
|
||||
|
||||
using namespace Gdiplus;
|
||||
Pen_GdiPlus::Pen_GdiPlus(DWORD color, int width /*= 1*/)
|
||||
: IPen(color, width)
|
||||
{
|
||||
pen_.reset(new Pen(color_, width));
|
||||
}
|
||||
|
||||
Pen_GdiPlus::Pen_GdiPlus(const Pen_GdiPlus& r)
|
||||
: IPen(r)
|
||||
{
|
||||
pen_.reset(r.pen_->Clone());
|
||||
}
|
||||
|
||||
ui::IPen* Pen_GdiPlus::Clone()
|
||||
{
|
||||
return new Pen_GdiPlus(*this);
|
||||
}
|
||||
|
||||
void Pen_GdiPlus::SetWidth(int width)
|
||||
{
|
||||
pen_->SetWidth(width);
|
||||
}
|
||||
|
||||
int Pen_GdiPlus::GetWidth()
|
||||
{
|
||||
return (int)pen_->GetWidth();
|
||||
}
|
||||
|
||||
void Pen_GdiPlus::SetColor(DWORD color)
|
||||
{
|
||||
color_ = color;
|
||||
pen_->SetColor(color);
|
||||
}
|
||||
|
||||
void Pen_GdiPlus::SetStartCap(LineCap cap)
|
||||
{
|
||||
pen_->SetStartCap((Gdiplus::LineCap)cap);
|
||||
}
|
||||
|
||||
void Pen_GdiPlus::SetEndCap(LineCap cap)
|
||||
{
|
||||
pen_->SetEndCap((Gdiplus::LineCap)cap);
|
||||
}
|
||||
|
||||
void Pen_GdiPlus::SetDashCap(LineCap cap)
|
||||
{
|
||||
pen_->SetDashCap((Gdiplus::DashCap)cap);
|
||||
}
|
||||
|
||||
IPen::LineCap Pen_GdiPlus::GetStartCap()
|
||||
{
|
||||
return (IPen::LineCap)pen_->GetStartCap();
|
||||
}
|
||||
|
||||
IPen::LineCap Pen_GdiPlus::GetEndCap()
|
||||
{
|
||||
return (IPen::LineCap)pen_->GetEndCap();
|
||||
}
|
||||
|
||||
IPen::LineCap Pen_GdiPlus::GetDashCap()
|
||||
{
|
||||
return (IPen::LineCap)pen_->GetDashCap();
|
||||
}
|
||||
|
||||
void Pen_GdiPlus::SetLineJoin(LineJoin join)
|
||||
{
|
||||
pen_->SetLineJoin((Gdiplus::LineJoin)join);
|
||||
}
|
||||
|
||||
IPen::LineJoin Pen_GdiPlus::GetLineJoin()
|
||||
{
|
||||
return (IPen::LineJoin)pen_->GetLineJoin();
|
||||
}
|
||||
|
||||
void Pen_GdiPlus::SetDashStyle(DashStyle style)
|
||||
{
|
||||
pen_->SetDashStyle((Gdiplus::DashStyle)style);
|
||||
}
|
||||
|
||||
IPen::DashStyle Pen_GdiPlus::GetDashStyle()
|
||||
{
|
||||
return (IPen::DashStyle)pen_->GetDashStyle();
|
||||
}
|
||||
|
||||
} // namespace ui
|
||||
Reference in new issue
Block a user