From: Mikko Rasa Date: Sun, 22 Sep 2013 15:05:03 +0000 (+0300) Subject: Add a shortcut for defining normal graphic X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=601e9fbcfdb26b53aff4d44805bb596f0b73208a;p=libs%2Fgltk.git Add a shortcut for defining normal graphic --- diff --git a/source/part.cpp b/source/part.cpp index 7c98545..4726b4c 100644 --- a/source/part.cpp +++ b/source/part.cpp @@ -58,6 +58,11 @@ Part::Loader::~Loader() } } +void Part::Loader::graphic_normal(const string &n) +{ + graphic(NORMAL, n); +} + void Part::Loader::graphic(State s, const string &n) { Graphic *grph = &get_collection().get(n); diff --git a/source/part.h b/source/part.h index a3e065a..252d5a3 100644 --- a/source/part.h +++ b/source/part.h @@ -25,6 +25,7 @@ public: Loader(Part &, Resources &); ~Loader(); private: + void graphic_normal(const std::string &); void graphic(State, const std::string &); void align(float, float); void fill(float, float);