forked from enlightenment/efl
129 lines
4.3 KiB
Plaintext
129 lines
4.3 KiB
Plaintext
class Elm.Mapbuf (Efl.Ui.Widget, Efl.Content, Efl.Part)
|
|
{
|
|
[[Elementary mapbuf class]]
|
|
legacy_prefix: elm_mapbuf;
|
|
eo_prefix: elm_private_mapbuf;
|
|
methods {
|
|
@property auto {
|
|
set {
|
|
[[Set or unset auto flag for map rendering.
|
|
|
|
When a ampbuf object has "auto mode" enabled, then it will
|
|
enable and disable map mode based on current visibility.
|
|
Mapbuf will track if you show or hide it AND if the object
|
|
is inside the canvas viewport or not when it is moved or
|
|
resized. Note that if you turn automode off, then map mode
|
|
will be in a disabled state at this point. When you turn it
|
|
on for the first time, the current state will be evaluated
|
|
base on current properties of the mapbuf object.
|
|
|
|
Auto mode is disabled by default.
|
|
]]
|
|
}
|
|
get {
|
|
[[Get a value whether auto mode is enabled or not.]]
|
|
}
|
|
values {
|
|
on: bool; [[The auto mode state.]]
|
|
}
|
|
}
|
|
@property smooth {
|
|
set {
|
|
[[Enable or disable smooth map rendering.
|
|
|
|
This sets smoothing for map rendering. If the object is a
|
|
type that has its own smoothing settings, then both the
|
|
smooth settings for this object and the map must be turned off.
|
|
|
|
By default smooth maps are enabled.
|
|
]]
|
|
}
|
|
get {
|
|
[[Get a value whether smooth map rendering is enabled or not.]]
|
|
}
|
|
values {
|
|
smooth: bool; [[The smooth mode state.]]
|
|
}
|
|
}
|
|
@property alpha {
|
|
set {
|
|
[[Set or unset alpha flag for map rendering.
|
|
|
|
This sets alpha flag for map rendering. If the object is a
|
|
type that has its own alpha settings, then this will take
|
|
precedence. Only image objects have this currently. It stops
|
|
alpha blending of the map area, and is useful if you know the
|
|
object and/or all sub-objects is 100% solid.
|
|
|
|
Alpha is enabled by default.
|
|
]]
|
|
}
|
|
get {
|
|
[[Get a value whether alpha blending is enabled or not.]]
|
|
}
|
|
values {
|
|
alpha: bool; [[The alpha state.]]
|
|
}
|
|
}
|
|
@property enabled {
|
|
set {
|
|
[[Enable or disable the map.
|
|
|
|
This enables the map that is set or disables it. On enable,
|
|
the object geometry will be saved, and the new geometry will
|
|
change (position and size) to reflect the map geometry set.
|
|
|
|
Also, when enabled, alpha and smooth states will be used, so
|
|
if the content isn't solid, alpha should be enabled, for
|
|
example, otherwise a black rectangle will fill the content.
|
|
|
|
When disabled, the stored map will be freed and geometry prior
|
|
to enabling the map will be restored.
|
|
|
|
It's disabled by default.
|
|
]]
|
|
}
|
|
get {
|
|
[[Get a value whether map is enabled or not.]]
|
|
}
|
|
values {
|
|
enabled: bool; [[The enabled state.]]
|
|
}
|
|
}
|
|
@property point_color {
|
|
[[The color of a point (vertex) in the mapbuf.
|
|
|
|
This represents the color of the vertex in the mapbuf. Colors will
|
|
be linearly interpolated between vertex points through the mapbuf.
|
|
Color will multiply the "texture" pixels (like GL_MODULATE in
|
|
OpenGL). The default color of a vertex in a mapbuf is white
|
|
solid (255, 255, 255, 255) which means it will have no effect on
|
|
modifying the texture pixels.
|
|
|
|
@since 1.9
|
|
]]
|
|
keys {
|
|
idx: int; [[Index of point to change, from 0 to 3.]]
|
|
}
|
|
values {
|
|
r: int; [[Red (0 - 255)]]
|
|
g: int; [[Green (0 - 255)]]
|
|
b: int; [[Blue (0 - 255)]]
|
|
a: int; [[Alpha (0 - 255)]]
|
|
}
|
|
}
|
|
}
|
|
implements {
|
|
class.constructor;
|
|
Efl.Object.constructor;
|
|
Efl.Gfx.visible { set; }
|
|
Efl.Gfx.position { set; }
|
|
Efl.Gfx.size { set; }
|
|
Efl.Ui.Widget.theme_apply;
|
|
Efl.Ui.Widget.widget_sub_object_del;
|
|
Efl.Content.content { get; set; }
|
|
Efl.Content.content_unset;
|
|
Efl.Part.part;
|
|
}
|
|
}
|