本文整理汇总了C++中GetHandle函数的典型用法代码示例。如果您正苦于以下问题:C++ GetHandle函数的具体用法?C++ GetHandle怎么用?C++ GetHandle使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了GetHandle函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。
示例1: VmbRegistersWrite
VmbErrorType Camera::WriteRegisters( const VmbUint64_t *pAddressArray, VmbUint32_t nAddressSize, const VmbUint64_t *pDataArray, VmbUint32_t *pCompletedWrites )
{
return static_cast<VmbErrorType>( VmbRegistersWrite( GetHandle(), nAddressSize, pAddressArray, pDataArray, pCompletedWrites ) );
}
开发者ID:gaobo9109,项目名称:sick-lidar,代码行数:4,代码来源:Camera.cpp
示例2: SetProperties
void SetProperties(NLProperties value)
{
NCheck(NLAttributesSetProperties(GetHandle(), value));
}
开发者ID:aeadara,项目名称:muzima-fingerprint-android,代码行数:4,代码来源:NLAttributes.hpp
示例3: GetBackgroundUniformity
NByte GetBackgroundUniformity() const
{
NByte value;
NCheck(NLAttributesGetBackgroundUniformity(GetHandle(), &value));
return value;
}
开发者ID:aeadara,项目名称:muzima-fingerprint-android,代码行数:6,代码来源:NLAttributes.hpp
示例4: SetRoll
void SetRoll(NFloat value)
{
NCheck(NLAttributesSetRoll(GetHandle(), value));
}
开发者ID:aeadara,项目名称:muzima-fingerprint-android,代码行数:4,代码来源:NLAttributes.hpp
示例5: SetExpression
void SetExpression(NLExpression value)
{
NCheck(NLAttributesSetExpression(GetHandle(), value));
}
开发者ID:aeadara,项目名称:muzima-fingerprint-android,代码行数:4,代码来源:NLAttributes.hpp
示例6: GetHandle
void wxComboBox::Dismiss()
{
GetHandle()->hidePopup();
}
开发者ID:3v1n0,项目名称:wxWidgets,代码行数:4,代码来源:combobox.cpp
示例7: SetPitch
void SetPitch(NFloat value)
{
NCheck(NLAttributesSetPitch(GetHandle(), value));
}
开发者ID:aeadara,项目名称:muzima-fingerprint-android,代码行数:4,代码来源:NLAttributes.hpp
示例8: Finalize
static void Finalize(JNIEnv *env, jobject obj)
{
vx_node n = (vx_node)GetHandle(env, obj, NodeClass, handleName);
vxReleaseNode(&n);
SetHandle(env, obj, NodeClass, handleName, 0);
}
开发者ID:flowyard,项目名称:FlowVX,代码行数:6,代码来源:Node.cpp
示例9: setParameter
static jint setParameter(JNIEnv *env, jobject obj, jint index, jlong ref)
{
vx_node n = (vx_node)GetHandle(env, obj, NodeClass, handleName);
return vxSetParameterByIndex(n, index, (vx_reference)ref);
}
开发者ID:flowyard,项目名称:FlowVX,代码行数:5,代码来源:Node.cpp
示例10: defined
void CFrame::OnStopped()
{
m_confirmStop = false;
m_tried_graceful_shutdown = false;
#if defined(HAVE_X11) && HAVE_X11
if (SConfig::GetInstance().bDisableScreenSaver)
X11Utils::InhibitScreensaver(X11Utils::XDisplayFromHandle(GetHandle()),
X11Utils::XWindowFromHandle(GetHandle()), false);
#endif
#ifdef _WIN32
// Allow windows to resume normal idling behavior
SetThreadExecutionState(ES_CONTINUOUS);
#endif
m_RenderFrame->SetTitle(StrToWxStr(scm_rev_str));
// Destroy the renderer frame when not rendering to main
m_RenderParent->Unbind(wxEVT_SIZE, &CFrame::OnRenderParentResize, this);
// Mouse
wxTheApp->Unbind(wxEVT_RIGHT_DOWN, &CFrame::OnMouse, this);
wxTheApp->Unbind(wxEVT_RIGHT_UP, &CFrame::OnMouse, this);
wxTheApp->Unbind(wxEVT_MIDDLE_DOWN, &CFrame::OnMouse, this);
wxTheApp->Unbind(wxEVT_MIDDLE_UP, &CFrame::OnMouse, this);
wxTheApp->Unbind(wxEVT_MOTION, &CFrame::OnMouse, this);
if (SConfig::GetInstance().bHideCursor)
m_RenderParent->SetCursor(wxNullCursor);
DoFullscreen(false);
if (!SConfig::GetInstance().bRenderToMain)
{
m_RenderFrame->Destroy();
}
else
{
#if defined(__APPLE__)
// Disable the full screen button when not in a game.
m_RenderFrame->EnableFullScreenView(false);
#endif
// Make sure the window is not longer set to stay on top
m_RenderFrame->SetWindowStyle(m_RenderFrame->GetWindowStyle() & ~wxSTAY_ON_TOP);
}
m_RenderParent = nullptr;
m_bRendererHasFocus = false;
m_RenderFrame = nullptr;
// Clean framerate indications from the status bar.
GetStatusBar()->SetStatusText(" ", 0);
// Clear Wii Remote connection status from the status bar.
GetStatusBar()->SetStatusText(" ", 1);
// If batch mode was specified on the command-line or we were already closing, exit now.
if (m_bBatchMode || m_bClosing)
Close(true);
// If using auto size with render to main, reset the application size.
if (SConfig::GetInstance().bRenderToMain && SConfig::GetInstance().bRenderWindowAutoSize)
SetSize(SConfig::GetInstance().iWidth, SConfig::GetInstance().iHeight);
m_GameListCtrl->Enable();
m_GameListCtrl->Show();
m_GameListCtrl->SetFocus();
UpdateGUI();
}
开发者ID:TwitchPlaysPokemon,项目名称:dolphinWatch,代码行数:67,代码来源:FrameTools.cpp
示例11: CelestialNavigationDialogBase
CelestialNavigationDialog::CelestialNavigationDialog(wxWindow *parent)
: CelestialNavigationDialogBase(parent),
m_FixDialog(this),
m_ClockCorrectionDialog(this)
{
wxFileConfig *pConf = GetOCPNConfigObject();
pConf->SetPath( _T("/PlugIns/CelestialNavigation") );
//#ifdef __WXGTK__
// Move(0, 0); // workaround for gtk autocentre dialog behavior
//#endif
// Move(pConf->Read ( _T ( "DialogPosX" ), 20L ), pConf->Read ( _T ( "DialogPosY" ), 20L ));
wxPoint p = GetPosition();
pConf->Read ( _T ( "DialogX" ), &p.x, p.x);
pConf->Read ( _T ( "DialogY" ), &p.y, p.y);
SetPosition(p);
wxSize s = GetSize();
pConf->Read ( _T ( "DialogWidth" ), &s.x, s.x);
pConf->Read ( _T ( "DialogHeight" ), &s.y, s.y);
SetSize(s);
// create a image list for the list with just the eye icon
wxImageList *imglist = new wxImageList(20, 20, true, 1);
imglist->Add(wxBitmap(eye));
m_lSights->AssignImageList(imglist, wxIMAGE_LIST_SMALL);
m_lSights->InsertColumn(rmVISIBLE, wxT(""));
m_lSights->SetColumnWidth(0, 28);
m_lSights->InsertColumn(rmTYPE, _("Type"));
m_lSights->InsertColumn(rmBODY, _("Body"));
m_lSights->InsertColumn(rmTIME, _("Time (UT)"));
m_lSights->InsertColumn(rmMEASUREMENT, _("Measurement"));
m_lSights->InsertColumn(rmCOLOR, _("Color"));
m_sights_path = celestial_navigation_pi::StandardPath() + _T("Sights.xml");
if(!OpenXML(m_sights_path, false)) {
/* create directory for plugin files if it doesn't already exist */
wxFileName fn(m_sights_path);
wxFileName fn2 = fn.GetPath();
if(!fn.DirExists()) {
fn2.Mkdir();
fn.Mkdir();
}
}
wxString filename = DataDirectory() + "vsop87d.txt";
wxFileName fn(filename);
if(!fn.Exists())
filename = UserDataDirectory() + "vsop87d.txt";
astrolabe::globals::vsop87d_text_path = (const char *)filename.mb_str();
#ifndef WIN32 // never hit because data is distribued easier to not compile compression support
wxMessageDialog mdlg(this, _("Astrolab data unavailable.\n")
+ _("\nWould you like to download?"),
_("Failure Alert"), wxYES | wxNO | wxICON_ERROR);
if(mdlg.ShowModal() == wxID_YES) {
wxString url = "https://cfhcable.dl.sourceforge.net/project/opencpnplugins/celestial_navigation_pi/";
wxString path = UserDataDirectory();
wxString fn = "vsop87d.txt.gz";
_OCPN_DLStatus status = OCPN_downloadFile(
url+fn, path+fn, _("downloading celestial navigation data file"),
"downloading...",
*_img_celestial_navigation, this,
OCPN_DLDS_CAN_ABORT|OCPN_DLDS_ELAPSED_TIME|OCPN_DLDS_ESTIMATED_TIME|OCPN_DLDS_REMAINING_TIME|OCPN_DLDS_SPEED|OCPN_DLDS_SIZE|OCPN_DLDS_URL|OCPN_DLDS_AUTO_CLOSE, 20);
if(status == OCPN_DL_NO_ERROR) {
// now decompress downloaded file
ZUFILE *f = zu_open(path+fn.mb_str(), "rb", ZU_COMPRESS_AUTO);
if(f) {
FILE *out = fopen(path+"vsop87d.txt", "w");
if(out) {
char buf[1024];
for(;;) {
size_t size = zu_read(f, buf, sizeof buf);
fwrite(buf, size, 1, out);
if(size != sizeof buf)
break;
}
fclose(out);
}
zu_close(f);
}
}
}
#endif
#ifdef __OCPN__ANDROID__
GetHandle()->setStyleSheet( qtStyleSheet);
Move(0, 0);
#endif
}
开发者ID:seandepagnier,项目名称:celestial_navigation_pi,代码行数:98,代码来源:CelestialNavigationDialog.cpp
示例12: GetToolBar
// Prepare the GUI to start the game.
void CFrame::StartGame(const std::string& filename)
{
if (m_bGameLoading)
return;
m_bGameLoading = true;
GetToolBar()->EnableTool(IDM_PLAY, false);
GetMenuBar()->FindItem(IDM_PLAY)->Enable(false);
if (SConfig::GetInstance().bRenderToMain)
{
// Game has been started, hide the game list
m_GameListCtrl->Disable();
m_GameListCtrl->Hide();
m_RenderParent = m_Panel;
m_RenderFrame = this;
if (SConfig::GetInstance().bKeepWindowOnTop)
m_RenderFrame->SetWindowStyle(m_RenderFrame->GetWindowStyle() | wxSTAY_ON_TOP);
else
m_RenderFrame->SetWindowStyle(m_RenderFrame->GetWindowStyle() & ~wxSTAY_ON_TOP);
// No, I really don't want TAB_TRAVERSAL being set behind my back,
// thanks. (Note that calling DisableSelfFocus would prevent this flag
// from being set for new children, but wouldn't reset the existing
// flag.)
m_RenderParent->SetWindowStyle(m_RenderParent->GetWindowStyle() & ~wxTAB_TRAVERSAL);
}
else
{
wxRect window_geometry(
SConfig::GetInstance().iRenderWindowXPos, SConfig::GetInstance().iRenderWindowYPos,
SConfig::GetInstance().iRenderWindowWidth, SConfig::GetInstance().iRenderWindowHeight);
// Set window size in framebuffer pixels since the 3D rendering will be operating at
// that level.
wxSize default_size{wxSize(640, 480) * (1.0 / GetContentScaleFactor())};
m_RenderFrame = new CRenderFrame(this, wxID_ANY, _("Dolphin"), wxDefaultPosition, default_size);
// Convert ClientSize coordinates to frame sizes.
wxSize decoration_fudge = m_RenderFrame->GetSize() - m_RenderFrame->GetClientSize();
default_size += decoration_fudge;
if (!window_geometry.IsEmpty())
window_geometry.SetSize(window_geometry.GetSize() + decoration_fudge);
WxUtils::SetWindowSizeAndFitToScreen(m_RenderFrame, window_geometry.GetPosition(),
window_geometry.GetSize(), default_size);
if (SConfig::GetInstance().bKeepWindowOnTop)
m_RenderFrame->SetWindowStyle(m_RenderFrame->GetWindowStyle() | wxSTAY_ON_TOP);
else
m_RenderFrame->SetWindowStyle(m_RenderFrame->GetWindowStyle() & ~wxSTAY_ON_TOP);
m_RenderFrame->SetBackgroundColour(*wxBLACK);
m_RenderFrame->Bind(wxEVT_CLOSE_WINDOW, &CFrame::OnRenderParentClose, this);
m_RenderFrame->Bind(wxEVT_ACTIVATE, &CFrame::OnActive, this);
m_RenderFrame->Bind(wxEVT_MOVE, &CFrame::OnRenderParentMove, this);
#ifdef _WIN32
// The renderer should use a top-level window for exclusive fullscreen support.
m_RenderParent = m_RenderFrame;
#else
// To capture key events on Linux and Mac OS X the frame needs at least one child.
m_RenderParent = new wxPanel(m_RenderFrame, IDM_MPANEL, wxDefaultPosition, wxDefaultSize, 0);
#endif
m_RenderFrame->Show();
}
#if defined(__APPLE__)
m_RenderFrame->EnableFullScreenView(true);
#endif
wxBusyCursor hourglass;
DoFullscreen(SConfig::GetInstance().bFullscreen);
if (!BootManager::BootCore(filename))
{
DoFullscreen(false);
// Destroy the renderer frame when not rendering to main
if (!SConfig::GetInstance().bRenderToMain)
m_RenderFrame->Destroy();
m_RenderFrame = nullptr;
m_RenderParent = nullptr;
m_bGameLoading = false;
UpdateGUI();
}
else
{
#if defined(HAVE_X11) && HAVE_X11
if (SConfig::GetInstance().bDisableScreenSaver)
X11Utils::InhibitScreensaver(X11Utils::XDisplayFromHandle(GetHandle()),
X11Utils::XWindowFromHandle(GetHandle()), true);
#endif
#ifdef _WIN32
// Prevents Windows from sleeping, turning off the display, or idling
EXECUTION_STATE shouldScreenSave =
SConfig::GetInstance().bDisableScreenSaver ? ES_DISPLAY_REQUIRED : 0;
SetThreadExecutionState(ES_CONTINUOUS | shouldScreenSave | ES_SYSTEM_REQUIRED);
//.........这里部分代码省略.........
开发者ID:TwitchPlaysPokemon,项目名称:dolphinWatch,代码行数:101,代码来源:FrameTools.cpp
示例13: wxPanel
CSimpleGUIPanel::CSimpleGUIPanel(wxWindow* parent) :
wxPanel(parent, -1, wxDefaultPosition, wxDefaultSize, wxCLIP_CHILDREN | wxBORDER_NONE)
{
wxLogTrace(wxT("Function Start/End"), wxT("CSimpleGUIPanel::CSimpleGUIPanel - Overloaded Constructor Function Begin"));
CSkinAdvanced* pSkinAdvanced = wxGetApp().GetSkinManager()->GetAdvanced();
wxASSERT(pSkinAdvanced);
wxASSERT(wxDynamicCast(pSkinAdvanced, CSkinAdvanced));
m_taskPanel = NULL;
m_projPanel = NULL;
m_oldWorkCount = 0;
m_bNewNoticeAlert = false;
m_bNoticesButtonIsRed = false;
m_irefreshCount = 0;
checkForNewNoticesTimer = new wxTimer(this, ID_SIMPLEMESSAGECHECKTIMER);
checkForNewNoticesTimer->Start(5000);
dlgOpen = false;
m_sSuspendString = _("Suspend");
m_sResumeString = _("Resume");
m_sSuspendButtonToolTip = _("Suspend Computing");
m_sResumeButtonToolTip = _("Resume Computing");
m_taskPanel = new CSimpleTaskPanel(this);
m_projPanel = new CSimpleProjectPanel(this);
// Box Sizer
mainSizer = new wxBoxSizer(wxVERTICAL);
mainSizer->AddSpacer(ADJUSTFORYDPI(68));
mainSizer->Add(m_taskPanel, 1, wxLEFT | wxRIGHT | wxEXPAND | wxALIGN_CENTER, SIDEMARGINS);
mainSizer->AddSpacer(ADJUSTFORYDPI(8));
mainSizer->Add(m_projPanel, 0, wxLEFT | wxRIGHT | wxEXPAND | wxALIGN_CENTER, SIDEMARGINS);
mainSizer->AddSpacer(ADJUSTFORYDPI(8));
wxBoxSizer* buttonsSizer;
buttonsSizer = new wxBoxSizer( wxHORIZONTAL );
m_NoticesButton = new wxButton( this, ID_SGNOTICESBUTTON, _("Notices"), wxDefaultPosition, wxDefaultSize, 0 );
m_NoticesButton->SetToolTip( _("Open a window to view notices from projects or BOINC"));
buttonsSizer->Add( m_NoticesButton, 0, wxEXPAND | wxALIGN_LEFT, 0 );
buttonsSizer->AddStretchSpacer();
int suspendWidth, resumeWidth, y;
GetTextExtent(m_sSuspendString, &suspendWidth, &y);
GetTextExtent(m_sResumeString, &resumeWidth, &y);
m_bIsSuspended = suspendWidth > resumeWidth;
m_SuspendResumeButton = new wxButton( this, ID_SGSUSPENDRESUMEBUTTON,
m_bIsSuspended ? m_sSuspendString : m_sResumeString,
wxDefaultPosition, wxDefaultSize, 0 );
m_SuspendResumeButton->SetToolTip(wxEmptyString);
buttonsSizer->Add( m_SuspendResumeButton, 0, wxEXPAND | wxALIGN_RIGHT, 0 );
buttonsSizer->AddStretchSpacer();
m_HelpButton = new wxButton( this, ID_SIMPLE_HELP, _("Help"), wxDefaultPosition, wxDefaultSize, 0 );
buttonsSizer->Add( m_HelpButton, 0, wxEXPAND | wxALIGN_RIGHT, 0 );
wxString helpTip;
helpTip.Printf(_("Get help with %s"), pSkinAdvanced->GetApplicationShortName().c_str());
m_HelpButton->SetToolTip(helpTip);
mainSizer->Add( buttonsSizer, 0, wxLEFT | wxRIGHT | wxEXPAND, 2 * SIDEMARGINS );
mainSizer->AddSpacer(ADJUSTFORYDPI(10));
SetSizer(mainSizer);
Layout();
mainSizer->Fit(GetParent());
SetBackgroundBitmap();
#ifdef __WXMAC__
// Tell accessibility aids to ignore this panel (but not its contents)
HIObjectSetAccessibilityIgnored((HIObjectRef)GetHandle(), true);
if (compareOSVersionTo(10, 7) >= 0) {
m_iRedRingRadius = 4;
} else {
m_iRedRingRadius = 12;
}
#endif
m_SuspendResumeButton->Disable();
OnFrameRender();
wxLogTrace(wxT("Function Start/End"), wxT("CSimpleGUIPanel::CSimpleGUIPanel - Overloaded Constructor Function End"));
}
开发者ID:Ocode,项目名称:boinc,代码行数:92,代码来源:sg_BoincSimpleFrame.cpp
示例14: VmbMemoryWrite
VmbErrorType Camera::WriteMemory( const VmbUint64_t address, const VmbUchar_t *pBuffer, VmbUint32_t nBufferSize, VmbUint32_t *pSizeComplete )
{
return static_cast<VmbErrorType>( VmbMemoryWrite( GetHandle(), address, nBufferSize, (char *)pBuffer, pSizeComplete ) );
}
开发者ID:gaobo9109,项目名称:sick-lidar,代码行数:4,代码来源:Camera.cpp
示例15: GetObjectPart
NObjectPart GetObjectPart(const NObject & object) const
{
HNObjectPart hObjectPart;
NCheck(NObjectPartInfoGetObjectPart(GetHandle(), object.GetHandle(), &hObjectPart));
return FromHandle<NObjectPart>(hObjectPart);
}
开发者ID:aeadara,项目名称:fingerprint-android,代码行数:6,代码来源:NObjectPartInfo.hpp
示例16: GetHandle
void KT_API D3D11HardwareBuffer::CopyBuffer(
D3D11ImmediateContext* ctx,
D3D11HardwareBuffer* src )
{
ctx->GetHandle()->CopyResource( GetHandle(), src->GetHandle() );
}
开发者ID:Ziple,项目名称:kT,代码行数:6,代码来源:D3D11HardwareBuffer.cpp
示例17: ftruncate
int CStdLibFileIO::SetEOF()
{
return ftruncate(GetHandle(), GetPosition());
}
开发者ID:zhaojunlucky,项目名称:veda,代码行数:4,代码来源:StdLibFileIO.cpp
示例18: GetRoll
NFloat GetRoll() const
{
NFloat value;
NCheck(NLAttributesGetRoll(GetHandle(), &value));
return value;
}
开发者ID:aeadara,项目名称:muzima-fingerprint-android,代码行数:6,代码来源:NLAttributes.hpp
示例19: NCheck
NInt score;
NCheck(NfsmVerifyN(GetHandle(), pTemplate1->GetHandle(), pTemplate2->GetHandle(), ppMatchDetails, &score));
return score;
}
NInt Verify(const void * pTemplate1, NSizeType template1Size, const void * pTemplate2, NSizeType template2Size, NfsmMatchDetails * * ppMatchDetails = NULL)
{
NInt score;
NCheck(NfsmVerify(GetHandle(), pTemplate1, template1Size, pTemplate2, template2Size, ppMatchDetails, &score));
return score;
}
void IdentifyStart(::Neurotec::IO::N_CLASS(NBuffer) * pTemplate, NfsmMatchDetails * * ppMatchDetails = NULL)
{
if (!pTemplate) NThrowArgumentNullException(N_T("pTemplate"));
NCheck(NfsmIdentifyStartN(GetHandle(), pTemplate->GetHandle(), ppMatchDetails));
}
void IdentifyStart(const void * pTemplate, NSizeType templateSize, NfsmMatchDetails * * ppMatchDetails = NULL)
{
NCheck(NfsmIdentifyStart(GetHandle(), pTemplate, templateSize, ppMatchDetails));
}
NInt IdentifyNext(::Neurotec::IO::N_CLASS(NBuffer) * pTemplate, NfsmMatchDetails * pMatchDetails = NULL)
{
if (!pTemplate) NThrowArgumentNullException(N_T("pTemplate"));
NInt score;
NCheck(NfsmIdentifyNextN(GetHandle(), pTemplate->GetHandle(), pMatchDetails, &score));
return score;
}
开发者ID:ScoreSolutions,项目名称:TRIUM-VRM,代码行数:30,代码来源:NfsMatcher.hpp
示例20: GetExpression
NLExpression GetExpression() const
{
NLExpression value;
NCheck(NLAttributesGetExpression(GetHandle(), &value));
return value;
}
开发者ID:aeadara,项目名称:muzima-fingerprint-android,代码行数:6,代码来源:NLAttributes.hpp
注:本文中的GetHandle函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论