Note that not every HTML5 cursor has a corresponding cursor in the OS by default. Modern operating systems have several cursors installed by default and the following code snippets show you how to use them in GT. On Windows for example, you can load the cursor foo.cur using: g_ActiveCursor = LoadCursorFromFile("foo.cur") To show an image cursor, you need to use one of the predefined values and have your C++ code load an image instead. Your handler will be executed whenever the mouse enters an element whose cursor CSS property differs from the current one.Ĭoherent GT does not support setting the CSS cursor property to an URL. To see all possible values, see Coherent::UIGT::CursorType. To do so, override Coherent::UIGT::ViewListener::OnCursorChanged in your ViewListener and inspect the value of the cursor argument. the mouse is over a text box) and then it is up to your application to render the new cursor. However, it can conveniently tell you when the cursor needs to be changed (i.e. Since Coherent GT does not control the mouse cursor, it cannot change it.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |