代码搜索结果

找到约 16,607 项符合 Screen 的代码

e634. moving the cursor on the screen.txt

try { // These coordinates are screen coordinates int xCoord = 500; int yCoord = 500; // Move the cursor Robot robot = new Robot(); robot.mo

e602. double-buffering in full-screen mode.txt

Page-flipping, if supported, is the fastest way to copy a back buffer to the screen. This example demonstrates how to implement double-buffering using page flipping in full-screen mode. // Deter

e605. setting the screen size, refresh rate, or number of colors.txt

Typically, the properties of the screen can only be changed while in full-screen mode (see e601 Enabling Full-Screen Mode. See also e603 Getting the Available Screen Sizes, Refresh Rates, and Number o

e598. getting the screen size.txt

// Get the size of the default screen Dimension dim = Toolkit.getDefaultToolkit().getScreenSize(); If more than one screen is available, this example gets the size of each screen: Graphi

e601. enabling full-screen mode.txt

In full-screen mode, no window can overlap the full-screen window. Also, when in full-screen mode, the display mode typically can be changed if desired (see e605 Setting the Screen Size, Refresh Rate,

e864. capturing a screen shot.txt

See also e670 Converting a Buffered Image to an Image. try { Robot robot = new Robot(); // Capture a particular area on the screen int x = 100; int y =

e603. getting the available screen sizes, refresh rates, and number of colors.txt

This example demonstrates how to retrieve all available combinations of screen size, refresh rate, or number of colors for the default screen device. See also e605 Setting the Screen Size, Refresh Rat

e865. converting between component and screen coordinates.txt

This example demonstrates how to convert a coordinate within a component to a coordinate on the screen and visa versa. // Convert a coordinate relative to a component's bounds to screen coordina

screen.cpp

#include using std::cerr; using std::cout; using std::endl; #include "screen.h" // -------------------------- // Screen static data members // -------------------------- Scree

screen.h

#ifndef SCREEN_H #define SCREEN_H #include using std::string; class Screen { public: enum CursorMovements { HOME, FORWARD, BACK, UP, DOWN, END }; typedef Screen& (Scr