adding support for enabled property, avoiding missing return values
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71970 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
074d54bcf5
commit
9d294e51cd
@ -561,10 +561,22 @@ void wxWidgetIPhoneImpl::GetBestRect( wxRect *r ) const
|
||||
|
||||
bool wxWidgetIPhoneImpl::IsEnabled() const
|
||||
{
|
||||
UIView* targetView = m_osxView;
|
||||
// TODO add support for documentViews
|
||||
|
||||
if ( [targetView respondsToSelector:@selector(isEnabled) ] )
|
||||
return [targetView isEnabled];
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
void wxWidgetIPhoneImpl::Enable( bool enable )
|
||||
{
|
||||
UIView* targetView = m_osxView;
|
||||
// TODO add support for documentViews
|
||||
|
||||
if ( [targetView respondsToSelector:@selector(setEnabled:) ] )
|
||||
[targetView setEnabled:enable];
|
||||
}
|
||||
|
||||
void wxWidgetIPhoneImpl::SetMinimum( wxInt32 v )
|
||||
@ -577,10 +589,12 @@ void wxWidgetIPhoneImpl::SetMaximum( wxInt32 v )
|
||||
|
||||
wxInt32 wxWidgetIPhoneImpl::GetMinimum() const
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
wxInt32 wxWidgetIPhoneImpl::GetMaximum() const
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
void wxWidgetIPhoneImpl::PulseGauge()
|
||||
|
Loading…
Reference in New Issue
Block a user