// global data
//-----------------------------------------------------------------------------
-extern const char *wxFrameNameStr;
+extern const wxChar *wxFrameNameStr;
extern wxWindowList wxTopLevelWindows;
//-----------------------------------------------------------------------------
// global data
//-----------------------------------------------------------------------------
-extern const char *wxPanelNameStr;
+extern const wxChar *wxPanelNameStr;
extern const wxSize wxDefaultSize;
extern const wxPoint wxDefaultPosition;
wxString m_data;
};
-//-----------------------------------------------------------------------------
-// (debug)
-//-----------------------------------------------------------------------------
-
-#ifdef __WXDEBUG__
-
-void debug_focus_in( GtkWidget* widget, const char* name, const char* window );
-
-#endif
-
//-----------------------------------------------------------------------------
// wxWindow
//-----------------------------------------------------------------------------
// implementation
- virtual wxPoint GetClientAreaOrigin() const;
- virtual void AdjustForParentClientOrigin( int& x, int& y, int sizeFlags );
-
bool HasVMT();
+ /* I don't want users to override what's done in idle so everything that
+ has to be done in idle time in order for wxGTK to work is done in
+ OnInternalIdle */
virtual void OnInternalIdle();
- // For compatibility across platforms (not in event table)
+ /* For compatibility across platforms (not in event table) */
void OnIdle(wxIdleEvent& WXUNUSED(event)) {};
/* used by all classes in the widget creation process */
-
void PreCreation( wxWindow *parent, wxWindowID id, const wxPoint &pos,
const wxSize &size, long style, const wxString &name );
void PostCreation();
virtual void ApplyWidgetStyle();
#if wxUSE_TOOLTIPS
- virtual void ApplyToolTip( GtkTooltips *tips, const char *tip );
+ virtual void ApplyToolTip( GtkTooltips *tips, const wxChar *tip );
#endif // wxUSE_TOOLTIPS
/* private member variables */
GtkAdjustment *m_hAdjust,*m_vAdjust;
float m_oldHorizontalPos;
float m_oldVerticalPos;
- bool m_needParent;
+ bool m_needParent; /* ! wxFrame, wxDialog, wxNotebookPage ? */
bool m_hasScrolling;
bool m_isScrolling;
bool m_hasVMT;
bool m_resizing;
GdkGC *m_scrollGC;
GtkStyle *m_widgetStyle;
- bool m_isStaticBox;
- bool m_acceptsFocus;
+ bool m_isStaticBox; /* faster than IS_KIND_OF */
+ bool m_isFrame; /* faster than IS_KIND_OF */
+ bool m_acceptsFocus; /* ! wxStaticBox etc. */
wxInsertChildFunction m_insertCallback;