]> git.saurik.com Git - wxWidgets.git/blame - include/wx/univ/custombgwin.h
Implement monitoring of file descriptors in wxMotif event loop.
[wxWidgets.git] / include / wx / univ / custombgwin.h
CommitLineData
bbcf2821
VZ
1///////////////////////////////////////////////////////////////////////////////
2// Name: wx/univ/custombgwin.h
3// Purpose: wxUniv implementation of wxCustomBackgroundWindow.
4// Author: Vadim Zeitlin
5// Created: 2011-10-10
6// RCS-ID: $Id: wxhead.h,v 1.12 2010-04-22 12:44:51 zeitlin Exp $
7// Copyright: (c) 2011 Vadim Zeitlin <vadim@wxwidgets.org>
8// Licence: wxWindows licence
9///////////////////////////////////////////////////////////////////////////////
10
11#ifndef _WX_UNIV_CUSTOMBGWIN_H_
12#define _WX_UNIV_CUSTOMBGWIN_H_
13
14// ----------------------------------------------------------------------------
15// wxCustomBackgroundWindow
16// ----------------------------------------------------------------------------
17
18template <class W>
19class wxCustomBackgroundWindow : public W,
20 public wxCustomBackgroundWindowBase
21{
22public:
23 typedef W BaseWindowClass;
24
25 wxCustomBackgroundWindow() { }
26
27protected:
28 virtual void DoSetBackgroundBitmap(const wxBitmap& bmp)
29 {
30 // We have support for background bitmap even at the base class level.
31 BaseWindowClass::SetBackground(bmp, wxALIGN_NOT, wxTILE);
32 }
33
34 wxDECLARE_NO_COPY_TEMPLATE_CLASS(wxCustomBackgroundWindow, W);
35};
36
37#endif // _WX_UNIV_CUSTOMBGWIN_H_