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

#include <C4Gui.h>

Collaboration diagram for C4GUI::ScrollBarFacets:
[legend]

Public Member Functions

void Set (const C4Facet &rByFct, int32_t iPinIndex=0)
 
void Clear ()
 

Public Attributes

DynBarFacet barScroll
 
C4Facet fctScrollDTop
 
C4Facet fctScrollPin
 
C4Facet fctScrollDBottom
 

Detailed Description

Definition at line 359 of file C4Gui.h.

Member Function Documentation

void C4GUI::ScrollBarFacets::Clear ( )
inline

Definition at line 365 of file C4Gui.h.

References C4GUI::DynBarFacet::Clear(), and C4Facet::Default().

Here is the call graph for this function:

void C4GUI::ScrollBarFacets::Set ( const C4Facet rByFct,
int32_t  iPinIndex = 0 
)

Definition at line 137 of file C4Gui.cpp.

References barScroll, C4GUI::DynBarFacet::fctBegin, C4GUI::DynBarFacet::fctEnd, C4GUI::DynBarFacet::fctMiddle, fctScrollDBottom, fctScrollDTop, fctScrollPin, C4Facet::Set(), and C4Facet::Surface.

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

138  {
139  // set by hardcoded size
140  barScroll.fctBegin.Set(rByFct.Surface,0,0,16,16);
141  barScroll.fctMiddle.Set(rByFct.Surface,0,16,16,16);
142  barScroll.fctEnd.Set(rByFct.Surface,0,32,16,16);
143  fctScrollDTop.Set(rByFct.Surface,16,0,16,16);
144  if (iPinIndex)
145  fctScrollPin.Set(rByFct.Surface,32,16*(iPinIndex-1),16,16);
146  else
147  fctScrollPin.Set(rByFct.Surface,16,16,16,16);
148  fctScrollDBottom.Set(rByFct.Surface,16,32,16,16);
149  }
C4Facet fctScrollDTop
Definition: C4Gui.h:362
C4Facet fctScrollDBottom
Definition: C4Gui.h:362
void Set(C4Surface &rSfc)
Definition: C4Facet.cpp:459
DynBarFacet barScroll
Definition: C4Gui.h:361
C4Facet fctMiddle
Definition: C4Gui.h:351
C4Facet fctBegin
Definition: C4Gui.h:351
C4Facet fctScrollPin
Definition: C4Gui.h:362
C4Surface * Surface
Definition: C4Facet.h:119
C4Facet fctEnd
Definition: C4Gui.h:351

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

DynBarFacet C4GUI::ScrollBarFacets::barScroll

Definition at line 361 of file C4Gui.h.

Referenced by C4GUI::ScrollBar::DrawElement(), and Set().

C4Facet C4GUI::ScrollBarFacets::fctScrollDBottom

Definition at line 362 of file C4Gui.h.

Referenced by C4GUI::ScrollBar::DrawElement(), and Set().

C4Facet C4GUI::ScrollBarFacets::fctScrollDTop

Definition at line 362 of file C4Gui.h.

Referenced by C4GUI::ScrollBar::DrawElement(), and Set().

C4Facet C4GUI::ScrollBarFacets::fctScrollPin

Definition at line 362 of file C4Gui.h.

Referenced by C4GUI::ScrollBar::DrawElement(), and Set().


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