OpenClonk
ZoomDataStackItem Struct Reference

#include <C4Draw.h>

Inheritance diagram for ZoomDataStackItem:
[legend]
Collaboration diagram for ZoomDataStackItem:
[legend]

Public Member Functions

 ZoomDataStackItem (float newzoom)
 
 ZoomDataStackItem (float X, float Y, float newzoom)
 
 ~ZoomDataStackItem ()
 

Public Attributes

float Zoom
 
float X
 
float Y
 

Detailed Description

Definition at line 218 of file C4Draw.h.

Constructor & Destructor Documentation

◆ ZoomDataStackItem() [1/2]

ZoomDataStackItem::ZoomDataStackItem ( float  newzoom)
inline

Definition at line 220 of file C4Draw.h.

References C4Draw::GetZoom(), C4Draw::SetZoom(), and X.

220 { pDraw->GetZoom(this); pDraw->SetZoom(X, Y, newzoom); }
float Y
Definition: C4Draw.h:71
C4Draw * pDraw
Definition: C4Draw.cpp:42
void GetZoom(ZoomData *r)
Definition: C4Draw.h:197
float X
Definition: C4Draw.h:71
void SetZoom(float X, float Y, float Zoom)
Definition: C4Draw.cpp:779
Here is the call graph for this function:

◆ ZoomDataStackItem() [2/2]

ZoomDataStackItem::ZoomDataStackItem ( float  X,
float  Y,
float  newzoom 
)
inline

Definition at line 221 of file C4Draw.h.

References C4Draw::GetZoom(), and C4Draw::SetZoom().

221 { pDraw->GetZoom(this); pDraw->SetZoom(X, Y, newzoom); }
float Y
Definition: C4Draw.h:71
C4Draw * pDraw
Definition: C4Draw.cpp:42
void GetZoom(ZoomData *r)
Definition: C4Draw.h:197
float X
Definition: C4Draw.h:71
void SetZoom(float X, float Y, float Zoom)
Definition: C4Draw.cpp:779
Here is the call graph for this function:

◆ ~ZoomDataStackItem()

ZoomDataStackItem::~ZoomDataStackItem ( )
inline

Definition at line 222 of file C4Draw.h.

References DDrawInit(), and C4Draw::SetZoom().

222 { pDraw->SetZoom(*this); }
C4Draw * pDraw
Definition: C4Draw.cpp:42
void SetZoom(float X, float Y, float Zoom)
Definition: C4Draw.cpp:779
Here is the call graph for this function:

Member Data Documentation

◆ X

float ZoomData::X
inherited

Definition at line 71 of file C4Draw.h.

Referenced by C4Viewport::Draw(), C4Draw::GetZoom(), and C4Draw::SetZoom().

◆ Y

float ZoomData::Y
inherited

Definition at line 71 of file C4Draw.h.

Referenced by C4Viewport::Draw(), C4Draw::GetZoom(), and C4Draw::SetZoom().

◆ Zoom

float ZoomData::Zoom
inherited

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