1#ifndef PHWIDGETS_LABEL_H
2#define PHWIDGETS_LABEL_H
4#include <photon/PtLabel.h>
9#include "./Drawing/Font.h"
10#include "./Drawing/Image.h"
117 #define PHWIDGETS_VH(v,h) (((short)((v) & 0xFF) << 8) | (short)((h) & 0xFF))
129 TopRight = PHWIDGETS_VH(Pt_TOP , Pt_RIGHT)
320 label_flags = Pt_ARG_LABEL_FLAGS,
321 label_type = Pt_ARG_LABEL_TYPE
340 label_image = Pt_ARG_LABEL_IMAGE
359 image_spacing = Pt_ARG_TEXT_IMAGE_SPACING
368 public ArgumentsEx<Basic::ArgPChar>,
376 public ArgumentsEx<Basic::ArgColor>,
389 public ArgumentsEx<Basic::ArgUnsignedShort>,
402 public ArgumentsEx<Basic::ArgUnsignedChar>,
415 public ArgumentsEx<Basic::ArgChar>,
451 typedef ResourceFrom<Basic::WidgetResourcesSingleton>::
452 Define::Image<ArgPImage::eArgPImage>::
453 Define::String<ThisArgs::ArgPChar::eArgPChar>::
454 Define::Color<ThisArgs::ArgColor::eArgColor>::
455 Define::Scalar<ThisArgs::ArgUnsignedShort::eArgUnsignedShort, unsigned short>::
456 Define::Scalar<ThisArgs::ArgShort::eArgShort, short>::
457 Define::Scalar<ThisArgs::ArgSignedShort::eArgSignedShort, signed short>::
458 Define::Scalar<ThisArgs::ArgUnsignedChar::eArgUnsignedChar, unsigned char>::
459 Define::Scalar<ThisArgs::ArgChar::eArgChar, char>::
461 resource_type WidgetResourcesSingleton;
466 std::string getText()
const;
467 void setText(std::string);
487 virtual void check();
540 property<Drawing::Image>::bind<
Label, &Label::getImage, &Label::setImage>
Image;
553 property<std::string>::bind<
Label, &Label::getText, &Label::setText>
Text;
576 property<Drawing::Font>::bind<
Label, &Label::getFont, &Label::setFont>
Font;
627 property<PhWidgets::BalloonPosition::eBalloonPosition>::
648 property<Drawing::ContentAlignment::eContentAlignment>::
649 bind<Label, &Label::getTextAlign, &Label::setTextAlign>
TextAlign;
670 property<Drawing::ContentAlignment::eContentAlignment>::
688 property<PhWidgets::LabelType::eLabelType>::
689 bind<Label, &Label::getType, &Label::setType>
Type;
740 property<PhWidgets::UnderlineType::eUnderlineType>::
741 bind<Label, &Label::getUnderlineType, &Label::setUnderlineType>
UnderlineType;
Specifies alignment of content on the drawing surface.
Definition: Label.h:116
eContentAlignment
Possible alignment of content on the drawing surface.
Definition: Label.h:120
@ MiddleCenter
Content is vertically aligned in the middle, and horizontally aligned at the center.
Definition: Label.h:124
@ TopCenter
Content is vertically aligned at the top, and horizontally aligned at the center.
Definition: Label.h:127
@ BottomLeft
Content is vertically aligned at the bottom, and horizontally aligned on the left.
Definition: Label.h:122
@ MiddleRight
Content is vertically aligned in the middle, and horizontally aligned on the right.
Definition: Label.h:126
@ MiddleLeft
Content is vertically aligned in the middle, and horizontally aligned on the left.
Definition: Label.h:125
@ TopLeft
Content is vertically aligned at the top, and horizontally aligned on the left.
Definition: Label.h:128
@ TopRight
Content is vertically aligned at the top, and horizontally aligned on the right.
Definition: Label.h:129
@ BottomRight
Content is vertically aligned at the bottom, and horizontally aligned on the right.
Definition: Label.h:123
@ BottomCenter
Content is vertically aligned at the bottom, and horizontally aligned at the center.
Definition: Label.h:121