initial commit
Signed-off-by: Peter Siegmund <mars3142@noreply.mars3142.dev>
This commit is contained in:
72
libs/wxWidgets-3.3.1/include/wx/gtk/stattext.h
Normal file
72
libs/wxWidgets-3.3.1/include/wx/gtk/stattext.h
Normal file
@@ -0,0 +1,72 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: wx/gtk/stattext.h
|
||||
// Purpose:
|
||||
// Author: Robert Roebling
|
||||
// Copyright: (c) 1998 Robert Roebling
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef _WX_GTK_STATTEXT_H_
|
||||
#define _WX_GTK_STATTEXT_H_
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// wxStaticText
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
class WXDLLIMPEXP_CORE wxStaticText : public wxStaticTextBase
|
||||
{
|
||||
public:
|
||||
wxStaticText();
|
||||
wxStaticText(wxWindow *parent,
|
||||
wxWindowID id,
|
||||
const wxString &label,
|
||||
const wxPoint &pos = wxDefaultPosition,
|
||||
const wxSize &size = wxDefaultSize,
|
||||
long style = 0,
|
||||
const wxString &name = wxASCII_STR(wxStaticTextNameStr) );
|
||||
|
||||
bool Create(wxWindow *parent,
|
||||
wxWindowID id,
|
||||
const wxString &label,
|
||||
const wxPoint &pos = wxDefaultPosition,
|
||||
const wxSize &size = wxDefaultSize,
|
||||
long style = 0,
|
||||
const wxString &name = wxASCII_STR(wxStaticTextNameStr) );
|
||||
|
||||
void SetLabel( const wxString &label ) override;
|
||||
|
||||
bool SetFont( const wxFont &font ) override;
|
||||
|
||||
static wxVisualAttributes
|
||||
GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
|
||||
|
||||
// implementation
|
||||
// --------------
|
||||
|
||||
protected:
|
||||
virtual bool GTKWidgetNeedsMnemonic() const override;
|
||||
virtual void GTKWidgetDoSetMnemonic(GtkWidget* w) override;
|
||||
|
||||
virtual wxSize DoGetBestSize() const override;
|
||||
|
||||
virtual wxString WXGetVisibleLabel() const override;
|
||||
virtual void WXSetVisibleLabel(const wxString& str) override;
|
||||
#if wxUSE_MARKUP
|
||||
virtual bool DoSetLabelMarkup(const wxString& markup) override;
|
||||
#endif // wxUSE_MARKUP
|
||||
|
||||
private:
|
||||
// Common part of SetLabel() and DoSetLabelMarkup().
|
||||
typedef void (wxStaticText::*GTKLabelSetter)(GtkLabel *, const wxString&);
|
||||
|
||||
void GTKDoSetLabel(GTKLabelSetter setter, const wxString& label);
|
||||
|
||||
// If our font has been changed, we compute the best size ourselves because
|
||||
// GTK doesn't always do it correctly, see DoGetBestSize().
|
||||
bool m_computeOurOwnBestSize = false;
|
||||
|
||||
wxDECLARE_DYNAMIC_CLASS(wxStaticText);
|
||||
};
|
||||
|
||||
#endif
|
||||
// _WX_GTK_STATTEXT_H_
|
||||
Reference in New Issue
Block a user