2 * Copyright (c) 2013, TOYOTA MOTOR CORPORATION.
4 * This program is licensed under the terms and conditions of the
5 * Apache License, version 2.0. The full text of the Apache License is at
6 * http://www.apache.org/licenses/LICENSE-2.0
10 //==========================================================================
12 * @file CicoSCWindow.h
16 //==========================================================================
17 #ifndef __CICO_SC_WINDOW_H__
18 #define __CICO_SC_WINDOW_H__
24 //==========================================================================
25 // Forward declaration
26 //==========================================================================
29 class CicoSCApplication;
31 //==========================================================================
33 //==========================================================================
34 #define ICO_SURFACEID_2_HOSTID(surfid) (((unsigned int)surfid) >> 24)
35 #define ICO_SURFACEID_2_DISPLAYNO(surfid) (((unsigned int)surfid) >> 16)
36 #define ICO_SURFACEID_2_NODEID(surfid) (((unsigned int)surfid) >> 16)
37 #define ICO_SURFACEID_BASE(nodeid) (((unsigned int)nodeid) << 16)
39 //--------------------------------------------------------------------------
41 * @brief window information class
43 //--------------------------------------------------------------------------
47 // default constructor
51 virtual ~CicoSCWindow();
53 // dump log CicoSCWindow member variables
57 // assignment operator
58 CicoSCWindow& operator=(const CicoSCWindow &object);
61 CicoSCWindow(const CicoSCWindow &object);
64 CicoSCDisplay *m_display; //!< display local cache
65 CicoSCLayer *m_layer; //!< layer local cache
66 CicoSCApplication *m_application; //!< process local cache
67 CicoSCWindow *m_parent; //!< parent window
69 short state; //!< Window status
70 unsigned char request; //!< Request
72 int surfaceid; //!< sruface id (window id)
73 string name; //!< wondow name
74 string appid; //!< application id
75 int pid; //!< process id
77 int nodeid; //!< node id
78 int displayid; //!< display id
79 int layerid; //!< layer id
80 int zoneid; //!< display zone id
81 int subwindow; //!< main window(=0) or sub window(>0)
82 unsigned int eventmask; //!< Event to receive through this window
83 int x; //!< Upperleft X coord of the window
84 int y; //!< Upper left Y coord of the window
85 int width; //!< width of window
86 int height; //!< height of window
87 bool visible; //!< visibility
88 bool raise; //!< raise/lower
89 bool active; //! active/inactive
91 #endif // __CICO_SC_WINDOW_H__
92 // vim:set expandtab ts=4 sw=4: