KiCad PCB EDA Suite
Loading...
Searching...
No Matches
line_ending_bitmap.h File Reference
#include <wx/bitmap.h>
#include <wx/colour.h>
#include <wx/gdicmn.h>

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=true)
 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().