initial commit
Signed-off-by: Peter Siegmund <mars3142@noreply.mars3142.dev>
This commit is contained in:
33
libs/wxWidgets-3.3.1/include/wx/msw/ownerdrw.h
Normal file
33
libs/wxWidgets-3.3.1/include/wx/msw/ownerdrw.h
Normal file
@@ -0,0 +1,33 @@
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// Name: wx/msw/ownerdrw.h
|
||||
// Purpose: wxOwnerDrawn class
|
||||
// Author: Marcin Malich
|
||||
// Created: 2009-09-22
|
||||
// Copyright: (c) 2009 Marcin Malich <me@malcom.pl>
|
||||
// Licence: wxWindows licence
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef _WX_OWNERDRW_H_
|
||||
#define _WX_OWNERDRW_H_
|
||||
|
||||
#if wxUSE_OWNER_DRAWN
|
||||
|
||||
class WXDLLIMPEXP_CORE wxOwnerDrawn : public wxOwnerDrawnBase
|
||||
{
|
||||
public:
|
||||
wxOwnerDrawn() = default;
|
||||
virtual ~wxOwnerDrawn() = default;
|
||||
|
||||
virtual bool OnDrawItem(wxDC& dc, const wxRect& rc,
|
||||
wxODAction act, wxODStatus stat) override;
|
||||
|
||||
protected:
|
||||
// get the type of the text to draw in OnDrawItem(), by default is
|
||||
// DST_PREFIXTEXT but can be overridden to return DST_TEXT when not using
|
||||
// mnemonics
|
||||
virtual int MSWGetTextType() const;
|
||||
};
|
||||
|
||||
#endif // wxUSE_OWNER_DRAWN
|
||||
|
||||
#endif // _WX_OWNERDRW_H_
|
||||
Reference in New Issue
Block a user