47 Caret(
bool get_current =
false);
59 void move(
int x,
int y);
97 int height()
const {
return (_height_and_flags & 0xFFFF); }
102 int colour()
const {
return (_height_and_flags >> 16) & 0xFF;}
108 bool vdu()
const {
return (_height_and_flags & (1<<24))!=0;}
113 bool invisible()
const {
return (_height_and_flags & (1<<25));}
135 int _height_and_flags;
bool colour_untranslated() const
Colour is untranslated, otherwise they are a Wimp colour.
Definition: caret.h:123
bool invisible() const
Invisible caret.
Definition: caret.h:113
Caret(bool get_current=false)
Create an uninitialised caret.
Definition: caret.cc:38
A library for creating RISC OS toolbox applications.
Definition: abouttobeshownlistener.cc:35
int colour() const
Get caret colour - if colour set.
Definition: caret.h:102
WindowHandle window_handle() const
Get Wimp window handle for the caret.
Definition: caret.h:73
Caret & operator=(const Caret &other)
Assignment operator.
Definition: caret.cc:175
The Window object represents a toolbox window.
Definition: window.h:70
int x_offset() const
Get the current x offset of the caret relative to the window work area origin.
Definition: caret.h:86
bool vdu() const
Is it a vdu caret.
Definition: caret.h:108
static void turn_off()
Turn off and disown the caret.
Definition: caret.cc:229
int WindowHandle
Type for WIMP windows handle.
Definition: handles.h:35
int y_offset() const
Get the current y offset of the caret relative to the window work area origin.
Definition: caret.h:92
int height() const
Get the height of the caret.
Definition: caret.h:97
void move(int x, int y)
Move the caret class and the WIMP caret to a new location.
Definition: caret.cc:219
int index() const
The index of the caret into the writeable field or -1 if not in a writeable field.
Definition: caret.h:129
tbx::Window window() const
Get toolbox window for Caret (if possible)
int IconHandle
Type for WIMP icon handle.
Definition: handles.h:37
IconHandle icon_handle() const
Get the Wimp icon that contains the caret.
Definition: caret.h:80
bool uses_colour() const
caret_color is used for the colour otherwise caret is Wimp colour 11
Definition: caret.h:118
void get()
Update this object with the current location and state of the WIMP caret.
Definition: caret.cc:189
void set()
Update the WIMP caret location and appearance to the settings in this class.
Definition: caret.cc:200