Changes

Jump to: navigation, search

NPAPI:Pepper

368 bytes added, 04:57, 30 March 2010
no edit summary
= Themes =
The theming API allows a plugin to draw native controls in its 2D context. For example, if its content can't fit inside its region, it can paint scrollbars and allow the user to scroll up and down. The plugin needs to be able to get the size of each element of a control and to paint them under different states (i.e. pressed/selected). For now, only scrollbars are in the API.
<pre>
typedef struct _NPPoint {
NPPoint align;
} NPThemeParams;
</pre>
<pre>
/* Gets the size of the given theme component. For variable sized items like */
/* vertical scrollbar tracks, the width will be the required width of the */

Navigation menu