// Called when m_widget becomes realized. Derived classes must call the
// base class method if they override it.
virtual void GTKHandleRealized();
+ void GTKHandleUnrealize();
protected:
// for controls composed of multiple GTK widgets, return true to eliminate
virtual void DoSetToolTip( wxToolTip *tip );
#endif // wxUSE_TOOLTIPS
- // common part of all ctors (not virtual because called from ctor)
- void Init();
+ // Create a GtkScrolledWindow containing the given widget (usually
+ // m_wxwindow but not necessarily) and assigns it to m_widget. Also shows
+ // the widget passed to it.
+ //
+ // Can be only called if we have either wxHSCROLL or wxVSCROLL in our
+ // style.
+ void GTKCreateScrolledWindowWith(GtkWidget* view);
virtual void DoMoveInTabOrder(wxWindow *win, WindowOrder move);
virtual bool DoNavigateIn(int flags);
void ConstrainSize();
private:
+ void Init();
+
enum ScrollUnit { ScrollUnit_Line, ScrollUnit_Page, ScrollUnit_Max };
// common part of ScrollLines() and ScrollPages() and could be used, in the