33
33
namespace ClutterFlow.Buttons
35
public delegate void CreateTextureMethod (CairoTexture texture, int with_state);
37
public class ClutterGenericButton : ClutterButton
39
CreateTextureMethod createTexture = null;
41
public ClutterGenericButton(uint width, uint height, int state, CreateTextureMethod createTexture) : base (width, height, state, false)
43
this.createTexture = createTexture;
47
protected override void CreateTexture (Clutter.CairoTexture texture, int with_state)
49
if (createTexture!=null) createTexture(texture, with_state);
50
else base.CreateTexture (texture, with_state);
35
public delegate void CreateTextureMethod (CairoTexture texture, int with_state);
37
public class ClutterGenericButton : ClutterButton
39
CreateTextureMethod createTexture = null;
41
public ClutterGenericButton (uint width, uint height, int state, CreateTextureMethod createTexture) : base (width, height, state, false)
43
this.createTexture = createTexture;
47
protected override void CreateTexture (Clutter.CairoTexture texture, int with_state)
49
if (createTexture != null) {
50
createTexture (texture, with_state);
52
base.CreateTexture (texture, with_state);