mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-13 01:29:11 +01:00
d14efe561b
long become wxWidgets 2.9.2, which in turn is expected to be the last 2.9 release before the 3.0 stable release. Since the full wxWidgets distribution is rather large, I have imported only the parts that we use, on a subdirectory basis: art include/wx/*.* include/wx/aui include/wx/cocoa include/wx/generic include/wx/gtk include/wx/meta include/wx/msw include/wx/osx include/wx/persist include/wx/private include/wx/protocol include/wx/unix src/aui src/common src/generic src/gtk src/msw src/osx src/unix git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7380 8ced0084-cf51-0410-be5f-012b33b47a6e
65 lines
1.5 KiB
C++
65 lines
1.5 KiB
C++
///////////////////////////////////////////////////////////////////////////////
|
|
// Name: wx/msw/caret.h
|
|
// Purpose: wxCaret class - the MSW implementation of wxCaret
|
|
// Author: Vadim Zeitlin
|
|
// Modified by:
|
|
// Created: 23.05.99
|
|
// RCS-ID: $Id: caret.h 67254 2011-03-20 00:14:35Z DS $
|
|
// Copyright: (c) wxWidgets team
|
|
// Licence: wxWindows licence
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
#ifndef _WX_CARET_H_
|
|
#define _WX_CARET_H_
|
|
|
|
class WXDLLIMPEXP_CORE wxCaret : public wxCaretBase
|
|
{
|
|
public:
|
|
wxCaret() { Init(); }
|
|
// create the caret of given (in pixels) width and height and associate
|
|
// with the given window
|
|
wxCaret(wxWindow *window, int width, int height)
|
|
{
|
|
Init();
|
|
|
|
(void)Create(window, width, height);
|
|
}
|
|
// same as above
|
|
wxCaret(wxWindowBase *window, const wxSize& size)
|
|
{
|
|
Init();
|
|
|
|
(void)Create(window, size);
|
|
}
|
|
|
|
// process wxWindow notifications
|
|
virtual void OnSetFocus();
|
|
virtual void OnKillFocus();
|
|
|
|
protected:
|
|
void Init()
|
|
{
|
|
wxCaretBase::Init();
|
|
|
|
m_hasCaret = false;
|
|
}
|
|
|
|
// override base class virtuals
|
|
virtual void DoMove();
|
|
virtual void DoShow();
|
|
virtual void DoHide();
|
|
virtual void DoSize();
|
|
|
|
// helper function which creates the system caret
|
|
bool MSWCreateCaret();
|
|
|
|
private:
|
|
bool m_hasCaret;
|
|
|
|
wxDECLARE_NO_COPY_CLASS(wxCaret);
|
|
};
|
|
|
|
#endif // _WX_CARET_H_
|
|
|
|
|