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 119 of file C4Gui.cpp.

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

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

120  {
121  if (!iHeight) iHeight = rBySfc.Hgt;
122  if (!iBorderWidth) iBorderWidth = iHeight;
123  fctBegin.Set(&rBySfc,0,0,iBorderWidth,iHeight);
124  fctMiddle.Set(&rBySfc,iBorderWidth,0,rBySfc.Wdt-2*iBorderWidth,iHeight);
125  fctEnd.Set(&rBySfc,rBySfc.Wdt-iBorderWidth,0,iBorderWidth,iHeight);
126  }
int Wdt
Definition: C4Surface.h:65
void Set(C4Surface &rSfc)
Definition: C4Facet.cpp:459
int Hgt
Definition: C4Surface.h:65
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 128 of file C4Gui.cpp.

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

129  {
130  if (!iBorderWidth) iBorderWidth = rByFct.Hgt;
131  fctBegin.Set(rByFct.Surface,rByFct.X,rByFct.Y,iBorderWidth,rByFct.Hgt);
132  fctMiddle.Set(rByFct.Surface,rByFct.Hgt,rByFct.X,rByFct.Y+rByFct.Wdt-2*iBorderWidth,rByFct.Hgt);
133  fctEnd.Set(rByFct.Surface,rByFct.X+rByFct.Wdt-iBorderWidth,rByFct.Y,iBorderWidth,rByFct.Hgt);
134  }
float Y
Definition: C4Facet.h:118
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:118
C4Surface * Surface
Definition: C4Facet.h:117
float Wdt
Definition: C4Facet.h:118
float X
Definition: C4Facet.h:118
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: