+const GL::Font &Style::get_font() const
+{
+ if(!font)
+ throw logic_error("!font");
+ return *font;
+}
+
+const GL::Color &Style::get_font_color(State s) const
+{
+ if(s>=N_STATES_)
+ throw invalid_argument("Style::get_font_color");
+
+ return font_color[s];
+}
+
+const Part *Style::get_part(const string &name) const
+{
+ for(PartSeq::const_iterator i=parts.begin(); i!=parts.end(); ++i)
+ if(i->get_name()==name)
+ return &*i;
+
+ return 0;
+}
+
+bool Style::compare_states(State s1, State s2) const
+{
+ if(s1>=N_STATES_ || s2>=N_STATES_)
+ throw invalid_argument("Style::compare_states");