FAQ
Q: Sometimes you write Guichan as Gui-chan. Are you dyslectic?
A: Guichan is the name of the library. We used to have a mascot called Gui-chan, but we don't anymore.
Q: Does Guichan have a dirty rectangles system?
A: No Guichan does not.
Q: Do you know where I can find fonts for your ImageFont class?
A: Check out this font collection.
Q: How do I add a font of my own to the ImageFont collection?
A: Just mail one (preferable both) of the developers the font or post it in the forum.
Q: My costum wigdet doesn't seem to recieve key input?
A: Go through this check list:
- Make sure your widget is focusable, setFocusable(true).
- If you made your widget from scratch, make sure it inherits from KeyListener and that it adds itself to the KeyListener, addKeyListener(this).
- Make sure you have spelled the overloaded KeyListner functions right and that they take the right arguments (don't forget const).
Q: My custom widget doesn't seem to recieve mouse input?
A: Go through this check list:
- If you made your widget from scratch, make sure it inherits from MouseListener and that it adds itself to the MouseListener, addMouseListener(this).
- Make sure you have spelled the overloaded MouseListner functions right and that they take the right arguments (don't forget const).
Q: I don't recieve any actions from my widget?
A: Go through this check list:
- Make sure you have added the widget to the ActionListener.
- Make sure you have spelled the eventID right, a very common and very anoying error.
Q: I can't get keyboard input to work with SDL?
A: You must call SDL_EnableUNICODE(1); in your initialization code.
Q: When I use Guichan I get a compile error in key.hpp?
A: This problem only occurs on windows when you have the windows.h header included somewhere in your project (OpenGLGraphics for instance includes windows.h) and is due to a define, DELETE, in the header. A simple work around, if you are not going to use the windows API, is to undefine DELETE after the inclusion of windows.hpp.