#ifndef __WXMAC__
int GetItemHeight();
#endif
+
+ // return the index of the item at this position or wxNOT_FOUND
+ int HitTest(const wxPoint& pt) const;
+ %name(HitTestXY)int HitTest(wxCoord x, wxCoord y) const;
+
};
//----------------------------------------------------------------------
bool rval = 0; \
bool found; \
wxPyBeginBlockThreads(); \
- if (wxPyCBH_findCallback(m_myInst, #CBNAME)) { \
+ if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) { \
PyObject* s = wx2PyString(c); \
rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iiO)",a,b,s));\
Py_DECREF(s); \
wxOutputStream *GetOutputStream();
void CloseOutput();
+
+ // return TRUE if the child process stdout is not closed
+ bool IsInputOpened() const;
+
+ // return TRUE if any input is available on the child process stdout/err
+ bool IsInputAvailable() const;
+ bool IsErrorAvailable() const;
};
class wxPostScriptDC : public wxDC {
public:
wxPostScriptDC(const wxPrintData& printData);
- %name(wxPostScriptDC2)wxPostScriptDC(const wxString& output,
- bool interactive = TRUE,
- wxWindow* parent = NULL);
+// %name(wxPostScriptDC2)wxPostScriptDC(const wxString& output,
+// bool interactive = TRUE,
+// wxWindow* parent = NULL);
wxPrintData& GetPrintData();
void SetPrintData(const wxPrintData& data);
enum
{
- wxCONFIG_USE_LOCAL_FILE = 1,
- wxCONFIG_USE_GLOBAL_FILE = 2,
- wxCONFIG_USE_RELATIVE_PATH = 4
+ wxCONFIG_USE_LOCAL_FILE,
+ wxCONFIG_USE_GLOBAL_FILE,
+ wxCONFIG_USE_RELATIVE_PATH,
+ wxCONFIG_USE_NO_ESCAPE_CHARACTERS
};
//---------------------------------------------------------------------------