How to get Sprite's visibility

CCSprite have setVisible(bool) method. but no getVisibile().

Is there any way to get a sprite’s visibility?

CCSprite* player = CCSprite::spriteWithFile(“Player.png”,CCRectMake(0,0,27,40));
player~~>setPosition.width/2,winsize.height/2));
this~~>addChild(player);

Srikanth, I know of adding sprite in the scene.

But, I want to know the sprite’s visibility value.

bool visible = sprite1~~>isVisible;
or you could use the opacity value:
int alpha = sprite1~~>getOpacity();

http://www.cocos2d-x.org/reference/native-cpp/d4/de7/classcocos2d_1_1_c_c_sprite.html

ah~ thanks Phill~
: )