Freeciv-3.1: scale_widget Class Reference

Freeciv-3.1

Loading...
Searching...
No Matches
Public Member Functions | Data Fields | Protected Member Functions | Private Attributes
scale_widget Class Reference

`#include <hudwidget.h>`

Inheritance diagram for scale_widget:

## Public Member Functions

| scale_widget (Shape s, QWidget *p=0)

## Data Fields

float | scale

## Protected Member Functions

void | paintEvent (QPaintEvent *event)
void | mousePressEvent (QMouseEvent *event)

## Private Attributes

int | size
QPixmap | plus
QPixmap | minus

## Detailed Description

Definition at line 337 of file hudwidget.h.

## Constructor & Destructor Documentation

## ◆ scale_widget()

scale_widget::scale_widget | ( | Shape | s,
|  | QWidget * | p = `0`
| ) |  |

Scale widget allowing scaling other widgets, shown in right top corner

Definition at line 1936 of file hudwidget.cpp.

## Member Function Documentation

## ◆ mousePressEvent()

void scale_widget::mousePressEvent | ( | QMouseEvent * | event | ) |

protected

Mouse press event for scale widget

Definition at line 1970 of file hudwidget.cpp.

## ◆ paintEvent()

void scale_widget::paintEvent | ( | QPaintEvent * | event | ) |

protected

Draws 2 icons for resizing

Definition at line 1956 of file hudwidget.cpp.

## Field Documentation

## ◆ minus

QPixmap scale_widget::minus

private

Definition at line 349 of file hudwidget.h.

Referenced by paintEvent(), and scale_widget().

## ◆ plus

QPixmap scale_widget::plus

private

Definition at line 348 of file hudwidget.h.

Referenced by paintEvent(), and scale_widget().

## ◆ scale

float scale_widget::scale

Definition at line 342 of file hudwidget.h.

Referenced by mousePressEvent(), hud_battle_log::paintEvent(), scale_widget(), and hud_battle_log::set_scale().

## ◆ size

int scale_widget::size

private

Definition at line 347 of file hudwidget.h.

Referenced by mousePressEvent(), paintEvent(), and scale_widget().