Hi all,
I have the following problem :
I am coding a Toolkit/Wmanager with directFB. I got quite an advance since I already have a bunch of basic widgets working and some test apps running (Image viewer, Terminal tests windows ..).
I use fusion to share my theme structures between all process but something troubles me :
Each time I need to draw my windows/widget I have to create surfaces that I Tile Blit. What I would like to do is rendering once my pictures on small surfaces that I'd like to share with fusion between all my process. I couldn't find a way to share a directfb Surface||Window in an easy way. That is, many
fields of these structures are pointers, dynamically allocated by directfb. So if I want to do something like :
IDirectFBWindow *sharedwindow;
sharedwindow = (IdirectFBWindow *) SHALLOC (1,sizeof(IDirectFBWindow));
CopyToShare (my_created_window, sharedwindow);
//Then publish shared window in my arena
The CopyToShare function will have to manually allocate all the memory then memcpy the content from one structure to another .. Quite painfull ..
So big description for a simple question : is there a way to perform this kind of operation in a easier way ?
Thanx a lot in advance.
--
Best regards,
Hermantino
_______________________________________________ directfb-users mailing list [email protected] http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users
