-
Notifications
You must be signed in to change notification settings - Fork 0
class_styleboximagemask
reduz edited this page Feb 23, 2014
·
10 revisions
Inherits: StyleBox\n\n
Image mask based StyleBox, for mask test.
- void ** set_image ** ( Image image )
- Image ** get_image ** ( ) const
- void ** set_expand ** ( bool expand )
- bool ** get_expand ** ( ) const
- void ** set_expand_margin_size ** ( int margin, real size )
- real ** get_expand_margin_size ** ( int arg0 ) const
This StyleBox is similar to styleboxtexture, but only meant to be used for mask testing. It takes an image and applies stretch rules to determine if the poit clicked is masked or not.
- void ** set_image ** ( Image image ) \ Set the image used for mask testing. Pixels (converted to grey) that have a value, less than 0.5 will fail the test.
- void ** set_expand ** ( bool expand ) \ Set the expand property (default). When expanding, the image will use the same rules as styleboxtexture for expand. If not expanding, the image will always be tested at its original size.
- bool ** get_expand ** ( ) const \ Return wether the expand property is set(default). When expanding, the image will use the same rules as styleboxtexture for expand. If not expanding, the image will always be tested at its original size.
- void ** set_expand_margin_size ** ( int margin, real size ) \ Set an expand margin size (from enum MARGIN_*). Parts of the image below the size of the margin (and in the direction of the margin) will not expand.
- real ** get_expand_margin_size ** ( int arg0 ) const \ Return the expand margin size (from enum MARGIN_*). Parts of the image below the size of the margin (and in the direction of the margin) will not expand.