CL_Button_Silver - ClanLib Game SDK

Home | All Classes | Grouped Classes | Index | Search

# Class CL_Button_Silver

Button default style. More...

Derived from: CL_ComponentStyle
Derived by: none
Group: GUI (Style: Silver)

#include <ClanLib/guistylesilver.h>

Construction:

CL_Button_Silver | Constructor

Operations:

set_font | Sets the font used to draw the label.
set_font_disabled | Sets the font used to draw the label in disabled mode.
set_surface_up | Sets the surface used when button is in the up-state.
set_surface_down | Set the surface used when button is in the down-state.
set_surface_highlighted | Sets the surface used when button is highlighted.
set_surface_disabled | Sets the surface used when button is disabled.
set_surface_draw_only | Selects if the surfaces should be drawn alone, or with the normal frames.

Detailed description:

!group=GUI/Style: Silver! !header=guistylesilver.h!

Script attributes:

- surface_up: The surface used when button is in the up-state. [String]
- surface_down: The surface used when button is in the down-state. [String]
- surface_disabled: The surface used when button is disabled. [String]
- surface_highlighted: The surface used when button is highlighted. [String]
- font: The font used to draw the label. [String]
- font_disabled: The font used to draw the label in disabled mode. [String]

Note that it inherits the attributes of CL_Button and CL_Component as well.

Questions or comments, write to the ClanLib mailing list.