]> git.sesse.net Git - vlc/blobdiff - modules/gui/skins2/controls/ctrl_text.hpp
Layout for album art
[vlc] / modules / gui / skins2 / controls / ctrl_text.hpp
index 62449627a50b2e263b8be723cf2cbfa6d8c171b0..30695f4e25e281438249028a8f6655718b42db91 100644 (file)
@@ -38,7 +38,7 @@ class VarText;
 
 
 /// Class for control text
-class CtrlText: public CtrlGeneric, public Observer<VarText, void*>
+class CtrlText: public CtrlGeneric, public Observer<VarText>
 {
     public:
         enum Align_t
@@ -122,7 +122,7 @@ class CtrlText: public CtrlGeneric, public Observer<VarText, void*>
         DEFINE_CALLBACK( CtrlText, UpdateText );
 
         /// Method called when the observed variable is modified
-        virtual void onUpdate( Subject<VarText,void*> &rVariable, void* );
+        virtual void onUpdate( Subject<VarText> &rVariable, void* );
 
         /// Display the text on the control
         void displayText( const UString &rText );
@@ -131,7 +131,9 @@ class CtrlText: public CtrlGeneric, public Observer<VarText, void*>
         void adjust( int &position );
 
         /// Update the behaviour of the text whenever the control size changes
-        virtual void onChangePosition();
+        virtual void onPositionChange();
+        /// Update the behaviour of the text whenever the control size changes
+        virtual void onResize();
 };