From: John L. <jr...@us...> - 2007-02-05 23:24:00
|
Update of /cvsroot/wxlua/wxLua/bindings/wxwidgets In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv6261/bindings/wxwidgets Modified Files: wxlua.i Log Message: add comments for virtual functions and how to use them for wxLuaPrintout and wxLuaHtmlWindow Index: wxlua.i =================================================================== RCS file: /cvsroot/wxlua/wxLua/bindings/wxwidgets/wxlua.i,v retrieving revision 1.19 retrieving revision 1.20 diff -C2 -d -r1.19 -r1.20 *** wxlua.i 7 Dec 2006 06:32:42 -0000 1.19 --- wxlua.i 5 Feb 2007 23:23:56 -0000 1.20 *************** *** 56,60 **** --- 56,74 ---- wxLuaObject *GetID() + + // This is an added function to wxPrintout so you don't have to override GetPageInfo void SetPageInfo(int minPage, int maxPage, int pageFrom = 0, int pageTo = 0) + + // The functions below are all virtual functions that you can override in lua. + // See the printing sample and wxPrintout for proper parameters and usage. + //void GetPageInfo(int *minPage, int *maxPage, int *pageFrom, int *pageTo) + //bool HasPage(int pageNum) + //bool OnBeginDocument(int startPage, int endPage) + //void OnEndDocument() + //void OnBeginPrinting() + //void OnEndPrinting() + //void OnPreparePrinting() + //bool OnPrintPage(int pageNum) + %endclass *************** *** 70,73 **** --- 84,95 ---- %class wxLuaHtmlWindow, wxHtmlWindow wxLuaHtmlWindow(wxWindow *parent, wxWindowID id = -1, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxHW_SCROLLBAR_AUTO, const wxString& name = "wxLuaHtmlWindow") + + // The functions below are all virtual functions that you can override in lua. + // See the html sample and wxHtmlWindow for proper parameters and usage. + //bool OnCellClicked(wxHtmlCell *cell, wxCoord x, wxCoord y, const wxMouseEvent& event) + //void OnCellMouseHover(wxHtmlCell *cell, wxCoord x, wxCoord y) + //void OnLinkClicked(const wxHtmlLinkInfo& link) + //void OnSetTitle(const wxString& title) + %endclass |