mirror of
https://gitee.com/houstudio/Cdroid.git
synced 2024-11-30 03:08:12 +08:00
code check
This commit is contained in:
parent
15bce396ea
commit
ffd5d7753c
@ -11,8 +11,8 @@ Dialog::Dialog(Context*context){
|
||||
}
|
||||
|
||||
Dialog::Dialog(Context* context,const std::string&resId):Dialog(context){
|
||||
mWindow=new Window(0,0,640,320);
|
||||
View*v=LayoutInflater::from(mWindow->getContext())->inflate(resId,mWindow,true);
|
||||
mWindow = new Window(0,0,640,320);
|
||||
LayoutInflater::from(mWindow->getContext())->inflate(resId,mWindow,true);
|
||||
}
|
||||
|
||||
Dialog::~Dialog(){
|
||||
|
@ -82,8 +82,6 @@ void Keyboard::Key::onReleased(bool inside) {
|
||||
int Keyboard::Key::parseCSV(const std::string& value,std::vector<int>& codes){
|
||||
Tokenizer*token;
|
||||
Tokenizer::fromContents("csv",value.c_str(),&token);
|
||||
int ret=0;
|
||||
int idx=0;
|
||||
do{
|
||||
std::string s=token->nextToken(",");
|
||||
token->skipDelimiters(",");
|
||||
|
@ -6,9 +6,8 @@
|
||||
|
||||
namespace cdroid{
|
||||
|
||||
UIEventSource::UIEventSource(View*v,std::function<void()>r){
|
||||
UIEventSource::UIEventSource(View*v,std::function<void()>r):mLayoutRunner(r){
|
||||
mAttachedView = dynamic_cast<ViewGroup*>(v);
|
||||
mLayoutRunner = r;
|
||||
setOwned(true);
|
||||
}
|
||||
|
||||
|
@ -129,6 +129,11 @@ int BitmapDrawable::getGravity()const{
|
||||
return mBitmapState->mGravity;
|
||||
}
|
||||
|
||||
void BitmapDrawable::setDither(bool dither){
|
||||
//mBitmapState.mPaint.setDither(dither);
|
||||
invalidateSelf();
|
||||
}
|
||||
|
||||
int BitmapDrawable::getIntrinsicWidth()const{
|
||||
return mBitmapWidth;
|
||||
}
|
||||
|
@ -65,6 +65,7 @@ public:
|
||||
void setGravity(int gravity);
|
||||
void setAntiAlias(bool aa);
|
||||
bool hasAntiAlias()const;
|
||||
void setDither(bool)override;
|
||||
int getIntrinsicWidth()const override;
|
||||
int getIntrinsicHeight()const override;
|
||||
int getOpacity()override;
|
||||
|
@ -89,6 +89,9 @@ bool Drawable::isAutoMirrored() {
|
||||
return false;
|
||||
}
|
||||
|
||||
void Drawable::setDither(bool){
|
||||
}
|
||||
|
||||
void Drawable::setColorFilter(ColorFilter*cf) {
|
||||
delete mColorFilter;
|
||||
mColorFilter = cf;
|
||||
|
@ -118,6 +118,7 @@ public:
|
||||
|
||||
int getLayoutDirection()const;
|
||||
bool setLayoutDirection(int);
|
||||
void setDither(bool);
|
||||
|
||||
virtual int getIntrinsicWidth() const;
|
||||
virtual int getIntrinsicHeight()const;
|
||||
|
Loading…
Reference in New Issue
Block a user