]> git.saurik.com Git - wxWidgets.git/blame - include/wx/gtk/stattext.h
check that the version of __sync_sub_and_fetch that returns a value is supported...
[wxWidgets.git] / include / wx / gtk / stattext.h
CommitLineData
c801d85f 1/////////////////////////////////////////////////////////////////////////////
1b88201f 2// Name: wx/gtk/stattext.h
c801d85f
KB
3// Purpose:
4// Author: Robert Roebling
58614078
RR
5// Id: $Id$
6// Copyright: (c) 1998 Robert Roebling
1b88201f 7// Licence: wxWindows licence
c801d85f
KB
8/////////////////////////////////////////////////////////////////////////////
9
0416c418
PC
10#ifndef _WX_GTK_STATTEXT_H_
11#define _WX_GTK_STATTEXT_H_
c801d85f 12
c801d85f
KB
13//-----------------------------------------------------------------------------
14// wxStaticText
15//-----------------------------------------------------------------------------
16
39bc0347 17class WXDLLIMPEXP_CORE wxStaticText : public wxStaticTextBase
c801d85f 18{
f68586e5 19public:
f68586e5
VZ
20 wxStaticText();
21 wxStaticText(wxWindow *parent,
22 wxWindowID id,
23 const wxString &label,
24 const wxPoint &pos = wxDefaultPosition,
1b88201f 25 const wxSize &size = wxDefaultSize,
f68586e5
VZ
26 long style = 0,
27 const wxString &name = wxStaticTextNameStr );
28
29 bool Create(wxWindow *parent,
30 wxWindowID id,
31 const wxString &label,
32 const wxPoint &pos = wxDefaultPosition,
1b88201f 33 const wxSize &size = wxDefaultSize,
f68586e5
VZ
34 long style = 0,
35 const wxString &name = wxStaticTextNameStr );
36
37 wxString GetLabel() const;
c801d85f 38 void SetLabel( const wxString &label );
f68586e5 39
c0e6c051 40 bool SetFont( const wxFont &font );
174b10af 41 bool SetForegroundColour( const wxColour& colour );
9d522606
RD
42
43 static wxVisualAttributes
44 GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
1b88201f 45
39bc0347 46
bb8051f2 47
f68586e5 48 // implementation
33720b2d 49 // --------------
f68586e5
VZ
50
51protected:
2e1f5012
VZ
52 virtual bool GTKWidgetNeedsMnemonic() const;
53 virtual void GTKWidgetDoSetMnemonic(GtkWidget* w);
54
a5040b80
RR
55 virtual void DoSetSize(int x, int y,
56 int width, int height,
57 int sizeFlags = wxSIZE_AUTO);
1b88201f 58
33720b2d
RR
59 virtual wxSize DoGetBestSize() const;
60
39bc0347
VZ
61 virtual wxString DoGetLabel() const;
62 virtual void DoSetLabel(const wxString& str);
63
f68586e5 64 DECLARE_DYNAMIC_CLASS(wxStaticText)
c801d85f
KB
65};
66
1b88201f
WS
67#endif
68 // _WX_GTK_STATTEXT_H_