OpenClonk
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
C4GUI::DynBarFacet Struct Reference

#include <C4Gui.h>

Collaboration diagram for C4GUI::DynBarFacet:
[legend]

Public Member Functions

void SetHorizontal (C4Surface &rBySfc, int iHeight=0, int iBorderWidth=0)
 
void SetHorizontal (C4Facet &rByFct, int32_t iBorderWidth=0)
 
void Clear ()
 

Public Attributes

C4Facet fctBegin
 
C4Facet fctMiddle
 
C4Facet fctEnd
 

Detailed Description

Definition at line 349 of file C4Gui.h.

Member Function Documentation

void C4GUI::DynBarFacet::Clear ( )
inline

Definition at line 355 of file C4Gui.h.

References C4Facet::Default().

Referenced by C4GraphicsResource::Clear(), and C4GUI::ScrollBarFacets::Clear().

C4Facet fctMiddle
Definition: C4Gui.h:351
void Default()
Definition: C4Facet.cpp:31
C4Facet fctBegin
Definition: C4Gui.h:351
C4Facet fctEnd
Definition: C4Gui.h:351

Here is the call graph for this function:

Here is the caller graph for this function:

void C4GUI::DynBarFacet::SetHorizontal ( C4Surface rBySfc,
int  iHeight = 0,
int  iBorderWidth = 0 
)

Definition at line 120 of file C4Gui.cpp.

References fctBegin, fctEnd, fctMiddle, C4Surface::Hgt, C4Facet::Set(), and C4Surface::Wdt.

Referenced by C4StartupGraphics::Init(), and C4GraphicsResource::Init().

121  {
122  if (!iHeight) iHeight = rBySfc.Hgt;
123  if (!iBorderWidth) iBorderWidth = iHeight;
124  fctBegin.Set(&rBySfc,0,0,iBorderWidth,iHeight);
125  fctMiddle.Set(&rBySfc,iBorderWidth,0,rBySfc.Wdt-2*iBorderWidth,iHeight);
126  fctEnd.Set(&rBySfc,rBySfc.Wdt-iBorderWidth,0,iBorderWidth,iHeight);
127  }
int Wdt
Definition: C4Surface.h:67
void Set(C4Surface &rSfc)
Definition: C4Facet.cpp:459
int Hgt
Definition: C4Surface.h:67
C4Facet fctMiddle
Definition: C4Gui.h:351
C4Facet fctBegin
Definition: C4Gui.h:351
C4Facet fctEnd
Definition: C4Gui.h:351

Here is the call graph for this function:

Here is the caller graph for this function:

void C4GUI::DynBarFacet::SetHorizontal ( C4Facet rByFct,
int32_t  iBorderWidth = 0 
)

Definition at line 129 of file C4Gui.cpp.

References fctBegin, fctEnd, fctMiddle, C4Facet::Hgt, C4Facet::Set(), C4Facet::Surface, C4Facet::Wdt, C4Facet::X, and C4Facet::Y.

130  {
131  if (!iBorderWidth) iBorderWidth = rByFct.Hgt;
132  fctBegin.Set(rByFct.Surface,rByFct.X,rByFct.Y,iBorderWidth,rByFct.Hgt);
133  fctMiddle.Set(rByFct.Surface,rByFct.Hgt,rByFct.X,rByFct.Y+rByFct.Wdt-2*iBorderWidth,rByFct.Hgt);
134  fctEnd.Set(rByFct.Surface,rByFct.X+rByFct.Wdt-iBorderWidth,rByFct.Y,iBorderWidth,rByFct.Hgt);
135  }
float Y
Definition: C4Facet.h:120
void Set(C4Surface &rSfc)
Definition: C4Facet.cpp:459
C4Facet fctMiddle
Definition: C4Gui.h:351
C4Facet fctBegin
Definition: C4Gui.h:351
float Hgt
Definition: C4Facet.h:120
C4Surface * Surface
Definition: C4Facet.h:119
float Wdt
Definition: C4Facet.h:120
float X
Definition: C4Facet.h:120
C4Facet fctEnd
Definition: C4Gui.h:351

Here is the call graph for this function:

Member Data Documentation

C4Facet C4GUI::DynBarFacet::fctMiddle

The documentation for this struct was generated from the following files: