Advise: Use stock GDK cursors (e.g. GDK_TOP_SIDE)

Do you have a typical platform dependent issue you're battling with ? Ask it here. Make sure you mention your platform, compiler, and wxWidgets version.
Post Reply
Mick P.
Earned some good credits
Earned some good credits
Posts: 110
Joined: Thu Jun 06, 2019 3:41 am
Contact:

Advise: Use stock GDK cursors (e.g. GDK_TOP_SIDE)

Post by Mick P. » Mon Aug 12, 2019 7:56 pm

I'm porting some Qt software that wants sizing cursors similar to MSW's. wxGTK (http://trac.wxwidgets.org/ticket/8856) may not agree with this.

Here (https://developer.gimp.org/api/2.0/gdk/gdk-Cursors.html) is old X cursors. Do X desktops typically use the likes of GDK_TOP_SIDE to move the top of a window? I don't know. It defines these cursors for every direction. But it seems that it would be ambiguous if it doesn't flip from GDK_TOP_SIDE to GDK_BOTTOM_SIDE depending on if the top is being pulled up above or down below the original position.

I don't know why X doesn't just update their damn icons. They have so many absurd ones. But obviously that's just a historical gripe. Boo on them.

GLUT defines cursors for these (GLUT_CURSOR_TOP_SIDE) so it can conceivably be translated to double-ended arrows on Windows (Apple?) But the reverse is not possible.

EDITED: I neglected to mention that GDK_TOP_SIDE is not (that I know of) part of wxStockCursor. So if I go ahead with this, I don't know how to create the wxCursor. But I expect there is an undocumented API that only works for wxGTK.

Post Reply