2020-11-25 21:55:33 +00:00
|
|
|
[CCode (cheader_filename = "DinoWinToastTemplate.h")]
|
|
|
|
namespace DinoWinToast {
|
2020-11-26 21:50:03 +00:00
|
|
|
[CCode (cname = "dino_wintoasttemplate_duration", cprefix = "Duration_")]
|
2020-11-25 21:55:33 +00:00
|
|
|
public enum Duration {
|
|
|
|
System,
|
|
|
|
Short,
|
|
|
|
Long
|
|
|
|
}
|
|
|
|
|
2020-11-26 21:50:03 +00:00
|
|
|
[CCode (cname = "dino_wintoasttemplate_audiooption", cprefix = "AudioOption_")]
|
2020-11-25 21:55:33 +00:00
|
|
|
public enum AudioOption {
|
|
|
|
Default,
|
|
|
|
Silent,
|
|
|
|
Loop
|
|
|
|
}
|
|
|
|
|
2020-11-26 21:50:03 +00:00
|
|
|
[CCode (cname = "dino_wintoasttemplate_textfield", cprefix = "TextField_")]
|
2020-11-25 21:55:33 +00:00
|
|
|
public enum TextField {
|
|
|
|
FirstLine,
|
|
|
|
SecondLine,
|
|
|
|
ThirdLine
|
|
|
|
}
|
|
|
|
|
2020-11-26 21:50:03 +00:00
|
|
|
[CCode (cname = "dino_wintoasttemplate_wintoasttemplatetype", cprefix = "TemplateType_")]
|
2020-11-25 21:55:33 +00:00
|
|
|
public enum TemplateType {
|
|
|
|
ImageAndText01,
|
|
|
|
ImageAndText02,
|
|
|
|
ImageAndText03,
|
|
|
|
ImageAndText04,
|
|
|
|
Text01,
|
|
|
|
Text02,
|
|
|
|
Text03,
|
|
|
|
Text04,
|
|
|
|
WinToastTemplateTypeCount
|
|
|
|
}
|
|
|
|
|
|
|
|
[CCode (cname="dino_wintoasttemplate", free_function = "dino_wintoasttemplate_destroy")]
|
|
|
|
[Compact]
|
|
|
|
public class DinoWinToastTemplate {
|
|
|
|
[CCode (cname = "dino_wintoasttemplate_new")]
|
|
|
|
public DinoWinToastTemplate(TemplateType type = TemplateType.ImageAndText02);
|
|
|
|
|
|
|
|
[CCode (cname = "dino_wintoasttemplate_setTextField")]
|
|
|
|
public void setTextField(char* txt, TextField pos);
|
|
|
|
|
|
|
|
[CCode (cname = "dino_wintoasttemplate_setImagePath")]
|
|
|
|
public void setImagePath(char* imgPath);
|
|
|
|
|
|
|
|
[CCode (cname = "dino_wintoasttemplate_setAttributionText")]
|
|
|
|
public void setAttributionText(char* attributionText);
|
|
|
|
|
|
|
|
[CCode (cname = "dino_wintoasttemplate_addAction")]
|
|
|
|
public void addAction(char* label);
|
|
|
|
|
|
|
|
[CCode (cname = "dino_wintoasttemplate_setAudioOption")]
|
|
|
|
public void setAudioOption(AudioOption option);
|
|
|
|
|
|
|
|
[CCode (cname = "dino_wintoasttemplate_setDuration")]
|
|
|
|
public void setDuration(Duration duration);
|
|
|
|
|
|
|
|
[CCode (cname = "dino_wintoasttemplate_setExpiration")]
|
|
|
|
public void setExpiration(int64 millisecondsFromNow);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|