Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
|
File item. More...
#include <FXFileList.h>
Public Member Functions | |
FXFileItem (const FXString &text, FXIcon *bi=nullptr, FXIcon *mi=nullptr, void *ptr=nullptr) | |
Constructor. | |
FXbool | isFile () const |
Return true if this is a file item. | |
FXbool | isDirectory () const |
Return true if this is a directory item. | |
FXbool | isExecutable () const |
Return true if this is an executable item. | |
FXbool | isSymlink () const |
Return true if this is a symbolic link item. | |
FXbool | isChardev () const |
Return true if this is a character device item. | |
FXbool | isBlockdev () const |
Return true if this is a block device item. | |
FXbool | isFifo () const |
Return true if this is an FIFO item. | |
FXbool | isSocket () const |
Return true if this is a socket. | |
FXbool | isNavigational () const |
Return true if item is a special navigational item like '.' or '..'. | |
void | setAssoc (FXFileAssoc *a) |
Set the file-association object for this item. | |
FXFileAssoc * | getAssoc () const |
Return the file-association object for this item. | |
void | setSize (FXlong s) |
Set the file size for this item. | |
FXlong | getSize () const |
Return the file size for this item. | |
void | setDate (FXTime d) |
Set the date for this item, in nanoseconds. | |
FXTime | getDate () const |
Return the date for this item, in nanoseconds. | |
void | setMode (FXuint m) |
Set file mode bits. | |
FXuint | getMode () const |
Return file mode bits. | |
Public Member Functions inherited from FX::FXIconItem | |
FXIconItem (const FXString &text, FXIcon *bi=nullptr, FXIcon *mi=nullptr, FXptr ptr=nullptr) | |
Construct new item with given text, icons, and user-data. | |
virtual void | setText (const FXString &txt) |
Change item's text label. | |
const FXString & | getText () const |
Return item's text label. | |
virtual void | setBigIcon (FXIcon *icn, FXbool owned=false) |
Change item's big icon, deleting the old icon if it was owned. | |
FXIcon * | getBigIcon () const |
Return item's big icon. | |
virtual void | setMiniIcon (FXIcon *icn, FXbool owned=false) |
Change item's mini icon, deleting the old icon if it was owned. | |
FXIcon * | getMiniIcon () const |
Return item's mini icon. | |
void | setData (FXptr ptr) |
Change item's user data. | |
FXptr | getData () const |
Get item's user data. | |
virtual void | setFocus (FXbool focus) |
Make item draw as focused. | |
FXbool | hasFocus () const |
Return true if item has focus. | |
virtual void | setSelected (FXbool selected) |
Select item. | |
FXbool | isSelected () const |
Return true if this item is selected. | |
virtual void | setEnabled (FXbool enabled) |
Enable or disable item. | |
FXbool | isEnabled () const |
Return true if this item is enabled. | |
virtual void | setDraggable (FXbool draggable) |
Make item draggable. | |
FXbool | isDraggable () const |
Return true if this item is draggable. | |
virtual FXString | getTipText () const |
Return tip text. | |
virtual FXint | getWidth (const FXIconList *list) const |
Return width of item as drawn in list. | |
virtual FXint | getHeight (const FXIconList *list) const |
Return height of item as drawn in list. | |
virtual void | create () |
Create server-side resources. | |
virtual void | detach () |
Detach server-side resources. | |
virtual void | destroy () |
Destroy server-side resources. | |
virtual void | save (FXStream &store) const |
Save to stream. | |
virtual void | load (FXStream &store) |
Load from stream. | |
virtual | ~FXIconItem () |
Destroy item and free icons if owned. | |
Public Member Functions inherited from FX::FXObject | |
const FXchar * | getClassName () const |
Get class name of some object. | |
FXbool | isMemberOf (const FXMetaClass *metaclass) const |
Check if object is member of metaclass. | |
virtual long | tryHandle (FXObject *sender, FXSelector sel, void *ptr) |
Try handle message safely, catching certain exceptions. | |
virtual long | onDefault (FXObject *, FXSelector, void *) |
Called for unhandled messages. | |
virtual | ~FXObject () |
Virtual destructor. | |
Protected Attributes | |
FXFileAssoc * | assoc |
FXFileItem * | link |
FXlong | size |
FXTime | date |
FXuint | mode |
Protected Attributes inherited from FX::FXIconItem | |
FXString | label |
FXIcon * | bigIcon |
FXIcon * | miniIcon |
FXptr | data |
FXuint | state |
Friends | |
class | FXFileList |
Additional Inherited Members | |
Public Types inherited from FX::FXIconItem | |
enum | { SELECTED = 1, FOCUS = 2, DISABLED = 4, DRAGGABLE = 8, BIGICONOWNED = 16, MINIICONOWNED = 32 } |
Protected Member Functions inherited from FX::FXIconItem | |
virtual void | draw (const FXIconList *list, FXDC &dc, FXint x, FXint y, FXint w, FXint h) const |
virtual FXint | hitItem (const FXIconList *list, FXint rx, FXint ry, FXint rw=1, FXint rh=1) const |
virtual void | drawBigIcon (const FXIconList *list, FXDC &dc, FXint x, FXint y, FXint w, FXint h) const |
virtual void | drawMiniIcon (const FXIconList *list, FXDC &dc, FXint x, FXint y, FXint w, FXint h) const |
virtual void | drawDetails (const FXIconList *list, FXDC &dc, FXint x, FXint y, FXint w, FXint h) const |
File item.
Copyright © 1997-2022 Jeroen van der Zijp |