Added ScriptableImage plus the beginnings of dependency stuff

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@58 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2006-10-29 16:23:31 +00:00
parent 368082ade2
commit f46b0b6b7b
22 changed files with 533 additions and 18 deletions
+4 -1
View File
@@ -146,8 +146,11 @@ void RotatedDC::SetFont(wxFont font, double size) {
dc.SetFont(font);
}
RealSize RotatedDC::GetTextExtent(const String& text) {
RealSize RotatedDC::GetTextExtent(const String& text) const {
int w, h;
dc.GetTextExtent(text, &w, &h);
return RealSize(w,h) / zoom;
}
double RotatedDC::GetCharHeight() const {
return dc.GetCharHeight() / zoom;
}