-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnotescolorobject.go
66 lines (53 loc) · 2.44 KB
/
notescolorobject.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
/* https://help.hcl-software.com/dom_designer/14.0.0/basic/H_NOTESCOLOROBJECT_CLASS.html */
package domigo
import (
ole "github.com/go-ole/go-ole"
)
type NotesColorObject struct {
NotesStruct
}
func newNotesColorObject(dispatchPtr *ole.IDispatch) NotesColorObject {
return NotesColorObject{newNotesStruct(dispatchPtr)}
}
/* --------------------------------- Properties --------------------------------- */
/* https://help.hcl-software.com/dom_designer/14.0.0/basic/H_BLUE_PROPERTY_COLOR.html */
func (c NotesColorObject) Blue() (Long, error) {
return getComProperty[Long](c, "Blue")
}
/* https://help.hcl-software.com/dom_designer/14.0.0/basic/H_GREEN_PROPERTY_COLOR.html */
func (c NotesColorObject) Green() (Long, error) {
return getComProperty[Long](c, "Green")
}
/* https://help.hcl-software.com/dom_designer/14.0.0/basic/H_HUE_PROPERTY_COLOR.html */
func (c NotesColorObject) Hue() (Long, error) {
return getComProperty[Long](c, "Hue")
}
/* https://help.hcl-software.com/dom_designer/14.0.0/basic/H_LUMINANCE_PROPERTY_COLOR.html */
func (c NotesColorObject) Luminance() (Long, error) {
return getComProperty[Long](c, "Luminance")
}
/* https://help.hcl-software.com/dom_designer/14.0.0/basic/H_NOTESCOLOR_PROPERTY_COLOR.html */
func (c NotesColorObject) NotesColor() (Long, error) {
return getComProperty[Long](c, "NotesColor")
}
/* https://help.hcl-software.com/dom_designer/14.0.0/basic/H_NOTESCOLOR_PROPERTY_COLOR.html */
func (c NotesColorObject) SetNotesColor(v Long) error {
return putComProperty(c, "NotesColor", v)
}
/* https://help.hcl-software.com/dom_designer/14.0.0/basic/H_RED_PROPERTY_COLOR.html */
func (c NotesColorObject) Red() (Long, error) {
return getComProperty[Long](c, "Red")
}
/* https://help.hcl-software.com/dom_designer/14.0.0/basic/H_SATURATION_PROPERTY_COLOR.html */
func (c NotesColorObject) Saturation() (Long, error) {
return getComProperty[Long](c, "Saturation")
}
/* --------------------------------- Methods ------------------------------------ */
/* https://help.hcl-software.com/dom_designer/14.0.0/basic/H_SETHSL_METHOD_COLOR.html */
func (c NotesColorObject) SetHSL(hue Long, saturation Long, luminance Long) (Long, error) {
return callComMethod[Long](c, "SetHSL", hue, saturation, luminance)
}
/* https://help.hcl-software.com/dom_designer/14.0.0/basic/H_SETRGB_METHOD_COLOR.html */
func (c NotesColorObject) SetRGB(red Long, green Long, blue Long) (Long, error) {
return callComMethod[Long](c, "SetRGB", red, green, blue)
}