Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
Thanks, Once I get some time to clean it up, at least, most of it will be released. Right now I'm working on several issues, the main being SDL::TTFont->width() leaks like a sieve. I've worked around it be measuring the width of every character for each font/size combo and saving it in a hash, not pretty, but it works til I figure out the real source, the perl XS side or the SDL side.

The application loop is pretty simple. Each button is loading into a hash of widgets, the name of the button matches the name attribute in the skin. Each button has subs that are called by the event handler. MOUSE_DOWN, MOUSE_UP, WHILE_PRESSED, OFF_RELEASE, DRAW_HANDLER

All buttons that are active have more than one frame (animated Gifs, but could be a series of BMPs with some tweaking of the skin code), the value of the widget is an index into the frames.

Currently, widgets can't overlap and seeing this is designed mainly for a touchscreen interface, I don't see a need for that to change. Though I'll probably add the concept of layers so I can pop an onscreen keyboard on there.

-Lee
"To be civilized is to deny one's nature."

In reply to Re^2: Auto-DAC Automotive Media Player by shotgunefx
in thread Auto-DAC Automotive Media Player by shotgunefx

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (6)
As of 2024-03-28 22:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found