Merge a26850fae5
into 6c3bda44d3
This commit is contained in:
commit
cf85f60da0
Binary file not shown.
12
separator.go
12
separator.go
|
@ -16,7 +16,7 @@ type Separator struct {
|
||||||
s *C.uiSeparator
|
s *C.uiSeparator
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewSeparator creates a new horizontal Separator.
|
// NewHorizontalSeparator creates a new horizontal Separator.
|
||||||
func NewHorizontalSeparator() *Separator {
|
func NewHorizontalSeparator() *Separator {
|
||||||
s := new(Separator)
|
s := new(Separator)
|
||||||
|
|
||||||
|
@ -26,6 +26,16 @@ func NewHorizontalSeparator() *Separator {
|
||||||
return s
|
return s
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// NewVerticalSeparator creates a new vertical Separator.
|
||||||
|
func NewVerticalSeparator() *Separator {
|
||||||
|
s := new(Separator)
|
||||||
|
|
||||||
|
s.s = C.uiNewVerticalSeparator()
|
||||||
|
s.c = (*C.uiControl)(unsafe.Pointer(s.s))
|
||||||
|
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
|
||||||
// Destroy destroys the Separator.
|
// Destroy destroys the Separator.
|
||||||
func (s *Separator) Destroy() {
|
func (s *Separator) Destroy() {
|
||||||
C.uiControlDestroy(s.c)
|
C.uiControlDestroy(s.c)
|
||||||
|
|
1
ui.h
1
ui.h
|
@ -190,6 +190,7 @@ _UI_EXTERN uiProgressBar *uiNewProgressBar(void);
|
||||||
typedef struct uiSeparator uiSeparator;
|
typedef struct uiSeparator uiSeparator;
|
||||||
#define uiSeparator(this) ((uiSeparator *) (this))
|
#define uiSeparator(this) ((uiSeparator *) (this))
|
||||||
_UI_EXTERN uiSeparator *uiNewHorizontalSeparator(void);
|
_UI_EXTERN uiSeparator *uiNewHorizontalSeparator(void);
|
||||||
|
_UI_EXTERN uiSeparator *uiNewVerticalSeparator(void);
|
||||||
|
|
||||||
typedef struct uiCombobox uiCombobox;
|
typedef struct uiCombobox uiCombobox;
|
||||||
#define uiCombobox(this) ((uiCombobox *) (this))
|
#define uiCombobox(this) ((uiCombobox *) (this))
|
||||||
|
|
Loading…
Reference in New Issue