Procházet zdrojové kódy

added gui.Panel Pospix() method

leonsal před 8 roky
rodič
revize
7217fdfc9b
1 změnil soubory, kde provedl 6 přidání a 12 odebrání
  1. 6 12
      gui/panel.go

+ 6 - 12
gui/panel.go

@@ -195,18 +195,6 @@ func (p *Panel) TotalHeight() float32 {
 	return p.Height()
 	return p.Height()
 }
 }
 
 
-// SetSelected satisfies the IPanel interface and is normally called
-// by a list container to change the panel visual appearance
-func (p *Panel) SetSelected2(state bool) {
-
-}
-
-// SetHighlighted satisfies the IPanel interface and is normally called
-// by a list container to change the panel visual appearance
-func (p *Panel) SetHighlighted2(state bool) {
-
-}
-
 // Material returns a pointer for this panel core.Material
 // Material returns a pointer for this panel core.Material
 func (p *Panel) Material() *material.Material {
 func (p *Panel) Material() *material.Material {
 
 
@@ -475,6 +463,12 @@ func (p *Panel) MinHeight() float32 {
 		p.marginSizes.Top + p.marginSizes.Bottom
 		p.marginSizes.Top + p.marginSizes.Bottom
 }
 }
 
 
+// Pospix returns this panel absolute coordinate in pixels
+func (p *Panel) Pospix() math32.Vector3 {
+
+	return p.pospix
+}
+
 // Add adds a child panel to this one
 // Add adds a child panel to this one
 func (p *Panel) Add(ichild IPanel) *Panel {
 func (p *Panel) Add(ichild IPanel) *Panel {