*Hi Jacky,To use Wayland , the following API's are being supported via EFL
library in tizen to use the Wayland Window/Surface creation/handling etc...*

*Highlighted in blue is the API which will create a surface for you...*


*I am pasting below the Signatures of all those API which are of your
interest to use Wayland in Tizen ..*







































*- EAPI Ecore_Wl_Window *     ecore_wl_window_new (Ecore_Wl_Window *parent,
int x, int y, int w, int h, int buffer_type)     Creates a new window.  -
EAPI void     ecore_wl_window_free (Ecore_Wl_Window *win)     Deletes the
given window.  - EAPI void     ecore_wl_window_move (Ecore_Wl_Window *win,
int x, int y)     Signals for Wayland to initiate a window move.  - EAPI
void     ecore_wl_window_resize (Ecore_Wl_Window *win, int w, int h, int
location)     Signals for Wayland to initiate a window resize.  - EAPI void
    ecore_wl_window_show (Ecore_Wl_Window *win)     Shows a window.  - EAPI
void     ecore_wl_window_hide (Ecore_Wl_Window *win)     Hides a window.  -
EAPI void     ecore_wl_window_raise (Ecore_Wl_Window *win)     Raises a
window.  - EAPI struct wl_surface *     ecore_wl_window_surface_create
(Ecore_Wl_Window *win)     Returns a wl_surface with no association to any
wl_shell_surface.  - EAPI Ecore_Wl_Window *
ecore_wl_window_surface_find (struct wl_surface *surface)     Returns the
Ecore_Wl_Window from a wl_surface.  - EAPI void
ecore_wl_window_input_region_set (Ecore_Wl_Window *win, int x, int y, int
w, int h)     Set the input region of the Ecore_Wl_Window.  - EAPI void
ecore_wl_window_opaque_region_set (Ecore_Wl_Window *win, int x, int y, int
w, int h)     Set the opaque region of the Ecore_Wl_Window.  - EAPI void
    ecore_wl_window_rotation_set (Ecore_Wl_Window *win, int rotation)
Set the rotation of the Ecore_Wl_Window.  - EAPI int
ecore_wl_window_rotation_get (Ecore_Wl_Window *win)     Get the rotation of
the Ecore_Wl_Window. *


*Thanks*
*-Dexter*


On Fri, Jun 13, 2014 at 2:16 PM, Jacky (ZhiJun) Ni <[email protected]>
wrote:

> Hi guys,
>
>          I’ve learned something  about wayland, I know that I can get the
> window from the function named  “wl_egl_window_create”, but this function
> has three parameters, one of them is  “struct wl_surface *surface”, how do
> I create or initialize a surface on Tizen-ivi?
>
>
>
>
>
> *From:* Jacky (ZhiJun) Ni
> *Sent:* Friday, June 13, 2014 2:45 PM
> *To:* [email protected]
> *Subject:* How to create wayland's window
>
>
>
> Hi guys,
>
>          I’m now programming opengl application for Tizen-IVI, for
> opengl’s function which named “eglCreateWindowSurface” need a window handle
> as one of the parameters, I can get X11’s window handle by the following
> code snippet, but on wayland platform, the APIs are different from X11, I
> have no idea on how to solve it by far, is there anyone who is familiar
> with the wayland’s window creating? Hope to get your feedbacks, Thanks!
>
>
>
>
>
>          *Snippet for X11’s window creating:*
>
>          EGLNativeWindowType* CreateWindow()
>
> {
>
>                 int screen = -1;
>
>               Display*     m_xldisplay = NULL ;
>
>               Window     root_window;
>
>                   EGLNativeWindowType* m_window = NULL;
>
>
>
>               printf("Start CreateWindowSurface\n");
>
>               m_xldisplay = XOpenDisplay ( NULL );   // open the standard
> display (the primary screen)
>
>               if ( m_xldisplay == NULL )
>
>                    {
>
>                  printf ("cannot connect to X server\n");
>
>                  return NULL;
>
>               }
>
>               screen = DefaultScreen(m_xldisplay);
>
>               root_window = RootWindow(m_xldisplay,screen);
>
>               static int Hnd = XCreateSimpleWindow(m_xldisplay,
> root_window,0,0,800,480,0,0,0);
>
>               m_window = (EGLNativeWindowType*)&Hnd;
>
>               if (!m_window)
>
>               {
>
>                  printf("Failed to create X window.\n");
>
>                  return NULL;
>
>               }
>
>               XUndefineCursor(m_xldisplay, *m_window);
>
>               XMapRaised(m_xldisplay, *m_window);
>
>               XFlush(m_xldisplay);
>
>               return m_window;
>
> }
>
>
>
> Best Regards,
>
> Jacky Ni
>
>
>
> CONFIDENTIALITY NOTICE: The information contained in this message may be
> privileged and/or confidential. If you are not the intended recipient, or
> responsible for delivering this message to the intended recipient, any
> review, forwarding, dissemination, distribution or copying of this
> communication or any attachment(s) is strictly prohibited. If you have
> received this message in error, please notify the sender immediately, and
> delete it and all attachments from your computer and network.
>
> _______________________________________________
> IVI mailing list
> [email protected]
> https://lists.tizen.org/listinfo/ivi
>
>
_______________________________________________
IVI mailing list
[email protected]
https://lists.tizen.org/listinfo/ivi

Reply via email to