#include <wx/colour.h>#include <wx/image.h>#include <wx/mstream.h>#include <wx/bitmap.h>#include <wx/log.h>#include <wx/icon.h>#include <wx/clipbrd.h>#include <wx/cmndata.h>#include <wx/colordlg.h>#include <wx/dataobj.h>#include <cmath>#include "uiutils.h"#include "utils/math.h"#include "utils/conversion.h"#include "utils/debug.h"#include "utils/customdialogs.h"#include "settings.h"#include "images/colourbox.xpm"#include <wx/datetime.h>

Go to the source code of this file.
Typedefs | |
| typedef std::vector< double > | huevec |
Functions | |
| wxString | RTFtoText (const wxString &rtfinput) |
| bool | AreColoursSimilar (const wxColour &col1, const wxColour &col2, int mindiff) |
| void | ColourDelta (int &r, int &g, int &b, const int &delta) |
| wxColour | ColourDelta (const wxColour &colour, const int &delta) |
| wxColour | GetColorFromFloatStrng (const wxString &color_) |
| wxImage | BlendImage (const wxImage &foreground, const wxImage &background, bool blend_alpha) |
| Blends two images based on alpha channel present in foreground image. | |
| wxIcon | charArr2wxIcon (const unsigned char *arg, int size) |
| png array data to Icon | |
| wxBitmap | charArr2wxBitmap (const unsigned char *arg, int size) |
| used to load png data into a wxBitmap | |
| wxImage | charArr2wxImage (const unsigned char *arg, int size) |
| used to load png data into a wxImage | |
| wxBitmap | charArr2wxBitmapWithBlending (const unsigned char *dest, int dest_size, const unsigned char *text, int text_size) |
| wxBitmap | BlendBitmaps (const wxBitmap &background, const wxBitmap &overlay, const int) |
| void | hue (huevec &out, int amount, int level) |
| void | hue (huevec &out, int amount) |
| std::vector< wxColour > & | GetBigFixColoursPalette (int numteams) |
| wxImage | BorderInvariantResizeImage (const wxImage &image, int width, int height) |
| shrinks/expands image by removing/duplicating rows/columns from the center of the image | |
| wxColour | GetColourFromUser (wxWindow *parent, const wxColour &colInit, const wxString &caption, const wxString &palette) |
| when querying for a color, always use this (it'll autosave/retrieve custom defined colors) | |
| wxImage | ReplaceChannelStatusColour (wxBitmap img, const wxColour &colour) |
| wxSize | MakeFit (const wxSize &original, const wxSize &bounds) |
| takes best fitting size of original inside bounds keeping aspect ratio | |
| void | CopyToClipboard (const wxString &text) |
| void | OpenWebBrowser (const wxString &url) |
| open either plattform default browser or binary saved in settings with given url | |
| wxBitmap | getColourIcon (const wxColour &colour) |
Definition in file uiutils.cpp.
| typedef std::vector<double> huevec |
Definition at line 310 of file uiutils.cpp.
| bool AreColoursSimilar | ( | const wxColour & | col1, | |
| const wxColour & | col2, | |||
| int | mindiff | |||
| ) |
Definition at line 52 of file uiutils.cpp.
| wxBitmap BlendBitmaps | ( | const wxBitmap & | background, | |
| const wxBitmap & | overlay, | |||
| const | int | |||
| ) |
Definition at line 229 of file uiutils.cpp.
| wxImage BlendImage | ( | const wxImage & | foreground, | |
| const wxImage & | background, | |||
| bool | blend_alpha | |||
| ) |
Blends two images based on alpha channel present in foreground image.
apply standard alpha blending to images
| foreground | Foreground image, must have an alpha channel | |
| background | Background image, may have an alpha channel | |
| blend_alpha | Whether the returned image will have an alpha channel. |
Definition at line 148 of file uiutils.cpp.
| wxImage BorderInvariantResizeImage | ( | const wxImage & | image, | |
| int | width, | |||
| int | height | |||
| ) |
shrinks/expands image by removing/duplicating rows/columns from the center of the image
Definition at line 389 of file uiutils.cpp.
| wxBitmap charArr2wxBitmap | ( | const unsigned char * | arg, | |
| int | size | |||
| ) |
used to load png data into a wxBitmap
Definition at line 204 of file uiutils.cpp.
| wxBitmap charArr2wxBitmapWithBlending | ( | const unsigned char * | dest, | |
| int | dest_size, | |||
| const unsigned char * | text, | |||
| int | text_size | |||
| ) |
Definition at line 220 of file uiutils.cpp.
| wxIcon charArr2wxIcon | ( | const unsigned char * | arg, | |
| int | size | |||
| ) |
png array data to Icon
Definition at line 197 of file uiutils.cpp.
| wxImage charArr2wxImage | ( | const unsigned char * | arg, | |
| int | size | |||
| ) |
used to load png data into a wxImage
Definition at line 214 of file uiutils.cpp.
| wxColour ColourDelta | ( | const wxColour & | colour, | |
| const int & | delta | |||
| ) |
Definition at line 110 of file uiutils.cpp.
| void ColourDelta | ( | int & | r, | |
| int & | g, | |||
| int & | b, | |||
| const int & | delta | |||
| ) |
Definition at line 67 of file uiutils.cpp.
| void CopyToClipboard | ( | const wxString & | text | ) |
Definition at line 474 of file uiutils.cpp.
| std::vector<wxColour>& GetBigFixColoursPalette | ( | int | numteams | ) |
Definition at line 340 of file uiutils.cpp.
| wxColour GetColorFromFloatStrng | ( | const wxString & | color_ | ) |
Definition at line 121 of file uiutils.cpp.
| wxColour GetColourFromUser | ( | wxWindow * | parent, | |
| const wxColour & | colInit, | |||
| const wxString & | caption, | |||
| const wxString & | palette | |||
| ) |
when querying for a color, always use this (it'll autosave/retrieve custom defined colors)
Definition at line 409 of file uiutils.cpp.
| wxBitmap getColourIcon | ( | const wxColour & | colour | ) |
Definition at line 509 of file uiutils.cpp.
| void hue | ( | huevec & | out, | |
| int | amount | |||
| ) |
Definition at line 331 of file uiutils.cpp.
| void hue | ( | huevec & | out, | |
| int | amount, | |||
| int | level | |||
| ) |
Definition at line 313 of file uiutils.cpp.
takes best fitting size of original inside bounds keeping aspect ratio
Definition at line 459 of file uiutils.cpp.
| void OpenWebBrowser | ( | const wxString & | url | ) |
open either plattform default browser or binary saved in settings with given url
Definition at line 485 of file uiutils.cpp.
| wxImage ReplaceChannelStatusColour | ( | wxBitmap | img, | |
| const wxColour & | colour | |||
| ) |
Definition at line 433 of file uiutils.cpp.
Definition at line 28 of file uiutils.cpp.
1.6.3