]>
git.saurik.com Git - wxWidgets.git/blob - src/gtk/statline.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: src/gtk/statline.cpp
4 // Author: Robert Roebling
6 // Copyright: (c) 1998 Robert Roebling
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
10 // For compilers that support precompilation, includes "wx.h".
11 #include "wx/wxprec.h"
13 #include "wx/statline.h"
20 //-----------------------------------------------------------------------------
22 //-----------------------------------------------------------------------------
24 wxStaticLine::wxStaticLine()
28 wxStaticLine::wxStaticLine( wxWindow
*parent
, wxWindowID id
,
29 const wxPoint
&pos
, const wxSize
&size
,
30 long style
, const wxString
&name
)
32 Create( parent
, id
, pos
, size
, style
, name
);
35 bool wxStaticLine::Create( wxWindow
*parent
, wxWindowID id
,
36 const wxPoint
&pos
, const wxSize
&size
,
37 long style
, const wxString
&name
)
39 if (!PreCreation( parent
, pos
, size
) ||
40 !CreateBase( parent
, id
, pos
, size
, style
, wxDefaultValidator
, name
))
42 wxFAIL_MSG( wxT("wxStaticLine creation failed") );
48 m_widget
= gtk_vseparator_new();
51 wxSize
new_size( size
);
58 m_widget
= gtk_hseparator_new();
61 wxSize
new_size( size
);
66 g_object_ref(m_widget
);
68 m_parent
->DoAddChild( this );
77 wxStaticLine::GetClassDefaultAttributes(wxWindowVariant
WXUNUSED(variant
))
79 return GetDefaultAttributesFromGTKWidget(gtk_vseparator_new
);