wxBitmapButton::~wxBitmapButton() { SetBitmapLabel(wxNullBitmap); if (m_insensPixmap) XmDestroyPixmap (DefaultScreenOfDisplay ((Display*) GetXDisplay()), (Pixmap) m_insensPixmap); }
void wxFrame::SetIcons(const wxIconBundle& icons) { wxFrameBase::SetIcons( icons ); if (!m_frameShell) return; DoSetIcon( m_icons.GetIcon( -1 ) ); wxSetIconsX11(GetXDisplay(), (WXWindow) XtWindow( (Widget) m_frameShell ), icons); }
int wxGLCanvas::GetColourIndex(const wxColour& col_) { wxColour& col = const_cast<wxColour&>(col_); #ifdef __WXMOTIF__ col.AllocColour(GetXDisplay()); #else col.CalcPixel(wxTheApp->GetMainColormap(wxGetDisplay())); #endif return col.GetPixel(); }
bool wxTopLevelWindowMotif::SetShape( const wxRegion& region ) { return wxDoSetShape( (Display*)GetXDisplay(), XtWindow( (Widget)GetShellWidget() ), region ); }