com.sibvisions.rad.ui.qt.impl
Class QtCursor
java.lang.Object
com.sibvisions.rad.ui.qt.impl.QtResource<QCursor>
com.sibvisions.rad.ui.qt.impl.QtCursor
- All Implemented Interfaces:
- ICursor, IResource
public class QtCursor
- extends QtResource<QCursor>
- implements ICursor
The QtCursor encapsulates the representation of the mouse cursor.
| Fields inherited from interface javax.rad.ui.ICursor |
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR |
QtCursor
public QtCursor(QCursor pCursor)
- Creates an instance of
QtCursor based on
a QCursor.
- Parameters:
pCursor - QCursor- See Also:
QCursor
getType
public int getType()
- Returns the type for this cursor.
- Specified by:
getType in interface ICursor
- Returns:
- the cursor type.
getName
public String getName()
- Returns the name of this cursor.
- Specified by:
getName in interface ICursor
- Returns:
- a localized description of this cursor.
getPredefinedCursor
public static QtCursor getPredefinedCursor(int pType)
- Returns a cursor object with the specified predefined type.
- Parameters:
pType - the type of predefined cursor
- Returns:
- the specified predefined cursor
getSystemCustomCursor
public static QtCursor getSystemCustomCursor(String pCursorName)
- Returns a system-specific custom cursor object matching the
specified name. Cursor names are, for example: "whats_this"
- Parameters:
pCursorName - name a string describing the desired system-specific custom cursor
- Returns:
- the system specific custom cursor named
- See Also:
QCursor,
Qt.CursorShape
Copyright © 2009 SIB Visions GmbH. All Rights Reserved.