From: DH <cra...@ya...> - 2002-09-11 03:58:04
|
What's up with Wx::TextAttr? I took a look at TextCtrl.xs, and I saw plenty of code (see below for some), and I also saw in typemap Wx_TextAttr * O_NON_WXOBJECT wxTextAttr * O_NON_WXOBJECT So my question is what's up? How much work, if any, is needed to get Wx::TextAttr up and running? (it wouldn't be just a matter of switching O_NON_WXOBJECT to O_WXOBJECT or would it?) The scintilla thing is cool, but this is native :) MODULE=Wx PACKAGE=Wx::TextAttr Wx_TextAttr* Wx_TextAttr::new( colText = wxNullColour, colBack = wxNullColour, font = (Wx_Font*)&wxNullFont ) Wx_Colour colText Wx_Colour colBack Wx_Font* font CODE: if( items == 1 ) RETVAL = new wxTextAttr(); else RETVAL = new wxTextAttr( colText, colBack, *font ); OUTPUT: RETVAL void Wx_TextAttr::DESTROY() Wx_Colour* Wx_TextAttr::GetBackgroundColour() CODE: RETVAL = new wxColour( THIS->GetBackgroundColour() ); OUTPUT: RETVAL Wx_Font* Wx_TextAttr::GetFont() CODE: RETVAL = new wxFont( THIS->GetFont() ); OUTPUT: RETVAL Wx_Colour* Wx_TextAttr::GetTextColour() CODE: RETVAL = new wxColour( THIS->GetTextColour() ); OUTPUT: RETVAL bool Wx_TextAttr::HasBackgroundColour() bool Wx_TextAttr::HasFont() bool Wx_TextAttr::HasTextColour() bool Wx_TextAttr::IsDefault() __________________________________________________ Yahoo! - We Remember 9-11: A tribute to the more than 3,000 lives lost http://dir.remember.yahoo.com/tribute |