Skip to main content
Ezgi
Associate III
March 9, 2021
Question

Is there a way to call my own function from my cpp file to ScreenView.cpp or ScreenViewBase.cpp?

  • March 9, 2021
  • 2 replies
  • 736 views

I wrote a function in my own cpp file using touchgfx library. It sets and start a zoom animation. I want that when the button is clicked ,the function is called to ScreenView.cpp or ScreenViewBase.cpp and then the animation is set and started.Is it possible? If it is, then how?

This topic has been closed for replies.

2 replies

MM..1
Super User
March 9, 2021

When your cpp file is new class , then yes, but your explain show as you try create methods for screen class outside class, and this i mean C++ not support.

Why you dont do this inside existing files ?

Ezgi
EzgiAuthor
Associate III
March 10, 2021

I want to access ZoomAnimationImage class from outside. Is there a way to do it?