module HROOT.Class.TNamed.Interface where
import Data.Word
import Foreign.ForeignPtr
import HROOT.TypeCast
import HROOT.Class.TNamed.RawType
import HROOT.Class.TObject.Interface
class (ITObject a) => ITNamed a where
setName :: a -> String -> IO ()
setNameTitle :: a -> String -> String -> IO ()
setTitle :: a -> String -> IO ()
instance Existable TNamed where
data Exist TNamed = forall a. (FPtr a, ITNamed a) => ETNamed a
upcastTNamed :: (FPtr a, ITNamed a) => a -> TNamed
upcastTNamed h = let fh = get_fptr h
fh2 :: ForeignPtr RawTNamed = castForeignPtr fh
in cast_fptr_to_obj fh2