]> git.saurik.com Git - wxWidgets.git/blob - include/wx/stc/private.h
update button style to include BS_MULTILINE when a multiline label is set
[wxWidgets.git] / include / wx / stc / private.h
1 ////////////////////////////////////////////////////////////////////////////
2 // Name: wx/stc/private.h
3 // Purpose: Private declarations for wxSTC
4 // Author: Robin Dunn
5 // Created: 2007-07-15
6 // RCS-ID: $Id$
7 // Copyright: (c) 2000 by Total Control Software
8 // Licence: wxWindows license
9 /////////////////////////////////////////////////////////////////////////////
10
11 #ifndef _WX_STC_PRIVATE_H_
12 #define _WX_STC_PRIVATE_H_
13
14 #include "wx/defs.h"
15 #include "wx/string.h"
16
17 //----------------------------------------------------------------------
18 // Utility functions used within wxSTC
19
20 #if wxUSE_UNICODE
21
22 extern wxString stc2wx(const char* str);
23 extern wxString stc2wx(const char* str, size_t len);
24 extern const wxWX2MBbuf wx2stc(const wxString& str);
25
26 #else // not UNICODE
27
28 inline wxString stc2wx(const char* str) {
29 return wxString(str);
30 }
31 inline wxString stc2wx(const char* str, size_t len) {
32 return wxString(str, len);
33 }
34 inline const wxWX2MBbuf wx2stc(const wxString& str) {
35 return str.mbc_str();
36 }
37
38 #endif // UNICODE
39
40 #endif // _WX_STC_PRIVATE_H_