]> git.sesse.net Git - vlc/blobdiff - modules/gui/skins2/src/theme.cpp
* skins2:
[vlc] / modules / gui / skins2 / src / theme.cpp
index 696e9c3f2cef8b70f1f6d84a5dbe8278f219967c..af7c2f9a2f497b47fde01dff67bd23d855c0e94f 100644 (file)
@@ -197,35 +197,39 @@ void Theme::saveConfig()
     while( pos != string::npos ); \
     return NULL;
 
-GenericBitmap *Theme::getBitmapById( const string &id )
+GenericBitmap *Theme::getBitmapById( const string &id ) const
 {
     FIND_FIRST_OBJECT( GenericBitmapPtr, m_bitmaps );
 }
 
-GenericFont *Theme::getFontById( const string &id )
+GenericFont *Theme::getFontById( const string &id ) const
 {
     FIND_FIRST_OBJECT( GenericFontPtr, m_fonts );
 }
 
-Popup *Theme::getPopupById( const string &id )
+Popup *Theme::getPopupById( const string &id ) const
 {
     FIND_OBJECT( PopupPtr, m_popups );
 }
 
-TopWindow *Theme::getWindowById( const string &id )
+TopWindow *Theme::getWindowById( const string &id ) const
 {
     FIND_OBJECT( TopWindowPtr, m_windows );
 }
 
-GenericLayout *Theme::getLayoutById( const string &id )
+GenericLayout *Theme::getLayoutById( const string &id ) const
 {
     FIND_OBJECT( GenericLayoutPtr, m_layouts );
 }
 
-CtrlGeneric *Theme::getControlById( const string &id )
+CtrlGeneric *Theme::getControlById( const string &id ) const
 {
     FIND_OBJECT( CtrlGenericPtr, m_controls );
 }
 
+Position *Theme::getPositionById( const string &id ) const
+{
+    FIND_OBJECT( PositionPtr, m_positions );
+}