refacter tooltip

remove compiler warnings
remove deprecated code
This commit is contained in:
Jinhao
2017-05-01 16:57:26 +08:00
parent 9b90f3d3fd
commit 3657be8f7d
4 changed files with 12 additions and 37 deletions

View File

@@ -62,7 +62,7 @@ namespace nana
_m_hold_factory(new factory<TooltipWindow>);
}
tooltip(){}
tooltip() = default;
tooltip(window w, const ::std::string &tip){set(w,tip);}

View File

@@ -43,19 +43,10 @@ namespace nana
~font();
bool empty() const;
/* //deprecated
void make(const ::std::string& name, unsigned size, bool bold = false, bool italic = false, bool underline = false, bool strike_out = false);
void make_raw(const ::std::string& name, unsigned height, unsigned weight, bool italic, bool underline, bool strike_out);
void make(const ::std::string& font_family, unsigned size, const font_style& fs = {});
void make_from_ttf(const path_type& truetype, unsigned size, const font_style& fs = {});
*/
void set_default() const;
::std::string name() const;
double size() const;
bool bold() const;
//unsigned height() const; //deprecated
unsigned weight() const;
bool italic() const;
native_font_type handle() const;