Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #include "TVirtualX.h"
00016
00017
00018 #include "Fireworks/Core/src/FWBoxIconBase.h"
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032 FWBoxIconBase::FWBoxIconBase(unsigned int iEdgeLength):
00033 m_edgeLength(iEdgeLength)
00034 {
00035 }
00036
00037
00038
00039
00040
00041
00042 FWBoxIconBase::~FWBoxIconBase()
00043 {
00044 }
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057
00058
00059
00060
00061
00062
00063
00064
00065 void
00066 FWBoxIconBase::draw(Drawable_t iID, GContext_t iContext, int iX, int iY) const
00067 {
00068
00069 gVirtualX->ClearArea(iID,iX,iY,m_edgeLength-1,m_edgeLength-1);
00070
00071 gVirtualX->DrawLine(iID, iContext, iX, iY, iX+m_edgeLength-1,iY);
00072 gVirtualX->DrawLine(iID, iContext, iX+m_edgeLength-1, iY, iX+m_edgeLength-1,iY+m_edgeLength-1);
00073 gVirtualX->DrawLine(iID, iContext, iX, iY+m_edgeLength-1, iX+m_edgeLength-1,iY+m_edgeLength-1);
00074 gVirtualX->DrawLine(iID, iContext, iX, iY, iX,iY+m_edgeLength-1);
00075
00076 drawInsideBox(iID,iContext, iX+1, iY+1, m_edgeLength-2);
00077 }
00078
00079
00080
00081