OpenClonk
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

◆ Clear()

void C4GUI::ScrollBarFacets::Clear ( )
inline

Definition at line 365 of file C4Gui.h.

References barScroll, C4GUI::DynBarFacet::Clear(), C4Facet::Default(), fctScrollDBottom, fctScrollDTop, and fctScrollPin.

Here is the call graph for this function:

◆ Set()

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

Definition at line 136 of file C4Gui.cpp.

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

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

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

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ barScroll

DynBarFacet C4GUI::ScrollBarFacets::barScroll

Definition at line 361 of file C4Gui.h.

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

◆ fctScrollDBottom

C4Facet C4GUI::ScrollBarFacets::fctScrollDBottom

Definition at line 362 of file C4Gui.h.

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

◆ fctScrollDTop

C4Facet C4GUI::ScrollBarFacets::fctScrollDTop

Definition at line 362 of file C4Gui.h.

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

◆ fctScrollPin

C4Facet C4GUI::ScrollBarFacets::fctScrollPin

Definition at line 362 of file C4Gui.h.

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


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