(parent Container)
| 15 | } |
| 16 | |
| 17 | func NewPushButton(parent Container) (*PushButton, error) { |
| 18 | pb := new(PushButton) |
| 19 | |
| 20 | if err := InitWidget( |
| 21 | pb, |
| 22 | parent, |
| 23 | "BUTTON", |
| 24 | win.WS_TABSTOP|win.WS_VISIBLE|win.BS_PUSHBUTTON, |
| 25 | 0); err != nil { |
| 26 | return nil, err |
| 27 | } |
| 28 | |
| 29 | pb.Button.init() |
| 30 | |
| 31 | pb.GraphicsEffects().Add(InteractionEffect) |
| 32 | pb.GraphicsEffects().Add(FocusEffect) |
| 33 | |
| 34 | return pb, nil |
| 35 | } |
| 36 | |
| 37 | func (pb *PushButton) ImageAboveText() bool { |
| 38 | return pb.hasStyleBits(win.BS_TOP) |
nothing calls this directly
no test coverage detected
searching dependent graphs…