KiCad PCB EDA Suite
Loading...
Searching...
No Matches
line_ending_bitmap.cpp File Reference
#include <widgets/line_ending_bitmap.h>
#include <line_ending.h>
#include <geometry/eda_angle.h>
#include <math/vector2d.h>
#include <wx/dcmemory.h>
#include <wx/window.h>
#include <algorithm>

Go to the source code of this file.

Functions

wxBitmap MakeLineEndingBitmap (LINE_ENDING_STYLE aStyle, const wxSize &aSize, const wxColour &aForeground, const wxColour &aBackground, wxWindow *aWindow, bool aShapeOnRight)
 Generate a DPI-aware bitmap icon showing a line ending style.
 

Function Documentation

◆ MakeLineEndingBitmap()

wxBitmap MakeLineEndingBitmap ( LINE_ENDING_STYLE aStyle,
const wxSize & aSize,
const wxColour & aForeground,
const wxColour & aBackground,
wxWindow * aWindow,
bool aShapeOnRight = true )

Generate a DPI-aware bitmap icon showing a line ending style.

Parameters
aShapeOnRightIf true, shape is on the right (end); if false, on the left (start).

Definition at line 33 of file line_ending_bitmap.cpp.

References ARROW_OPEN, LINE_ENDING::DEFAULT_RATIO_LENGTH, LINE_ENDING::DEFAULT_RATIO_WIDTH, DEGREES_T, LINE_ENDING::GetShapes(), LINE_ENDING::GetShortenDepth(), and NONE.

Referenced by DIALOG_LINE_PROPERTIES::createLineEndingControls(), DIALOG_SHAPE_PROPERTIES::createLineEndingControls(), and DIALOG_SHAPE_PROPERTIES::createLineEndingControls().