LibreOffice Module cui (master)  1
Public Member Functions | Private Attributes | List of all members
cui::ColorFieldControl Class Reference
Inheritance diagram for cui::ColorFieldControl:
[legend]
Collaboration diagram for cui::ColorFieldControl:
[legend]

Public Member Functions

 ColorFieldControl ()
 
virtual void SetDrawingArea (weld::DrawingArea *pDrawingArea) override
 
virtual ~ColorFieldControl () override
 
virtual void Paint (vcl::RenderContext &rRenderContext, const tools::Rectangle &rRect) override
 
virtual void Resize () override
 
virtual bool MouseButtonDown (const MouseEvent &rMEvt) override
 
virtual bool MouseMove (const MouseEvent &rMEvt) override
 
virtual bool MouseButtonUp (const MouseEvent &rMEvt) override
 
void UpdateBitmap ()
 
void ShowPosition (const Point &rPos, bool bUpdate)
 
void UpdatePosition ()
 
void Modify ()
 
void SetValues (Color aColor, ColorMode eMode, double x, double y)
 
double GetX () const
 
double GetY () const
 
void SetModifyHdl (const Link< ColorFieldControl &, void > &rLink)
 
- Public Member Functions inherited from weld::CustomWidgetController
virtual css::uno::Reference< css::accessibility::XAccessible > CreateAccessible ()
 
virtual void GetFocus ()
 
virtual void LoseFocus ()
 
virtual void StyleUpdated ()
 
virtual bool Command (const CommandEvent &)
 
virtual bool KeyInput (const KeyEvent &)
 
virtual tools::Rectangle GetFocusRect ()
 
virtual FactoryFunction GetUITestFactory () const
 
virtual OUString RequestHelp (tools::Rectangle &)
 
virtual OUString GetHelpText () const
 
Size const & GetOutputSizePixel () const
 
void SetOutputSizePixel (const Size &rSize)
 
weld::DrawingAreaGetDrawingArea () const
 
void Invalidate ()
 
void Invalidate (const tools::Rectangle &rRect)
 
virtual void Show ()
 
virtual void Hide ()
 
void GrabFocus ()
 
bool HasFocus () const
 
bool IsVisible () const
 
bool IsReallyVisible () const
 
bool IsEnabled () const
 
bool IsActive () const
 
int GetTextHeight () const
 
OUString GetAccessibleName () const
 
OUString GetAccessibleDescription () const
 
void CaptureMouse ()
 
bool IsMouseCaptured () const
 
void EnableRTL (bool bEnable)
 
bool IsRTLEnabled () const
 
void ReleaseMouse ()
 
void SetPointer (PointerStyle ePointerStyle)
 
void SetHelpId (const OString &rHelpId)
 
void SetAccessibleName (const OUString &rName)
 
void set_size_request (int nWidth, int nHeight)
 
void queue_resize ()
 
 CustomWidgetController ()
 
virtual ~CustomWidgetController ()
 
 CustomWidgetController (CustomWidgetController const &)=default
 
 CustomWidgetController (CustomWidgetController &&)=default
 
CustomWidgetControlleroperator= (CustomWidgetController const &)=default
 
CustomWidgetControlleroperator= (CustomWidgetController &&)=default
 

Private Attributes

ColorMode meMode
 
Color maColor
 
double mdX
 
double mdY
 
bool mbMouseCaptured
 
Point maPosition
 
VclPtr< VirtualDevicemxBitmap
 
Link< ColorFieldControl &, voidmaModifyHdl
 
std::vector< sal_uInt8maRGB_Horiz
 
std::vector< sal_uInt16 > maGrad_Horiz
 
std::vector< sal_uInt16 > maPercent_Horiz
 
std::vector< sal_uInt8maRGB_Vert
 
std::vector< sal_uInt16 > maPercent_Vert
 

Additional Inherited Members

- Static Public Member Functions inherited from weld::CustomWidgetController
static bool IsUpdateMode ()
 

Detailed Description

Definition at line 177 of file colorpicker.cxx.

Constructor & Destructor Documentation

cui::ColorFieldControl::ColorFieldControl ( )
inline

Definition at line 180 of file colorpicker.cxx.

virtual cui::ColorFieldControl::~ColorFieldControl ( )
inlineoverridevirtual

Definition at line 195 of file colorpicker.cxx.

References VclPtr< VirtualDevice >::disposeAndClear(), and mxBitmap.

Member Function Documentation

double cui::ColorFieldControl::GetX ( ) const
inline

Definition at line 212 of file colorpicker.cxx.

References mdX.

double cui::ColorFieldControl::GetY ( ) const
inline

Definition at line 213 of file colorpicker.cxx.

References mdY.

void cui::ColorFieldControl::Modify ( )

Definition at line 467 of file colorpicker.cxx.

References maModifyHdl.

Referenced by MouseButtonDown(), and MouseMove().

bool cui::ColorFieldControl::MouseButtonDown ( const MouseEvent rMEvt)
overridevirtual
bool cui::ColorFieldControl::MouseButtonUp ( const MouseEvent rMEvt)
overridevirtual

Reimplemented from weld::CustomWidgetController.

Definition at line 431 of file colorpicker.cxx.

References mbMouseCaptured, and weld::CustomWidgetController::ReleaseMouse().

bool cui::ColorFieldControl::MouseMove ( const MouseEvent rMEvt)
overridevirtual

Reimplemented from weld::CustomWidgetController.

Definition at line 421 of file colorpicker.cxx.

References MouseEvent::GetPosPixel(), mbMouseCaptured, Modify(), and ShowPosition().

void cui::ColorFieldControl::Paint ( vcl::RenderContext rRenderContext,
const tools::Rectangle rRect 
)
overridevirtual
void cui::ColorFieldControl::Resize ( )
overridevirtual

Reimplemented from weld::CustomWidgetController.

Definition at line 460 of file colorpicker.cxx.

References UpdateBitmap(), and UpdatePosition().

virtual void cui::ColorFieldControl::SetDrawingArea ( weld::DrawingArea pDrawingArea)
inlineoverridevirtual
void cui::ColorFieldControl::SetModifyHdl ( const Link< ColorFieldControl &, void > &  rLink)
inline

Definition at line 215 of file colorpicker.cxx.

References maModifyHdl.

Referenced by cui::ColorPickerDialog::ColorPickerDialog().

void cui::ColorFieldControl::SetValues ( Color  aColor,
ColorMode  eMode,
double  x,
double  y 
)
void cui::ColorFieldControl::ShowPosition ( const Point rPos,
bool  bUpdate 
)
void cui::ColorFieldControl::UpdateBitmap ( )
void cui::ColorFieldControl::UpdatePosition ( )

Member Data Documentation

Color cui::ColorFieldControl::maColor
private

Definition at line 219 of file colorpicker.cxx.

Referenced by Paint(), SetValues(), ShowPosition(), and UpdateBitmap().

std::vector<sal_uInt16> cui::ColorFieldControl::maGrad_Horiz
private

Definition at line 227 of file colorpicker.cxx.

Referenced by UpdateBitmap().

Link<ColorFieldControl&,void> cui::ColorFieldControl::maModifyHdl
private

Definition at line 225 of file colorpicker.cxx.

Referenced by Modify(), and SetModifyHdl().

std::vector<sal_uInt16> cui::ColorFieldControl::maPercent_Horiz
private

Definition at line 228 of file colorpicker.cxx.

Referenced by UpdateBitmap().

std::vector<sal_uInt16> cui::ColorFieldControl::maPercent_Vert
private

Definition at line 230 of file colorpicker.cxx.

Referenced by UpdateBitmap().

Point cui::ColorFieldControl::maPosition
private

Definition at line 223 of file colorpicker.cxx.

Referenced by Paint(), and ShowPosition().

std::vector<sal_uInt8> cui::ColorFieldControl::maRGB_Horiz
private

Definition at line 226 of file colorpicker.cxx.

Referenced by UpdateBitmap().

std::vector<sal_uInt8> cui::ColorFieldControl::maRGB_Vert
private

Definition at line 229 of file colorpicker.cxx.

Referenced by UpdateBitmap().

bool cui::ColorFieldControl::mbMouseCaptured
private

Definition at line 222 of file colorpicker.cxx.

Referenced by MouseButtonDown(), MouseButtonUp(), and MouseMove().

double cui::ColorFieldControl::mdX
private

Definition at line 220 of file colorpicker.cxx.

Referenced by GetX(), SetValues(), ShowPosition(), and UpdatePosition().

double cui::ColorFieldControl::mdY
private

Definition at line 221 of file colorpicker.cxx.

Referenced by GetY(), SetValues(), ShowPosition(), and UpdatePosition().

ColorMode cui::ColorFieldControl::meMode
private

Definition at line 218 of file colorpicker.cxx.

Referenced by SetValues(), and UpdateBitmap().

VclPtr<VirtualDevice> cui::ColorFieldControl::mxBitmap
private

Definition at line 224 of file colorpicker.cxx.

Referenced by Paint(), ShowPosition(), UpdateBitmap(), and ~ColorFieldControl().


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