diff options
Diffstat (limited to 'views/controls/button/image_button.h')
-rw-r--r-- | views/controls/button/image_button.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/views/controls/button/image_button.h b/views/controls/button/image_button.h index ec3b9ae..c3edceb 100644 --- a/views/controls/button/image_button.h +++ b/views/controls/button/image_button.h @@ -19,6 +19,9 @@ class ImageButton : public CustomButton { // Set the image the button should use for the provided state. virtual void SetImage(ButtonState aState, SkBitmap* anImage); + // Set the background details. + virtual void SetBackground(SkColor color, SkBitmap* image, SkBitmap* mask); + enum HorizontalAlignment { ALIGN_LEFT = 0, ALIGN_CENTER, ALIGN_RIGHT, }; @@ -43,6 +46,9 @@ class ImageButton : public CustomButton { // The images used to render the different states of this button. SkBitmap images_[BS_COUNT]; + // The background image. + SkBitmap* background_image_; + private: // Image alignment. HorizontalAlignment h_alignment_; |