本文整理汇总了C++中showCursor函数的典型用法代码示例。如果您正苦于以下问题:C++ showCursor函数的具体用法?C++ showCursor怎么用?C++ showCursor使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了showCursor函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: main
int main(void)
{
DlList_T myList =dll_create();
void *one=5;
void *two=6;
void *three=9;
dll_append(myList,one);
dll_append(myList,two);
dll_append(myList,three);
dll_move_to(myList,2);
showCursor(myList);
dll_move_to(myList,1);
showCursor(myList);
dll_move_to(myList,3);
showCursor(myList);
dll_move_to(myList,257);
showCursor(myList);
dll_move_to(myList,1);
showCursor(myList);
printList(myList);
printf("SIZE IS %d\n",dll_size(myList));
dll_clear(myList);
dll_append(myList,one);
dll_append(myList,two);
dll_append(myList,three);
dll_move_to(myList,2);
showCursor(myList);
dll_move_to(myList,1);
showCursor(myList);
dll_move_to(myList,3);
showCursor(myList);
dll_move_to(myList,257);
showCursor(myList);
dll_move_to(myList,1);
showCursor(myList);
printList(myList);
printf("SIZE IS %d\n",dll_size(myList));
return 0;
}
示例2: showCursor
// Select the next/previous neighbour of the selected point
void CanvasPicker::shiftPointCursor( bool up )
{
if ( !d_selectedCurve )
return;
int index = d_selectedPoint + ( up ? 1 : -1 );
index = ( index + d_selectedCurve->dataSize() ) % d_selectedCurve->dataSize();
if ( index != d_selectedPoint )
{
showCursor( false );
d_selectedPoint = index;
showCursor( true );
}
}
示例3: memset
Console::Console(int width, int height)
{
m_width = width;
m_height = height;
m_cursorX = 0;
m_cursorY = 0;
m_textAttributes = NormalText;
m_pBuffer = new CHAR_INFO[width*height];
memset(m_pBuffer, 0, sizeof(CHAR_INFO) * width * height);
AllocConsole();
m_input = GetStdHandle(STD_INPUT_HANDLE);
m_output = GetStdHandle(STD_OUTPUT_HANDLE);
// disable line input mode
SetConsoleMode(m_input, 0);
// resize console
COORD size;
size.X = width;
size.Y = height;
SetConsoleScreenBufferSize(m_output, size);
MoveWindow(GetConsoleWindow(), 100, 100, width*9, height*13, TRUE);
showCursor(false);
}
示例4: showCursor
void
COSXScreen::enter()
{
showCursor();
if (m_isPrimary) {
CGSetLocalEventsSuppressionInterval(0.0);
// enable global hotkeys
//setGlobalHotKeysEnabled(true);
}
else {
// reset buttons
m_buttonState.reset();
// avoid suppression of local hardware events
// [email protected]
CGSetLocalEventsFilterDuringSupressionState(
kCGEventFilterMaskPermitAllEvents,
kCGEventSupressionStateSupressionInterval);
CGSetLocalEventsFilterDuringSupressionState(
(kCGEventFilterMaskPermitLocalKeyboardEvents |
kCGEventFilterMaskPermitSystemDefinedEvents),
kCGEventSupressionStateRemoteMouseDrag);
}
// now on screen
m_isOnScreen = true;
}
示例5: glfwWindowHint
void Window::setWindowDecoration(bool hasDecoration)
{
if (_screenId != -1)
return;
glfwWindowHint(GLFW_VISIBLE, true);
glfwWindowHint(GLFW_RESIZABLE, hasDecoration);
glfwWindowHint(GLFW_DECORATED, hasDecoration);
GLFWwindow* window;
window = glfwCreateWindow(_windowRect[2], _windowRect[3], ("Splash::" + _name).c_str(), 0, _window->getMainWindow());
// Reset hints to default ones
glfwWindowHint(GLFW_RESIZABLE, true);
glfwWindowHint(GLFW_DECORATED, true);
if (!window)
{
Log::get() << Log::WARNING << "Window::" << __FUNCTION__ << " - Unable to update window " << _name << Log::endl;
return;
}
_window = move(make_shared<GlWindow>(window, _window->getMainWindow()));
updateSwapInterval();
setupRenderFBO();
setupReadFBO();
setEventsCallbacks();
showCursor(false);
return;
}
示例6: xData
// Move the selected point
void CanvasPicker::move(const QPoint &pos)
{
if ( !d_selectedCurve )
return;
QVector<double> xData(d_selectedCurve->dataSize());
QVector<double> yData(d_selectedCurve->dataSize());
for ( int i = 0; i < (int)d_selectedCurve->dataSize(); i++ )
{
if ( i == d_selectedPoint )
{
xData[i] = plot()->invTransform(
d_selectedCurve->xAxis(), pos.x());
yData[i] = plot()->invTransform(
d_selectedCurve->yAxis(), pos.y());
}
else
{
const QPointF sample = d_selectedCurve->sample(i);
xData[i] = sample.x();
yData[i] = sample.y();
}
}
d_selectedCurve->setSamples(xData, yData);
plot()->replot();
showCursor(true);
}
示例7: showCursor
void EventsManager::setCursor(int cursorId) {
XSurface cursor;
_sprites.draw(cursor, cursorId);
CursorMan.replaceCursor(cursor.getPixels(), cursor.w, cursor.h, 0, 0, 0);
showCursor();
}
示例8: TView
TEditor::TEditor( const TRect& bounds,
TScrollBar *aHScrollBar,
TScrollBar *aVScrollBar,
TIndicator *aIndicator,
size_t aBufSize ) :
TView( bounds ),
hScrollBar( aHScrollBar ),
vScrollBar( aVScrollBar ),
indicator( aIndicator ),
bufSize( aBufSize ),
canUndo( True ),
selecting( False ),
overwrite( False ),
autoIndent( False ) ,
lockCount( 0 ),
keyState( 0 )
{
growMode = gfGrowHiX | gfGrowHiY;
options |= ofSelectable;
eventMask = evMouseDown | evKeyDown | evCommand | evBroadcast;
showCursor();
initBuffer();
if( buffer != 0 )
isValid = True;
else
{
editorDialog( edOutOfMemory );
bufSize = 0;
isValid = False;
}
setBufLen(0);
}
示例9: showCursor
void LLWindowMacOSX::showCursorFromMouseMove()
{
if (!mHideCursorPermanent)
{
showCursor();
}
}
示例10: eventFilter
/*!
Handle a mouse press event for the observed widget.
\param mouseEvent Mouse event
\sa eventFilter(), widgetMouseReleaseEvent(),
widgetMouseMoveEvent(),
*/
void QwtPanner::widgetMousePressEvent( QMouseEvent *mouseEvent )
{
if ( ( mouseEvent->button() != d_data->button )
|| ( mouseEvent->modifiers() != d_data->buttonModifiers ) )
{
return;
}
QWidget *w = parentWidget();
if ( w == NULL )
return;
#ifndef QT_NO_CURSOR
showCursor( true );
#endif
d_data->initialPos = d_data->pos = mouseEvent->pos();
setGeometry( parentWidget()->rect() );
// We don't want to grab the picker !
QVector<QwtPicker *> pickers = qwtActivePickers( parentWidget() );
for ( int i = 0; i < pickers.size(); i++ )
pickers[i]->setEnabled( false );
d_data->pixmap = grab();
d_data->contentsMask = contentsMask();
for ( int i = 0; i < pickers.size(); i++ )
pickers[i]->setEnabled( true );
show();
}
示例11: reset_image_cache
bool System::execute(const char *bas) {
_stackTrace.removeAll();
_output->reset();
reset_image_cache();
// reset program controlled options
opt_antialias = true;
opt_show_page = false;
opt_quiet = true;
opt_pref_width = _output->getWidth();
opt_pref_height = _output->getHeight();
opt_base = 0;
opt_usepcre = 0;
opt_autolocal = 0;
_state = kRunState;
setWindowTitle(bas);
showCursor(kArrow);
int result = ::sbasic_main(bas);
if (isRunning()) {
_state = kActiveState;
}
if (_editor == NULL) {
opt_command[0] = '\0';
}
enableCursor(true);
opt_file_permitted = 1;
_output->selectScreen(USER_SCREEN1);
_output->resetFont();
_output->flush(true);
_userScreenId = -1;
return result;
}
示例12: showHud
void IUIMapWindow::onPushedOver ()
{
showHud();
UIWindow::onPushedOver();
if (_cursorActive)
showCursor(true);
}
示例13: drawReminder
void drawReminder()
{
fb_setClipping(3,41,252, 150);
fb_drawRect(0,37,255,148,textAreaFillColor);
setFont(font_arial_9);
setColor(textAreaTextColor);
setWrapToBorder();
if(blinkOn())
{
if(isInsert())
setCursorProperties(cursorNormalColor, 1, -1, 0);
else
setCursorProperties(cursorOverwriteColor, 1, -1, 0);
showCursor();
setCursorPos(getKBCursor());
}
setFakeHighlight();
fb_dispString(0,-3,reminder);
setWrapNormal();
hideCursor();
clearHighlight();
drawCurDay();
}
示例14: eventFilter
/*!
Handle a mouse release event for the observed widget.
\param me Mouse event
\sa eventFilter(), widgetMousePressEvent(),
widgetMouseMoveEvent(),
*/
void QwtPanner::widgetMouseReleaseEvent(QMouseEvent *me)
{
if ( isVisible() )
{
hide();
#ifndef QT_NO_CURSOR
showCursor(false);
#endif
QPoint pos = me->pos();
if ( !isOrientationEnabled(Qt::Horizontal) )
pos.setX(d_data->initialPos.x());
if ( !isOrientationEnabled(Qt::Vertical) )
pos.setY(d_data->initialPos.y());
d_data->pixmap = QPixmap();
d_data->pos = pos;
if ( d_data->pos != d_data->initialPos )
{
emit panned(d_data->pos.x() - d_data->initialPos.x(),
d_data->pos.y() - d_data->initialPos.y());
}
}
}
示例15: debugC
void ToucheEngine::op_setFlag() {
debugC(9, kDebugOpcodes, "ToucheEngine::op_setFlag()");
uint16 flag = _script.readNextWord();
int16 val = *_script.stackDataPtr;
_flagsTable[flag] = val;
switch (flag) {
case 104:
_currentKeyCharNum = val;
break;
case 611:
if (val != 0)
quitGame();
break;
case 612:
_flagsTable[613] = getRandomNumber(val);
break;
case 614:
case 615:
_fullRedrawCounter = 1;
break;
case 618:
showCursor(val == 0);
break;
case 619:
debug(0, "Unknown music flag %d", val);
break;
}
}