本文整理汇总了C++中setMouseOpaque函数的典型用法代码示例。如果您正苦于以下问题:C++ setMouseOpaque函数的具体用法?C++ setMouseOpaque怎么用?C++ setMouseOpaque使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了setMouseOpaque函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: LLPanel
LLStatusBar::LLStatusBar(const LLRect& rect)
: LLPanel(),
mTextHealth(NULL),
mTextTime(NULL),
mSGBandwidth(NULL),
mSGPacketLoss(NULL),
mBtnVolume(NULL),
mBalance(0),
mHealth(100),
mSquareMetersCredit(0),
mSquareMetersCommitted(0)
{
setRect(rect);
// status bar can possible overlay menus?
setMouseOpaque(FALSE);
// size of day of the weeks and year
sDays.reserve(7);
sMonths.reserve(12);
mBalanceTimer = new LLFrameTimer();
mHealthTimer = new LLFrameTimer();
LLUICtrlFactory::getInstance()->buildPanel(this,"panel_status_bar.xml");
}
示例2: LLPanel
LLStatusBar::LLStatusBar(const LLRect& rect)
: LLPanel(),
mTextTime(NULL),
mSGBandwidth(NULL),
mSGPacketLoss(NULL),
mBtnStats(NULL),
mBtnVolume(NULL),
mBoxBalance(NULL),
mBalance(0),
mHealth(100),
mSquareMetersCredit(0),
mSquareMetersCommitted(0)
{
setRect(rect);
// status bar can possible overlay menus?
setMouseOpaque(FALSE);
mBalanceTimer = new LLFrameTimer();
mHealthTimer = new LLFrameTimer();
//MK
LLUICtrl::CommitCallbackRegistry::currentRegistrar()
.add("TopInfoBar.Action", boost::bind(&LLStatusBar::onContextMenuItemClicked, this, _2));
//mk
buildFromFile("panel_status_bar.xml");
}
示例3: LLPanel
LLPanelVolume::LLPanelVolume()
: LLPanel(),
mComboMaterialItemCount(0)
{
setMouseOpaque(FALSE);
}
示例4: setVisible
void LLPanel::initFromParams(const LLPanel::Params& p)
{
//setting these here since panel constructor not called with params
//and LLView::initFromParams will use them to set visible and enabled
setVisible(p.visible);
setEnabled(p.enabled);
setFocusRoot(p.focus_root);
setSoundFlags(p.sound_flags);
// control_name, tab_stop, focus_lost_callback, initial_value, rect, enabled, visible
LLUICtrl::initFromParams(p);
// visible callback
if (p.visible_callback.isProvided())
{
setVisibleCallback(initCommitCallback(p.visible_callback));
}
for (LLInitParam::ParamIterator<LocalizedString>::const_iterator it = p.strings.begin();
it != p.strings.end();
++it)
{
mUIStrings[it->name] = it->value;
}
setLabel(p.label());
setHelpTopic(p.help_topic);
setShape(p.rect);
parseFollowsFlags(p);
setToolTip(p.tool_tip());
setFromXUI(p.from_xui);
mHoverCursor = getCursorFromString(p.hover_cursor);
if (p.has_border)
{
addBorder(p.border);
}
// let constructors set this value if not provided
if (p.use_bounding_rect.isProvided())
{
setUseBoundingRect(p.use_bounding_rect);
}
setDefaultTabGroup(p.default_tab_group);
setMouseOpaque(p.mouse_opaque);
setBackgroundVisible(p.background_visible);
setBackgroundOpaque(p.background_opaque);
setBackgroundColor(p.bg_opaque_color().get());
setTransparentColor(p.bg_alpha_color().get());
mBgOpaqueImage = p.bg_opaque_image();
mBgAlphaImage = p.bg_alpha_image();
mBgOpaqueImageOverlay = p.bg_opaque_image_overlay;
mBgAlphaImageOverlay = p.bg_alpha_image_overlay;
mAcceptsBadge = p.accepts_badge;
}
示例5: setMouseOpaque
// virtual
void LLFloaterMap::draw()
{
// Note: we can't just gAgent.check cameraMouselook() because the transition states are wrong.
if( gAgent.cameraMouselook())
{
setMouseOpaque(FALSE);
getDragHandle()->setMouseOpaque(FALSE);
drawChild(mMap);
}
else
{
setMouseOpaque(TRUE);
getDragHandle()->setMouseOpaque(TRUE);
LLFloater::draw();
}
}
示例6: setMouseOpaque
// virtual
void LLFloaterMap::draw()
{
// Note: we can't just gAgent.check cameraMouselook() because the transition states are wrong.
if( gAgentCamera.cameraMouselook() || !gHippoLimits->mAllowMinimap)
{
setMouseOpaque(FALSE);
getDragHandle()->setMouseOpaque(FALSE);
drawChild(mPanelMap);
}
else
{
setMouseOpaque(TRUE);
getDragHandle()->setMouseOpaque(TRUE);
LLFloater::draw();
}
}
示例7: setMouseOpaque
BOOL LLPanelContents::postBuild()
{
LLRect rect = this->getRect();
setMouseOpaque(FALSE);
childSetAction("button new script",&LLPanelContents::onClickNewScript, this);
return TRUE;
}
示例8: setMouseOpaque
BOOL LLPanelContents::postBuild()
{
setMouseOpaque(FALSE);
childSetAction("button new script",&LLPanelContents::onClickNewScript, this);
childSetAction("button permissions",&LLPanelContents::onClickPermissions, this);
childSetAction("button refresh",&LLPanelContents::onClickRefresh, this);
mPanelInventoryObject = getChild<LLPanelObjectInventory>("contents_inventory");
return TRUE;
}
示例9: setMouseOpaque
// virtual
void LLFloaterMap::draw()
{
// Note: we can't just gAgent.check cameraMouselook() because the transition states are wrong.
if( gAgent.cameraMouselook())
{
setMouseOpaque(FALSE);
getDragHandle()->setMouseOpaque(FALSE);
drawChild(mPanelMap);
if (gSavedSettings.getBOOL("ShowMiniMapRadar") && !LLFloaterMap::getInstance()->isMinimized())
{
drawChild(mPanelRadar);
}
}
else if (gHippoLimits->mAllowMinimap) //Check for if minimap is blocked
{
setMouseOpaque(TRUE);
getDragHandle()->setMouseOpaque(TRUE);
LLFloater::draw();
}
}
示例10: LLPanel
LLOverlayBar::LLOverlayBar()
: LLPanel(),
mMediaRemote(NULL),
mVoiceRemote(NULL),
mMusicState(STOPPED)
{
setMouseOpaque(FALSE);
setIsChrome(TRUE);
mBuilt = false;
LLCallbackMap::map_t factory_map;
factory_map["media_remote"] = LLCallbackMap(LLOverlayBar::createMediaRemote, this);
factory_map["voice_remote"] = LLCallbackMap(LLOverlayBar::createVoiceRemote, this);
factory_map["chat_bar"] = LLCallbackMap(LLOverlayBar::createChatBar, this);
LLUICtrlFactory::getInstance()->buildPanel(this, "panel_overlaybar.xml", &factory_map);
}
示例11: mSpeakerList
//
// LLPanelActiveSpeakers
//
LLPanelActiveSpeakers::LLPanelActiveSpeakers(LLSpeakerMgr* data_source, BOOL show_text_chatters) :
mSpeakerList(NULL),
mMuteVoiceCtrl(NULL),
mMuteTextCtrl(NULL),
mNameText(NULL),
mProfileBtn(NULL),
mShowTextChatters(show_text_chatters),
mSpeakerMgr(data_source)
{
setMouseOpaque(FALSE);
mSpeakerMuteListener = new SpeakerMuteListener(this);
mSpeakerAddListener = new SpeakerAddListener(this);
mSpeakerRemoveListener = new SpeakerRemoveListener(this);
mSpeakerClearListener = new SpeakerClearListener(this);
mSpeakerMgr->addListener(mSpeakerAddListener, "add");
mSpeakerMgr->addListener(mSpeakerRemoveListener, "remove");
mSpeakerMgr->addListener(mSpeakerClearListener, "clear");
}
示例12: LLPanel
LLStatusBar::LLStatusBar(const LLRect& rect)
: LLPanel(),
mTextTime(NULL),
mSGBandwidth(NULL),
mSGPacketLoss(NULL),
mBtnVolume(NULL),
mBalance(0),
mHealth(100),
mSquareMetersCredit(0),
mSquareMetersCommitted(0)
{
setRect(rect);
// status bar can possible overlay menus?
setMouseOpaque(FALSE);
mBalanceTimer = new LLFrameTimer();
mHealthTimer = new LLFrameTimer();
buildFromFile("panel_status_bar.xml");
}
示例13: LLPanel
LLOverlayBar::LLOverlayBar(const std::string& name, const LLRect& rect)
: LLPanel(name, rect, FALSE) // not bordered
{
setMouseOpaque(FALSE);
setIsChrome(TRUE);
isBuilt = FALSE;
LLCallbackMap::map_t factory_map;
factory_map["media_remote"] = LLCallbackMap(LLOverlayBar::createMediaRemote, this);
factory_map["music_remote"] = LLCallbackMap(LLOverlayBar::createMusicRemote, this);
gUICtrlFactory->buildPanel(this, "panel_overlaybar.xml", &factory_map);
childSetAction("IM Received",onClickIMReceived,this);
childSetAction("Set Not Busy",onClickSetNotBusy,this);
childSetAction("Release Keys",onClickReleaseKeys,this);
childSetAction("Mouselook",onClickMouselook,this);
childSetAction("Stand Up",onClickStandUp,this);
mMusicRemote->addObserver ( this );
if ( gAudiop )
{
mMusicRemote->setVolume ( gSavedSettings.getF32 ( "AudioLevelMusic" ) );
mMusicRemote->setTransportState ( LLMediaRemoteCtrl::Stop, FALSE );
};
mIsFocusRoot = TRUE;
mMediaRemote->addObserver ( this );
mMediaRemote->setVolume ( gSavedSettings.getF32 ( "MediaAudioVolume" ) );
isBuilt = true;
layoutButtons();
}
示例14: LLPanel
LLTabContainer::LLTabContainer(const std::string& name, const LLRect& rect, TabPosition pos,
BOOL bordered, BOOL is_vertical )
:
LLPanel(name, rect, bordered),
mCurrentTabIdx(-1),
mNextTabIdx(-1),
mTabsHidden(FALSE),
mScrolled(FALSE),
mScrollPos(0),
mScrollPosPixels(0),
mMaxScrollPos(0),
mCloseCallback( NULL ),
mCallbackUserdata( NULL ),
mTitleBox(NULL),
mTopBorderHeight(LLPANEL_BORDER_WIDTH),
mTabPosition(pos),
mLockedTabCount(0),
mMinTabWidth(TABCNTR_TAB_MIN_WIDTH),
mMaxTabWidth(TABCNTR_TAB_MAX_WIDTH),
mPrevArrowBtn(NULL),
mNextArrowBtn(NULL),
mIsVertical(is_vertical),
// Horizontal Specific
mJumpPrevArrowBtn(NULL),
mJumpNextArrowBtn(NULL),
mRightTabBtnOffset(0),
mTotalTabWidth(0)
{
//RN: HACK to support default min width for legacy vertical tab containers
if (mIsVertical)
{
mMinTabWidth = TABCNTR_VERT_TAB_MIN_WIDTH;
}
setMouseOpaque(FALSE);
initButtons( );
mDragAndDropDelayTimer.stop();
}
示例15: mSpeakerMgr
LLParticipantList::LLParticipantList(LLSpeakerMgr* data_source,
bool show_text_chatters) :
mSpeakerMgr(data_source),
mAvatarList(NULL),
mShowTextChatters(show_text_chatters),
mValidateSpeakerCallback(NULL)
{
setMouseOpaque(false);
/* Singu TODO: Avaline?
mAvalineUpdater = new LLAvalineUpdater(boost::bind(&LLParticipantList::onAvalineCallerFound, this, _1),
boost::bind(&LLParticipantList::onAvalineCallerRemoved, this, _1));*/
mSpeakerAddListener = new SpeakerAddListener(*this);
mSpeakerRemoveListener = new SpeakerRemoveListener(*this);
mSpeakerClearListener = new SpeakerClearListener(*this);
//mSpeakerModeratorListener = new SpeakerModeratorUpdateListener(*this);
mSpeakerMuteListener = new SpeakerMuteListener(*this);
mSpeakerMgr->addListener(mSpeakerAddListener, "add");
mSpeakerMgr->addListener(mSpeakerRemoveListener, "remove");
mSpeakerMgr->addListener(mSpeakerClearListener, "clear");
//mSpeakerMgr->addListener(mSpeakerModeratorListener, "update_moderator");
}