rename some headfile's definications

This commit is contained in:
侯歌 2022-01-11 14:35:19 +08:00
parent 99123f373e
commit 54f2b8cb15
10 changed files with 21 additions and 22 deletions

View File

@ -1,5 +1,5 @@
#ifndef __NGL_UIEVENTS_H__
#define __NGL_UIEVENTS_H__
#ifndef __CDROID_UIEVENTS_H__
#define __CDROID_UIEVENTS_H__
#include <string>
#include <core/eventcodes.h>
#include <core/sparsearray.h>

View File

@ -14,8 +14,8 @@
* limitations under the License.
*/
#ifndef __NGLUI_WINDOWMANAGER_H__
#define __NGLUI_WINDOWMANAGER_H__
#ifndef __CDROID_WINDOWMANAGER_H__
#define __CDROID_WINDOWMANAGER_H__
#include <widget/view.h>
#include <widget/window.h>
@ -53,6 +53,6 @@ private:
DISALLOW_COPY_AND_ASSIGN(WindowManager);
};
} // namespace ui
} // namespace cdroid
#endif // __NGLUI_WINDOWMANAGER_H__
#endif // __CDROID WINDOWMANAGER_H__

View File

@ -1,5 +1,5 @@
#ifndef __NGLUI_EDITVIEW_H__
#define __NGLUI_EDITVIEW_H__
#ifndef __CDROID_EDITVIEW_H__
#define __CDROID_EDITVIEW_H__
#include <widget/textview.h>
namespace cdroid{
@ -49,7 +49,7 @@ public:
virtual bool onKeyDown(int,KeyEvent&evt)override;
};
}//endof UI
}//endof cdroid
#endif

View File

@ -109,5 +109,5 @@ public:
};
typedef LinearLayout::LayoutParams LinearLayoutParams;
} // namespace ui
} // namespace cdroid
#endif

View File

@ -214,6 +214,6 @@ public:
void removeTextChangedListener(TextWatcher watcher);
};
} // namespace ui
} // namespace cdroid
#endif //__TEXTVIEW_H__

View File

@ -1,5 +1,5 @@
#ifndef __NGL_VIEW_H__
#define __NGL_VIEW_H__
#ifndef __CDROID_VIEW_H__
#define __CDROID_VIEW_H__
#include <core/eventcodes.h>
#include <core/uievents.h>
#include <core/canvas.h>

View File

@ -14,8 +14,8 @@
* limitations under the License.
*/
#ifndef __NGLUI_GROUPVIEW_H__
#define __NGLUI_GROUPVIEW_H__
#ifndef __CDROID_GROUPVIEW_H__
#define __CDROID_GROUPVIEW_H__
#include <widget/view.h>
#include <core/scroller.h>
@ -328,6 +328,6 @@ public:
virtual void cancelInvalidate(View* view);
};
} // namespace ui
} // namespace cdroid
#endif // __NGLUI_GROUPVIEW_H__
#endif // __CDROID_GROUPVIEW_H__

View File

@ -96,7 +96,6 @@ void Window::hide(){
View& Window::setPos(int x,int y){
ViewGroup::setPos(x,y);
if( ((x!=mLeft) || (y!=mTop) ) && isAttachedToWindow()){
//WindowManager::getInstance().resetVisibleRegion();
WindowManager::getInstance().moveWindow(this,x,y);
mLeft=x;
mTop=y;

View File

@ -14,8 +14,8 @@
* limitations under the License.
*/
#ifndef __NGLUI_WINDOW_H__
#define __NGLUI_WINDOW_H__
#ifndef __CDROID_WINDOW_H__
#define __CDROID_WINDOW_H__
#include <cdtypes.h>
#include <widget/viewgroup.h>
#include <widget/framelayout.h>

View File

@ -1,5 +1,5 @@
#ifndef __NGL_GRAPH_H__
#define __NGL_GRAPH_H__
#ifndef __CDROID_GRAPH_H__
#define __CDROID_GRAPH_H__
#include <cdtypes.h>
/**