Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inconsistent usage patterns #4

Open
jtpalmer opened this issue Aug 13, 2012 · 1 comment
Open

Inconsistent usage patterns #4

jtpalmer opened this issue Aug 13, 2012 · 1 comment

Comments

@jtpalmer
Copy link
Member

SDLx::Widget::Menu has method render

SDLx::Widget::Textbox has method show

The render method draws the menu on a supplied parameter. The show method acts more like the event_handler or event_hook methods, but registers a show_handler.

It would probably make more sense to use the same design pattern in all the different widgets.

@FROGGS
Copy link
Member

FROGGS commented Aug 13, 2012

Should we make a document and describe the design pattern?

Or Maybe even make a SDLx::Widget::Stub that can easily be adopted...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants