Example #1
0
// Create a PanelHolder with a 3 panels
func panelHolder(name string, theme gxui.Theme) gxui.PanelHolder {
	label := func(text string) gxui.Label {
		label := theme.CreateLabel()
		label.SetText(text)
		return label
	}

	holder := theme.CreatePanelHolder()
	holder.AddPanel(label(name+" 0 content"), name+" 0 panel")
	holder.AddPanel(label(name+" 1 content"), name+" 1 panel")
	holder.AddPanel(label(name+" 2 content"), name+" 2 panel")
	return holder
}
Example #2
0
// Create a PanelHolder with a 3 panels
func panelHolder(name string, theme gxui.Theme) gxui.PanelHolder {
	label := func(text string) gxui.Label {
		label := theme.CreateLabel()
		label.SetText(text)
		return label
	}

	holder := theme.CreatePanelHolder()
	holder.AddPanel(label(name+" Tout"), name+" Tous mes fichiers")
	holder.AddPanel(label(name+" Cours"), name+" Mes cours")
	holder.AddPanel(label(name+" Musique"), name+" Ma musique")
	holder.AddPanel(label(name+" Photos"), name+" Mes photos")
	holder.AddPanel(label(name+" Vidéos"), name+" Mes vidéos")
	return holder
}