MiniGUI API Reference (MiniGUI-Standalone)
v3.2.0
A mature and proven cross-platform GUI system for embedded and smart IoT devices
|
Functions | |
MG_EXPORT BOOL GUIAPI | CreateCaret (HWND hWnd, PBITMAP pBitmap, int nWidth, int nHeight) |
Creates a new shape for the system caret and assigns ownership of the caret to the specified window. More... | |
MG_EXPORT BOOL GUIAPI | ChangeCaretSize (HWND hWnd, int newWidth, int newHeight) |
Changes the size of the caret. More... | |
MG_EXPORT BOOL GUIAPI | ActiveCaret (HWND hWnd) |
Activates the caret owned by a window. More... | |
MG_EXPORT UINT GUIAPI | GetCaretBlinkTime (HWND hWnd) |
Returns the elapsed time, in milliseconds, required to invert the caret's pixels. More... | |
MG_EXPORT BOOL GUIAPI | SetCaretBlinkTime (HWND hWnd, UINT uTime) |
Sets the caret blink time to the specified number of milliseconds. More... | |
MG_EXPORT BOOL GUIAPI | DestroyCaret (HWND hWnd) |
Destroys a caret. More... | |
static BOOL GUIAPI | HideCaret (HWND hWnd) |
Hides a caret. More... | |
MG_EXPORT BOOL GUIAPI | ShowCaretEx (HWND hWnd, BOOL ime) |
Shows a caret. More... | |
static BOOL GUIAPI | ShowCaret (HWND hWnd) |
Shows a caret. More... | |
MG_EXPORT BOOL GUIAPI | SetCaretPos (HWND hWnd, int x, int y) |
Moves the caret to a new position. More... | |
MG_EXPORT BOOL GUIAPI | GetCaretPos (HWND hWnd, PPOINT pPt) |
Gets the caret position. More... | |
Changes the size of the caret.
This function change the size of the caret owned by the specified window hWnd. Note that the new size of the caret should be smaller than the original size which is specified when you call CreateCaret.
hWnd | The owner of the caret. |
newWidth | The new width of the caret. |
newHeight | The new height of the caret. |
Creates a new shape for the system caret and assigns ownership of the caret to the specified window.
This function creates a new shape for the system caret and assigns ownership of the caret to the specified window hWnd. The caret shape can be a line, a block, or a bitmap.
hWnd | The owner of the caret. |
pBitmap | The bitmap shape of the caret. It can be NULL. |
nWidth | The width of the caret. |
nHeight | The height of the caret. |
Destroys a caret.
This function destroys the caret's current shape, frees the caret from the window, and removes the caret from the screen.
hWnd | The owner of the caret. |
Returns the elapsed time, in milliseconds, required to invert the caret's pixels.
This function returns the elapsed time, in milliseconds, required to invert the caret's pixels. The default blink time of a caret is 500 milliseconds.
hWnd | The owner of the caret. |
Gets the caret position.
This function copies the caret's position, in client coordinates, to the specified POINT structure pPt.
hWnd | The owner of the caret. |
pPt | The pointer to the buffer saves the caret's position. |
Referenced by ShowCaret().
Hides a caret.
This function removes the caret from the screen and close the IME window. Hiding a caret does not destroy its current shape or invalidate the insertion point.
hWnd | The owner of the caret. |
Definition at line 8254 of file window.h.
References ShowCaretEx(), and TRUE.
Sets the caret blink time to the specified number of milliseconds.
This function sets the caret blink time to the specified number of milliseconds. The blink time is the elapsed time, in milliseconds, required to invert the caret's pixels. The default blink time of a caret is 500 milliseconds.
hWnd | The owner of the caret. |
uTime | New blink time in milliseconds. |
Moves the caret to a new position.
This function moves the caret to the specified coordinates (x,y).
hWnd | The owner of the caret. |
x | x,y: The position of the caret in client coordiantes of the owner window. |
y | x,y: The position of the caret in client coordiantes of the owner window. |
Referenced by ShowCaret().
Shows a caret.
This function makes the caret visible on the screen at the caret's current position. When the caret becomes visible, it begins flashing automatically.
hWnd | The owner of the caret. |
Definition at line 8292 of file window.h.
References GetCaretPos(), SetCaretPos(), ShowCaretEx(), and TRUE.
Shows a caret.
This function makes the caret visible on the screen at the caret's current position. When the caret becomes visible, it begins flashing automatically.
hWnd | The owner of the caret. |
ime | TRUE if you want to let the hidden IME window (if there is any) show up at the same time. |
Referenced by HideCaret(), and ShowCaret().