no throw()
This commit is contained in:
parent
486e75f3ae
commit
5f77c73aaa
@ -80,7 +80,7 @@ namespace API
|
||||
void set_measurer(window, ::nana::dev::widget_content_measurer_interface*);
|
||||
|
||||
void attach_drawer(widget&, drawer_trigger&);
|
||||
::nana::detail::native_string_type window_caption(window) throw();
|
||||
::nana::detail::native_string_type window_caption(window) noexcept;
|
||||
void window_caption(window, ::nana::detail::native_string_type);
|
||||
|
||||
window create_window(window, bool nested, const rectangle&, const appearance&, widget* attached);
|
||||
|
||||
@ -223,7 +223,7 @@ namespace nana
|
||||
const drawerbase::combox::drawer_impl& _m_impl() const;
|
||||
private:
|
||||
//Overrides widget's virtual functions
|
||||
native_string_type _m_caption() const throw() override;
|
||||
native_string_type _m_caption() const noexcept override;
|
||||
void _m_caption(native_string_type&&) override;
|
||||
nana::any * _m_anyobj(std::size_t pos, bool alloc_if_empty) const override;
|
||||
};
|
||||
|
||||
@ -63,8 +63,8 @@ namespace nana{
|
||||
|
||||
group& enable_format_caption(bool format);
|
||||
|
||||
group& collocate() throw();
|
||||
group& div(const char* div_str) throw();
|
||||
group& collocate() noexcept;
|
||||
group& div(const char* div_str) noexcept;
|
||||
field_reference operator[](const char* field);
|
||||
|
||||
template<typename Widget, typename ...Args>
|
||||
@ -78,7 +78,7 @@ namespace nana{
|
||||
void _m_add_child(const char* field, widget*);
|
||||
void _m_init();
|
||||
void _m_complete_creation() override;
|
||||
native_string_type _m_caption() const throw() override;
|
||||
native_string_type _m_caption() const noexcept override;
|
||||
void _m_caption(native_string_type&&) override;
|
||||
private:
|
||||
std::unique_ptr<implement> impl_;
|
||||
|
||||
@ -62,12 +62,12 @@ namespace nana
|
||||
label(window parent, const char* text, bool visible = true) :label(parent, std::string(text),visible) {};
|
||||
label(window, const rectangle& = {}, bool visible = true);
|
||||
label& transparent(bool); ///< Switchs the label widget to the transparent background mode.
|
||||
bool transparent() const throw();
|
||||
bool transparent() const noexcept;
|
||||
label& format(bool); ///< Switches the format mode of the widget.
|
||||
label& add_format_listener(std::function<void(command, const std::string&)>);
|
||||
|
||||
/// as same as the HTML "for" attribute of a label
|
||||
label& click_for(window associated_window) throw();
|
||||
label& click_for(window associated_window) noexcept;
|
||||
|
||||
/// Returns the size of the text. If *allowed_width_in_pixel* is not zero, returns a
|
||||
/// "corrected" size that changes lines to fit the text into the specified width
|
||||
|
||||
@ -113,7 +113,7 @@ namespace nana
|
||||
void modifier(std::string prefix_utf8, std::string suffix_utf8);
|
||||
void modifier(const std::wstring & prefix, const std::wstring& suffix);
|
||||
private:
|
||||
native_string_type _m_caption() const throw();
|
||||
native_string_type _m_caption() const noexcept;
|
||||
void _m_caption(native_string_type&&);
|
||||
}; //end class spinbox
|
||||
}//end namespace nana
|
||||
|
||||
@ -384,7 +384,7 @@ namespace nana
|
||||
driver();
|
||||
~driver();
|
||||
|
||||
model* get_model() const throw();
|
||||
model* get_model() const noexcept;
|
||||
private:
|
||||
//Overrides drawer_trigger's method
|
||||
void attached(widget_reference, graph_reference) override;
|
||||
|
||||
@ -276,7 +276,7 @@ namespace nana
|
||||
std::size_t text_line_count() const noexcept;
|
||||
protected:
|
||||
//Overrides widget's virtual functions
|
||||
native_string_type _m_caption() const throw() override;
|
||||
native_string_type _m_caption() const noexcept override;
|
||||
void _m_caption(native_string_type&&) override;
|
||||
void _m_typeface(const paint::font&) override;
|
||||
};
|
||||
|
||||
@ -54,9 +54,9 @@ namespace nana
|
||||
|
||||
window parent() const;
|
||||
|
||||
::std::string caption() const throw();
|
||||
::std::wstring caption_wstring() const throw();
|
||||
native_string_type caption_native() const throw();
|
||||
::std::string caption() const noexcept;
|
||||
::std::wstring caption_wstring() const noexcept;
|
||||
native_string_type caption_native() const noexcept;
|
||||
|
||||
widget& caption(std::string utf8);
|
||||
widget& caption(std::wstring);
|
||||
@ -130,7 +130,7 @@ namespace nana
|
||||
virtual void _m_complete_creation();
|
||||
|
||||
virtual general_events& _m_get_general_events() const = 0;
|
||||
virtual native_string_type _m_caption() const throw();
|
||||
virtual native_string_type _m_caption() const noexcept;
|
||||
virtual void _m_caption(native_string_type&&);
|
||||
virtual nana::cursor _m_cursor() const;
|
||||
virtual void _m_cursor(nana::cursor);
|
||||
|
||||
@ -149,7 +149,7 @@ namespace nana
|
||||
|
||||
/// Saves images as a windows bitmap file
|
||||
/// @param file_utf8 A UTF-8 string to a filename
|
||||
void save_as_file(const char* file_utf8) const throw();
|
||||
void save_as_file(const char* file_utf8) const noexcept;
|
||||
|
||||
::nana::color palette(bool for_text) const;
|
||||
graphics& palette(bool for_text, const ::nana::color&);
|
||||
|
||||
@ -242,7 +242,7 @@ namespace API
|
||||
}
|
||||
}
|
||||
|
||||
::nana::detail::native_string_type window_caption(window wd) throw()
|
||||
::nana::detail::native_string_type window_caption(window wd) noexcept
|
||||
{
|
||||
auto const iwd = reinterpret_cast<basic_window*>(wd);
|
||||
internal_scope_guard isg;
|
||||
|
||||
@ -1037,7 +1037,7 @@ namespace nana
|
||||
API::refresh_window(*this);
|
||||
}
|
||||
|
||||
auto combox::_m_caption() const throw() -> native_string_type
|
||||
auto combox::_m_caption() const noexcept -> native_string_type
|
||||
{
|
||||
internal_scope_guard lock;
|
||||
auto editor = _m_impl().editor();
|
||||
|
||||
@ -239,7 +239,7 @@ namespace nana{
|
||||
_m_init();
|
||||
}
|
||||
|
||||
auto group::_m_caption() const throw() -> native_string_type
|
||||
auto group::_m_caption() const noexcept -> native_string_type
|
||||
{
|
||||
return impl_->caption.caption_native();
|
||||
}
|
||||
|
||||
@ -825,7 +825,7 @@ namespace nana
|
||||
return *this;
|
||||
}
|
||||
|
||||
bool label::transparent() const throw()
|
||||
bool label::transparent() const noexcept
|
||||
{
|
||||
return API::is_transparent_background(*this);
|
||||
}
|
||||
@ -849,7 +849,7 @@ namespace nana
|
||||
return *this;
|
||||
}
|
||||
|
||||
label& label::click_for(window associated_window) throw()
|
||||
label& label::click_for(window associated_window) noexcept
|
||||
{
|
||||
get_drawer_trigger().impl()->for_associated_wd = associated_window;
|
||||
return *this;
|
||||
|
||||
@ -764,7 +764,7 @@ namespace nana
|
||||
modifier(to_utf8(prefix), to_utf8(suffix));
|
||||
}
|
||||
|
||||
auto spinbox::_m_caption() const throw() -> native_string_type
|
||||
auto spinbox::_m_caption() const noexcept -> native_string_type
|
||||
{
|
||||
internal_scope_guard lock;
|
||||
auto editor = get_drawer_trigger().impl()->editor();
|
||||
|
||||
@ -1533,7 +1533,7 @@ namespace nana
|
||||
delete model_;
|
||||
}
|
||||
|
||||
model* driver::get_model() const throw()
|
||||
model* driver::get_model() const noexcept
|
||||
{
|
||||
return model_;
|
||||
}
|
||||
|
||||
@ -785,7 +785,7 @@ namespace drawerbase {
|
||||
}
|
||||
|
||||
//Override _m_caption for caption()
|
||||
auto textbox::_m_caption() const throw() -> native_string_type
|
||||
auto textbox::_m_caption() const noexcept -> native_string_type
|
||||
{
|
||||
internal_scope_guard lock;
|
||||
auto editor = get_drawer_trigger().editor();
|
||||
|
||||
@ -54,12 +54,12 @@ namespace nana
|
||||
widget& wdg_;
|
||||
};
|
||||
|
||||
std::string widget::caption() const throw()
|
||||
std::string widget::caption() const noexcept
|
||||
{
|
||||
return to_utf8(_m_caption());
|
||||
}
|
||||
|
||||
std::wstring widget::caption_wstring() const throw()
|
||||
std::wstring widget::caption_wstring() const noexcept
|
||||
{
|
||||
#if defined(NANA_WINDOWS)
|
||||
return _m_caption();
|
||||
@ -68,7 +68,7 @@ namespace nana
|
||||
#endif
|
||||
}
|
||||
|
||||
auto widget::caption_native() const throw() -> native_string_type
|
||||
auto widget::caption_native() const noexcept -> native_string_type
|
||||
{
|
||||
return _m_caption();
|
||||
}
|
||||
@ -282,7 +282,7 @@ namespace nana
|
||||
void widget::_m_complete_creation()
|
||||
{}
|
||||
|
||||
auto widget::_m_caption() const throw() -> native_string_type
|
||||
auto widget::_m_caption() const noexcept -> native_string_type
|
||||
{
|
||||
return API::dev::window_caption(handle());
|
||||
}
|
||||
|
||||
@ -934,7 +934,7 @@ namespace paint
|
||||
impl_->size.width = impl_->size.height = 0;
|
||||
}
|
||||
|
||||
void graphics::save_as_file(const char* file_utf8) const throw()
|
||||
void graphics::save_as_file(const char* file_utf8) const noexcept
|
||||
{
|
||||
if(impl_->handle)
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user