1
edit
Jabdelmalek (talk | contribs) No edit summary |
|||
Line 845: | Line 845: | ||
= Themes = | = 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> | <pre> | ||
typedef struct _NPPoint { | typedef struct _NPPoint { | ||
Line 882: | Line 883: | ||
NPPoint align; | NPPoint align; | ||
} NPThemeParams; | } NPThemeParams; | ||
/* Gets the size of the given theme component. For variable sized items like */ | /* 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 */ | /* vertical scrollbar tracks, the width will be the required width of the */ |
edit