• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • tdeui
 

tdeui

Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
KColorDrag Class Reference

#include <kcolordrag.h>

Inherits TQStoredDrag.

Public Member Functions

 KColorDrag (TQWidget *dragsource=0, const char *name=0)
 
 KColorDrag (const TQColor &col, TQWidget *dragsource=0, const char *name=0)
 
virtual const char * format (int i) const
 
virtual TQByteArray encodedData (const char *m) const
 
void setColor (const TQColor &col)
 

Static Public Member Functions

static bool canDecode (TQMimeSource *e)
 
static bool decode (TQMimeSource *e, TQColor &col)
 
static KColorDrag * makeDrag (const TQColor &, TQWidget *dragsource) TDE_DEPRECATED
 

Protected Member Functions

virtual void virtual_hook (int id, void *data)
 

Detailed Description

A drag-and-drop object for colors.

The according MIME type is set to application/x-color.

See the Qt drag'n'drop documentation.

Definition at line 36 of file kcolordrag.h.

Constructor & Destructor Documentation

◆ KColorDrag() [1/2]

KColorDrag::KColorDrag ( TQWidget *  dragsource = 0,
const char *  name = 0 
)

Constructs a color drag with a white color.

Definition at line 33 of file kcolordrag.cpp.

◆ KColorDrag() [2/2]

KColorDrag::KColorDrag ( const TQColor &  col,
TQWidget *  dragsource = 0,
const char *  name = 0 
)

Constructs a color drag with the color col.

Definition at line 26 of file kcolordrag.cpp.

◆ ~KColorDrag()

virtual KColorDrag::~KColorDrag ( )
inlinevirtual

Definition at line 48 of file kcolordrag.h.

Member Function Documentation

◆ canDecode()

bool KColorDrag::canDecode ( TQMimeSource *  e)
static

Returns true if the MIME source e contains a color object.

Definition at line 76 of file kcolordrag.cpp.

◆ decode()

bool KColorDrag::decode ( TQMimeSource *  e,
TQColor &  col 
)
static

Decodes the MIME source e and puts the resulting color into col.

Definition at line 89 of file kcolordrag.cpp.

◆ encodedData()

TQByteArray KColorDrag::encodedData ( const char *  m) const
virtual

Definition at line 62 of file kcolordrag.cpp.

◆ format()

const char * KColorDrag::format ( int  i) const
virtual

Definition at line 54 of file kcolordrag.cpp.

◆ makeDrag()

KColorDrag * KColorDrag::makeDrag ( const TQColor &  color,
TQWidget *  dragsource 
)
static
Deprecated:
This is equivalent with "new KColorDrag(color, dragsource)".

Definition at line 104 of file kcolordrag.cpp.

◆ setColor()

void KColorDrag::setColor ( const TQColor &  col)

Sets the color of the drag to col.

Definition at line 40 of file kcolordrag.cpp.

◆ virtual_hook()

void KColorDrag::virtual_hook ( int  id,
void *  data 
)
protectedvirtual

Definition at line 109 of file kcolordrag.cpp.


The documentation for this class was generated from the following files:
  • kcolordrag.h
  • kcolordrag.cpp

tdeui

Skip menu "tdeui"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

tdeui

Skip menu "tdeui"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdeui by doxygen 1.9.4
This website is maintained by Timothy Pearson.