1b88201ff5
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42077 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
60 lines
2.1 KiB
C++
60 lines
2.1 KiB
C++
/////////////////////////////////////////////////////////////////////////////
|
|
// Name: wx/cocoa/stattext.h
|
|
// Purpose: wxStaticText class
|
|
// Author: David Elliott
|
|
// Modified by:
|
|
// Created: 2003/02/15
|
|
// RCS-ID: $Id$
|
|
// Copyright: (c) 2003 David Elliott
|
|
// Licence: wxWindows licence
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
#ifndef __WX_COCOA_STATTEXT_H__
|
|
#define __WX_COCOA_STATTEXT_H__
|
|
|
|
#include "wx/cocoa/NSTextField.h"
|
|
|
|
// ========================================================================
|
|
// wxStaticText
|
|
// ========================================================================
|
|
class WXDLLEXPORT wxStaticText : public wxStaticTextBase, protected wxCocoaNSTextField
|
|
{
|
|
DECLARE_DYNAMIC_CLASS(wxStaticText)
|
|
DECLARE_EVENT_TABLE()
|
|
WX_DECLARE_COCOA_OWNER(NSTextField,NSControl,NSView)
|
|
// ------------------------------------------------------------------------
|
|
// initialization
|
|
// ------------------------------------------------------------------------
|
|
public:
|
|
wxStaticText() {}
|
|
wxStaticText(wxWindow *parent, wxWindowID winid,
|
|
const wxString& label,
|
|
const wxPoint& pos = wxDefaultPosition,
|
|
const wxSize& size = wxDefaultSize, long style = 0,
|
|
const wxString& name = wxStaticTextNameStr)
|
|
{
|
|
Create(parent, winid, label, pos, size, style, name);
|
|
}
|
|
|
|
bool Create(wxWindow *parent, wxWindowID winid,
|
|
const wxString& label,
|
|
const wxPoint& pos = wxDefaultPosition,
|
|
const wxSize& size = wxDefaultSize, long style = 0,
|
|
const wxString& name = wxStaticTextNameStr);
|
|
virtual ~wxStaticText();
|
|
|
|
// ------------------------------------------------------------------------
|
|
// Cocoa specifics
|
|
// ------------------------------------------------------------------------
|
|
protected:
|
|
virtual void Cocoa_didChangeText(void);
|
|
// ------------------------------------------------------------------------
|
|
// Implementation
|
|
// ------------------------------------------------------------------------
|
|
public:
|
|
void SetLabel(const wxString& label);
|
|
};
|
|
|
|
#endif
|
|
// __WX_COCOA_STATTEXT_H__
|