mirror of
https://gitee.com/houstudio/Cdroid.git
synced 2024-11-29 18:59:14 +08:00
make all subproject compile passed
This commit is contained in:
parent
e839f09a1f
commit
cde7e7b0ae
@ -1,6 +1,6 @@
|
||||
#include <cdroid.h>
|
||||
#if ENABLE_BARCODE
|
||||
#include <ext_widget/barcodeview.h>
|
||||
#include <widgetEx/barcodeview.h>
|
||||
#endif
|
||||
|
||||
int main(int argc,const char*argv[]){
|
||||
|
@ -52,11 +52,15 @@ struct CRect{
|
||||
height=h;
|
||||
}
|
||||
|
||||
void inflate(T dx,T dy){
|
||||
left-=dx;
|
||||
top -=dy;
|
||||
width+=(dx+dx);
|
||||
height+=(dy+dy);
|
||||
}
|
||||
|
||||
void inset(T dx,T dy){
|
||||
left +=dx;
|
||||
top +=dy;
|
||||
width-=(dx+dx);
|
||||
height-=(dy+dy);
|
||||
inflate(-dx,-dy);
|
||||
}
|
||||
|
||||
bool empty()const{
|
||||
|
@ -1 +1 @@
|
||||
add_subdirectory(wpa)
|
||||
#add_subdirectory(wpa)
|
||||
|
@ -285,7 +285,7 @@ TEST_F(DRAWABLE,clipdrawable){
|
||||
|
||||
ShapeDrawable*sd=new ShapeDrawable();
|
||||
Shape*sp=new RectShape();
|
||||
ClipDrawable *cd2=new ClipDrawable(sd,Gravity::CENTER);
|
||||
ClipDrawable *cd2=new ClipDrawable(sd,Gravity::CENTER,ClipDrawable::HORIZONTAL);
|
||||
sd->setShape(sp);
|
||||
cd2->setDrawable(sd);
|
||||
sp->setSolidColor(0xFFFF0000);
|
||||
|
@ -71,7 +71,7 @@ TEST_F(MUTATE,ninepatch){
|
||||
|
||||
TEST_F(MUTATE,clip){
|
||||
ColorDrawable*c=new ColorDrawable(0xFFFF0000);
|
||||
ClipDrawable*d1=new ClipDrawable(c,0);
|
||||
ClipDrawable*d1=new ClipDrawable(c,0,0);
|
||||
ClipDrawable*d2=(ClipDrawable*)d1->getConstantState()->newDrawable();
|
||||
ASSERT_NE(d2->getDrawable(),(void*)nullptr);
|
||||
ASSERT_NE(dynamic_cast<ClipDrawable*>(d2),(void*)nullptr);
|
||||
@ -81,7 +81,7 @@ TEST_F(MUTATE,clip){
|
||||
|
||||
TEST_F(MUTATE,clipshape){
|
||||
ShapeDrawable*c=new ShapeDrawable();
|
||||
ClipDrawable*d1=new ClipDrawable(c,0);
|
||||
ClipDrawable*d1=new ClipDrawable(c,0,0);
|
||||
ClipDrawable*d2=(ClipDrawable*)d1->getConstantState()->newDrawable();
|
||||
ASSERT_NE(d2->getDrawable(),(void*)nullptr);
|
||||
ASSERT_NE(dynamic_cast<ShapeDrawable*>(d2->getDrawable()),(void*)nullptr);
|
||||
|
Loading…
Reference in New Issue
Block a user